refresh to cabal-rpm-1.0.0: lib doc/prof subpkgs and bin static BRs

epel9
Jens Petersen 6 years ago
parent 26bd43fe66
commit c848f81ac5

@ -1,4 +1,4 @@
# generated by cabal-rpm-0.13 # generated by cabal-rpm-1.0.0
# https://fedoraproject.org/wiki/Packaging:Haskell # https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name pandoc %global pkg_name pandoc
@ -20,6 +20,12 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{name}.cabal#/%{p
# Begin cabal-rpm deps: # Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
%if %{with haddock}
BuildRequires: ghc-doc
%endif
%if %{with ghc_prof}
BuildRequires: ghc-prof
%endif
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
BuildRequires: ghc-Glob-devel BuildRequires: ghc-Glob-devel
BuildRequires: ghc-HTTP-devel BuildRequires: ghc-HTTP-devel
@ -104,7 +110,7 @@ format and produce a native representation of the document, and a set of
writers, which convert this native representation into a target format. writers, which convert this native representation into a target format.
Thus, adding an input or output format requires only adding a reader or writer. Thus, adding an input or output format requires only adding a reader or writer.
For pdf output please also install pandoc-pdf. For pdf output please also install pandoc-pdf or weasyprint.
%package common %package common
@ -129,11 +135,8 @@ This package provides the Haskell %{name} shared library.
%package -n ghc-%{name}-devel %package -n ghc-%{name}-devel
Summary: Haskell %{name} library development files Summary: Haskell %{name} library development files
Provides: ghc-%{name}-static = %{version}-%{release} Provides: ghc-%{name}-static = %{version}-%{release}
Provides: ghc-%{name}-doc = %{version}-%{release}
%if %{defined ghc_version} %if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version} Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
%endif %endif
Requires: ghc-%{name}%{?_isa} = %{version}-%{release} Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
@ -156,6 +159,25 @@ To use --latex-engine=xelatex or lualatex, install texlive-collection-xetex
or texlive-collection-luatex respectively. or texlive-collection-luatex respectively.
%if %{with haddock}
%package -n ghc-%{name}-doc
Summary: Haskell %{name} library documentation
%description -n ghc-%{name}-doc
This package provides the Haskell %{name} library documentation.
%endif
%if %{with ghc_prof}
%package -n ghc-%{name}-prof
Summary: Haskell %{name} profiling library
Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release}
%description -n ghc-%{name}-prof
This package provides the Haskell %{name} profiling library.
%endif
%prep %prep
# Begin cabal-rpm setup: # Begin cabal-rpm setup:
%setup -q %setup -q
@ -186,14 +208,6 @@ install -m 0644 -p -D man/pandoc.1 %{buildroot}%{_mandir}/man1/pandoc.1
%cabal_test %cabal_test
%post -n ghc-%{name}-devel
%ghc_pkg_recache
%postun -n ghc-%{name}-devel
%ghc_pkg_recache
%files %files
# Begin cabal-rpm files: # Begin cabal-rpm files:
%{_bindir}/%{name} %{_bindir}/%{name}
@ -213,13 +227,21 @@ install -m 0644 -p -D man/pandoc.1 %{buildroot}%{_mandir}/man1/pandoc.1
%files -n ghc-%{name} -f ghc-%{name}.files %files -n ghc-%{name} -f ghc-%{name}.files
# Begin cabal-rpm files:
# End cabal-rpm files
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files %files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%if %{with haddock}
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
%endif
%if %{with ghc_prof}
%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files
%endif
%changelog %changelog
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save