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

This commit is contained in:
Jens Petersen 2019-07-25 04:27:31 +00:00
parent 4e634951c0
commit ef09d4decd
1 changed files with 38 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-0.13
# generated by cabal-rpm-1.0.0 --subpackage
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name xmobar
@ -28,7 +28,14 @@ Patch1: iwlib-0.1.0-libm.patch
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
%if %{with haddock}
BuildRequires: ghc-doc
%endif
%if %{with ghc_prof}
BuildRequires: ghc-prof
%endif
BuildRequires: ghc-rpm-macros-extra
BuildRequires: chrpath
BuildRequires: ghc-HTTP-devel
BuildRequires: ghc-X11-devel
BuildRequires: ghc-X11-xft-devel
@ -80,11 +87,8 @@ This package provides the Haskell %{name} shared library.
%package -n ghc-%{name}-devel
Summary: Haskell %{name} library development files
Provides: ghc-%{name}-static = %{version}-%{release}
Provides: ghc-%{name}-doc = %{version}-%{release}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
%endif
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
# Begin cabal-rpm deps:
@ -97,6 +101,25 @@ Requires: wireless-tools-devel%{?_isa}
This package provides the Haskell %{name} library development files.
%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
%global main_version %{version}
%if %{defined ghclibdir}
@ -129,6 +152,7 @@ cd -
# Begin cabal-rpm install
%ghc_libs_install %{subpkgs}
%ghc_lib_install
%ghc_fix_rpath %{pkgver}
# End cabal-rpm install
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE10}
@ -139,14 +163,6 @@ install --mode=0755 -p examples/xmonadpropwrite %{buildroot}%{_bindir}/xmonadpro
%cabal_test
%post -n ghc-%{name}-devel
%ghc_pkg_recache
%postun -n ghc-%{name}-devel
%ghc_pkg_recache
%files
# Begin cabal-rpm files:
%license license
@ -168,6 +184,16 @@ install --mode=0755 -p examples/xmonadpropwrite %{buildroot}%{_bindir}/xmonadpro
%doc changelog.md examples readme.md
%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
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild