[brainfuck] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Tue Jun 11 12:05:57 UTC 2013
commit 71323743190274e236082be167804cdc99480aa7
Author: Jens Petersen <petersen at redhat.com>
Date: Tue Jun 11 21:04:32 2013 +0900
update to new simplified Haskell Packaging Guidelines
brainfuck.spec | 54 +++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 39 insertions(+), 15 deletions(-)
---
diff --git a/brainfuck.spec b/brainfuck.spec
index c08c904..d361b42 100644
--- a/brainfuck.spec
+++ b/brainfuck.spec
@@ -1,17 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name brainfuck
-%global common_summary Brainfuck interpreter
-
-%global common_description This is an interpreter of the brainf*ck language,\
-written in the pure, lazy, functional language Haskell.
-
Name: %{pkg_name}
Version: 0.1
-Release: 5%{?dist}
-Summary: %{common_summary}
+Release: 6%{?dist}
+Summary: Brainfuck interpreter
# Language/Brainfuck.hs states version 2 or later
License: GPLv2+
@@ -28,35 +22,65 @@ BuildRequires: ghc-unix-devel
# End cabal-rpm deps
%description
-%{common_description}
+This is an interpreter of the brainf*ck language,
+written in the pure, lazy, functional language Haskell.
+
+
+%package -n ghc-%{name}
+Summary: Haskell %{name} library
+
+%description -n ghc-%{name}
+This package provides the Haskell %{name} shared library.
+
+
+%package -n ghc-%{name}-devel
+Summary: Haskell %{name} library development files
+Requires: ghc-compiler = %{ghc_version}
+Requires(post): ghc-compiler = %{ghc_version}
+Requires(postun): ghc-compiler = %{ghc_version}
+Requires: ghc-%{name} = %{version}-%{release}
+
+%description -n ghc-%{name}-devel
+This package provides the Haskell %{name} library development files.
+
%prep
%setup -q
%patch0 -p1
+
%build
%ghc_lib_build
+
%install
%ghc_lib_install
-%ghc_package
-%ghc_description
+%post -n ghc-%{name}-devel
+%ghc_pkg_recache
-%ghc_devel_package
-%ghc_devel_description
+%postun -n ghc-%{name}-devel
+%ghc_pkg_recache
-%ghc_devel_post_postun
%files
%doc LICENSE
%attr(755,root,root) %{_bindir}/bf
-%ghc_files LICENSE
+
+%files -n ghc-%{name} -f ghc-%{name}.files
+%doc LICENSE
+
+
+%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
+
%changelog
+* Tue Jun 11 2013 Jens Petersen <petersen at redhat.com> - 0.1-6
+- update to new simplified Haskell Packaging Guidelines
+
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list