update to new simplified Haskell Packaging Guidelines
This commit is contained in:
parent
d48dc8ec5a
commit
f7dd7b1263
@ -1,16 +1,11 @@
|
|||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
||||||
|
|
||||||
%global pkg_name libmpd
|
%global pkg_name libmpd
|
||||||
|
|
||||||
%global common_summary Haskell MPD client library
|
|
||||||
|
|
||||||
%global common_description A client library for MPD, the Music Player Daemon.
|
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.8.0.2
|
Version: 0.8.0.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: %{common_summary}
|
Summary: Haskell MPD client library
|
||||||
|
|
||||||
# README states LGPL 2.1
|
# README states LGPL 2.1
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
@ -32,7 +27,18 @@ BuildRequires: ghc-utf8-string-devel
|
|||||||
# End cabal-rpm deps
|
# End cabal-rpm deps
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{common_description}
|
A client library for MPD, the Music Player Daemon (<http://www.musicpd.org/>).
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Haskell %{pkg_name} library development files
|
||||||
|
Requires: ghc-compiler = %{ghc_version}
|
||||||
|
Requires(post): ghc-compiler = %{ghc_version}
|
||||||
|
Requires(postun): ghc-compiler = %{ghc_version}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -47,19 +53,26 @@ BuildRequires: ghc-utf8-string-devel
|
|||||||
%ghc_lib_install
|
%ghc_lib_install
|
||||||
|
|
||||||
|
|
||||||
%ghc_devel_package
|
%post devel
|
||||||
|
%ghc_pkg_recache
|
||||||
%ghc_devel_description
|
|
||||||
|
|
||||||
|
|
||||||
%ghc_devel_post_postun
|
%postun devel
|
||||||
|
%ghc_pkg_recache
|
||||||
|
|
||||||
|
|
||||||
%ghc_files LICENSE
|
%files -f %{name}.files
|
||||||
|
%doc LICENSE
|
||||||
|
|
||||||
|
|
||||||
|
%files devel -f %{name}-devel.files
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 05 2013 Jens Petersen <petersen@redhat.com> - 0.8.0.2-2
|
||||||
|
- update to new simplified Haskell Packaging Guidelines
|
||||||
|
|
||||||
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.8.0.2-1
|
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.8.0.2-1
|
||||||
- update to 0.8.0.2
|
- update to 0.8.0.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user