update to new simplified Haskell Packaging Guidelines
This commit is contained in:
parent
d4f06d6497
commit
a26ad1c82a
|
@ -1,18 +1,11 @@
|
||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
||||||
|
|
||||||
%global pkg_name snap-core
|
%global pkg_name snap-core
|
||||||
|
|
||||||
%global common_summary Snap web framework core library
|
|
||||||
|
|
||||||
%global common_description Snap is a simple and fast web development framework and server written\
|
|
||||||
in Haskell. This library contains the core definitions and types for\
|
|
||||||
the Snap framework.
|
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.9.3.1
|
Version: 0.9.3.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: %{common_summary}
|
Summary: Snap web framework core library
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||||
|
@ -48,7 +41,20 @@ BuildRequires: ghc-zlib-enum-devel
|
||||||
Patch1: snap-core-0.9.2.2-portable-flag.patch
|
Patch1: snap-core-0.9.2.2-portable-flag.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{common_description}
|
Snap is a simple and fast web development framework and server written
|
||||||
|
in Haskell. This library contains the core definitions and types for
|
||||||
|
the Snap framework.
|
||||||
|
|
||||||
|
|
||||||
|
%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
|
||||||
|
@ -72,19 +78,26 @@ Patch1: snap-core-0.9.2.2-portable-flag.patch
|
||||||
%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 CONTRIBUTORS README*.md
|
%doc CONTRIBUTORS README*.md
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.9.3.1-2
|
||||||
|
- update to new simplified Haskell Packaging Guidelines
|
||||||
|
|
||||||
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.9.3.1-1
|
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.9.3.1-1
|
||||||
- update to 0.9.3.1
|
- update to 0.9.3.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue