update to new simplified Haskell Packaging Guidelines
This commit is contained in:
parent
5853463dca
commit
d06ff75e69
|
@ -1,21 +1,11 @@
|
|||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
||||
|
||||
%global pkg_name data-accessor
|
||||
|
||||
%global common_summary Utilities for accessing and manipulating fields of records
|
||||
|
||||
%global common_description With this package you can define record field accessors which \
|
||||
allow setting, getting and modifying values easily. The \
|
||||
package clearly demonstrates the power of the functional \
|
||||
approach: You can combine accessors of a record and \
|
||||
sub-records, to make the access look like the fields of the \
|
||||
sub-record belong to the main record.
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.2.2.3
|
||||
Release: 2%{?dist}
|
||||
Summary: %{common_summary}
|
||||
Release: 3%{?dist}
|
||||
Summary: Utilities for accessing and manipulating fields of records
|
||||
|
||||
License: BSD
|
||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||
|
@ -30,7 +20,23 @@ BuildRequires: ghc-transformers-devel
|
|||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
With this package you can define record field accessors which
|
||||
allow setting, getting and modifying values easily. The
|
||||
package clearly demonstrates the power of the functional
|
||||
approach: You can combine accessors of a record and
|
||||
sub-records, to make the access look like the fields of the
|
||||
sub-record belong to the main record.
|
||||
|
||||
|
||||
%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
|
||||
|
@ -45,18 +51,25 @@ BuildRequires: ghc-transformers-devel
|
|||
%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> - 0.2.2.3-3
|
||||
- update to new simplified Haskell Packaging Guidelines
|
||||
|
||||
* Wed Jan 30 2013 Ben Boeckel <mathstuf@gmail.com> - 0.2.2.3-2
|
||||
- Initial import into Fedora
|
||||
|
||||
|
|
Loading…
Reference in New Issue