[ghc-primes/f19] Fix license tag
Jochen Schmitt
s4504kr at fedoraproject.org
Thu Oct 24 15:03:36 UTC 2013
commit 89f3cdc0061f7d083d9cfdcbcfbf5f0bd98af7a4
Author: Jochen Schmitt <Jochen at herr-schmitt.de>
Date: Thu Oct 24 17:00:11 2013 +0200
Fix license tag
- Add Provides %{name}-static in the devel subpackage
- Remove LICENSE file until clarification
.gitignore | 1 +
ghc-primes.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..50ab9f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/primes-0.2.1.0.tar.gz
diff --git a/ghc-primes.spec b/ghc-primes.spec
new file mode 100644
index 0000000..5ff47a2
--- /dev/null
+++ b/ghc-primes.spec
@@ -0,0 +1,71 @@
+# https://fedoraproject.org/wiki/Packaging:Haskell
+
+%global pkg_name primes
+
+Name: ghc-%{pkg_name}
+Version: 0.2.1.0
+Release: 3%{?dist}
+Summary: Efficient, purely functional generation of prime numbers
+
+License: BSD
+URL: http://hackage.haskell.org/package/%{pkg_name}
+Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
+
+BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-rpm-macros
+
+%description
+This Haskell library provides an efficient lazy wheel sieve for
+prime generation inspired by "Lazy wheel sieves and spirals of primes"
+by Colin Runciman and "The Genuine Sieve of Eratosthenes" by Melissa O'Neil.
+
+%package devel
+Summary: Haskell %{pkg_name} library development files
+Requires: ghc-compiler = %{ghc_version}
+Provides: %{name}-static = %{version}-%{release}
+Requires(post): ghc-compiler = %{ghc_version}
+Requires(postun): ghc-compiler = %{ghc_version}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+This package provides the Haskell %{pkg_name} library development files.
+
+%prep
+%setup -q -n %{pkg_name}-%{version}
+
+%build
+%ghc_lib_build
+
+%install
+%ghc_lib_install
+# Remove LICENSE file until clarification
+%if 0%{?fedora} > 19
+rm -f ${RPM_BUILD_ROOT}%{_docdir}/%{name}/LICENSE
+%else
+rm -f ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/LICENSE
+%endif
+
+%post devel
+%ghc_pkg_recache
+
+%postun devel
+%ghc_pkg_recache
+
+%files -f %{name}.files
+# %doc LICENSE
+
+%files devel -f %{name}-devel.files
+
+%changelog
+* Fri Oct 18 2013 Jochen Schmitt <Jochen herr-schmitt de> - 0.2.1.0-3
+- Fix license tag
+- Add Provides %%{name}-static in the devel subpackage
+- Remove LICENSE file until clarification
+
+* Wed Oct 16 2013 Jochen Schmitt <Jochen herr-schmitt de> - 0.2.1.0-2
+- Cleanup description
+- Add %%{?_isa} macro in Req.
+
+* Tue Oct 8 2013 Jochen Schmitt <Jochen herr-schmitt de> - 0.2.1.0-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..f604b09 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ef82601200b41765ba4ae9895c15e45c primes-0.2.1.0.tar.gz
More information about the scm-commits
mailing list