Blame ghc-uri-bytestring-aeson.spec

51a9c77
# generated by cabal-rpm-2.1.0
552646b
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
0a50765
0a50765
%global pkg_name uri-bytestring-aeson
0a50765
%global pkgver %{pkg_name}-%{version}
0a50765
0a50765
Name:           ghc-%{pkg_name}
70b3a1e
Version:        0.1.0.8
d2e3fb4
Release:        %autorelease
0a50765
Summary:        Aeson instances for URI Bytestring
0a50765
51a9c77
License:        BSD-3-Clause
0a50765
Url:            https://hackage.haskell.org/package/%{pkg_name}
2df381c
# Begin cabal-rpm sources:
0a50765
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
2df381c
# End cabal-rpm sources
0a50765
2df381c
# Begin cabal-rpm deps:
0a50765
BuildRequires:  ghc-Cabal-devel
0a50765
BuildRequires:  ghc-rpm-macros
51a9c77
BuildRequires:  ghc-aeson-devel
51a9c77
BuildRequires:  ghc-base-devel
51a9c77
BuildRequires:  ghc-bytestring-devel
51a9c77
BuildRequires:  ghc-text-devel
51a9c77
BuildRequires:  ghc-uri-bytestring-devel
51a9c77
%if %{with ghc_prof}
dbfe7a9
BuildRequires:  ghc-aeson-prof
dbfe7a9
BuildRequires:  ghc-base-prof
dbfe7a9
BuildRequires:  ghc-bytestring-prof
dbfe7a9
BuildRequires:  ghc-text-prof
dbfe7a9
BuildRequires:  ghc-uri-bytestring-prof
51a9c77
%endif
0a50765
# End cabal-rpm deps
0a50765
0a50765
%description
0a50765
Aeson instances for URI Bytestring.
0a50765
0a50765
0a50765
%package devel
0a50765
Summary:        Haskell %{pkg_name} library development files
0a50765
Provides:       %{name}-static = %{version}-%{release}
dbfe7a9
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
0a50765
%if %{defined ghc_version}
0a50765
Requires:       ghc-compiler = %{ghc_version}
0a50765
%endif
0a50765
Requires:       %{name}%{?_isa} = %{version}-%{release}
0a50765
0a50765
%description devel
0a50765
This package provides the Haskell %{pkg_name} library development
0a50765
files.
0a50765
0a50765
2989cc6
%if %{with haddock}
2989cc6
%package doc
2989cc6
Summary:        Haskell %{pkg_name} library documentation
3e7f39b
BuildArch:      noarch
1bc2865
Requires:       ghc-filesystem
2989cc6
2989cc6
%description doc
2989cc6
This package provides the Haskell %{pkg_name} library
2989cc6
documentation.
2989cc6
%endif
2989cc6
2989cc6
2989cc6
%if %{with ghc_prof}
2989cc6
%package prof
2989cc6
Summary:        Haskell %{pkg_name} profiling library
2989cc6
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
3e7f39b
Supplements:    (%{name}-devel and ghc-prof)
2989cc6
2989cc6
%description prof
2989cc6
This package provides the Haskell %{pkg_name} profiling library.
2989cc6
%endif
2989cc6
2989cc6
0a50765
%prep
2df381c
# Begin cabal-rpm setup:
0a50765
%setup -q -n %{pkgver}
2df381c
# End cabal-rpm setup
0a50765
0a50765
0a50765
%build
2df381c
# Begin cabal-rpm build:
0a50765
%ghc_lib_build
2df381c
# End cabal-rpm build
0a50765
0a50765
0a50765
%install
2df381c
# Begin cabal-rpm install
0a50765
%ghc_lib_install
2df381c
# End cabal-rpm install
0a50765
0a50765
0a50765
%files -f %{name}.files
2df381c
# Begin cabal-rpm files:
0a50765
%license LICENSE
2df381c
# End cabal-rpm files
0a50765
0a50765
0a50765
%files devel -f %{name}-devel.files
0a50765
%doc ChangeLog.md README.md
0a50765
0a50765
2989cc6
%if %{with haddock}
2989cc6
%files doc -f %{name}-doc.files
3e7f39b
%license LICENSE
2989cc6
%endif
2989cc6
2989cc6
2989cc6
%if %{with ghc_prof}
2989cc6
%files prof -f %{name}-prof.files
2989cc6
%endif
2989cc6
2989cc6
0a50765
%changelog
d2e3fb4
%autochangelog