update to new simplified Haskell Packaging Guidelines
This commit is contained in:
parent
8858699cb2
commit
24dc1dfed2
@ -1,17 +1,11 @@
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
||||
|
||||
%global pkg_name byteorder
|
||||
|
||||
%global common_summary Exposes the native endianness or byte ordering of the system
|
||||
|
||||
%global common_description This package is for working with the native byte-ordering of\
|
||||
the system.
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 1.0.3
|
||||
Release: 2%{?dist}
|
||||
Summary: %{common_summary}
|
||||
Release: 3%{?dist}
|
||||
Summary: Exposes the native endianness or byte ordering of the system
|
||||
|
||||
License: BSD
|
||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||
@ -21,7 +15,19 @@ BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
This package is for working with the native byte-ordering of
|
||||
the system.
|
||||
|
||||
|
||||
%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
|
||||
@ -36,18 +42,25 @@ BuildRequires: ghc-rpm-macros
|
||||
%ghc_lib_install
|
||||
|
||||
|
||||
%ghc_devel_package
|
||||
|
||||
%ghc_devel_description
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%ghc_devel_post_postun
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
||||
%ghc_files LICENSE
|
||||
%files -f %{name}.files
|
||||
%doc LICENSE
|
||||
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 1.0.3-3
|
||||
- update to new simplified Haskell Packaging Guidelines
|
||||
|
||||
* Thu Feb 07 2013 Ben Boeckel <mathstuf@gmail.com> - 1.0.3-2
|
||||
- Initial import into Fedora
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user