update to new simplified Haskell Packaging Guidelines
This commit is contained in:
parent
0ce5e18433
commit
a874f53a11
|
@ -1,23 +1,11 @@
|
|||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
||||
|
||||
%global pkg_name base-unicode-symbols
|
||||
|
||||
%global common_summary Unicode alternatives to common Haskell operators and functions
|
||||
|
||||
%global common_description This package defines new symbols for a number of functions, operators and types\
|
||||
in the base package. All symbols are documented with their actual definition\
|
||||
and information regarding their Unicode code point. They should be completely\
|
||||
interchangeable with their definitions.\
|
||||
\
|
||||
For more Unicode goodness you can enable the UnicodeSyntax language extension.\
|
||||
This extension enables Unicode characters to be used to stand for certain ASCII\
|
||||
character sequences, i.e. → instead of ->, ∀ instead of forall and many others.
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.2.2.4
|
||||
Release: 2%{?dist}
|
||||
Summary: %{common_summary}
|
||||
Release: 3%{?dist}
|
||||
Summary: Unicode alternatives for common functions and operators
|
||||
|
||||
License: BSD
|
||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||
|
@ -25,11 +13,27 @@ Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio
|
|||
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
# Begin cabal-rpm deps:
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
This package defines new symbols for a number of functions, operators and types
|
||||
in the base package. All symbols are documented with their actual definition
|
||||
and information regarding their Unicode code point. They should be completely
|
||||
interchangeable with their definitions.
|
||||
|
||||
For more Unicode goodness you can enable the UnicodeSyntax language extension.
|
||||
This extension enables Unicode characters to be used to stand for certain ASCII
|
||||
character sequences, i.e. → instead of ->, ∀ instead of forall and many others.
|
||||
|
||||
|
||||
%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
|
||||
|
@ -44,18 +48,26 @@ 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
|
||||
%doc README.markdown
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.2.2.4-3
|
||||
- update to new simplified Haskell Packaging Guidelines
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue