[ghc-vector-space] Update to cabal2spec-0.24
Ben Boeckel
mathstuf at fedoraproject.org
Tue Jul 26 02:18:22 UTC 2011
commit ef6e1df7ad6fe86af1a505729fe4372390e9e0cc
Author: Ben Boeckel <MathStuf at gmail.com>
Date: Sat Jul 9 01:50:05 2011 -0400
Update to cabal2spec-0.24
ghc-vector-space.spec | 73 +++++++++++++++++++++++++++++++-----------------
1 files changed, 47 insertions(+), 26 deletions(-)
---
diff --git a/ghc-vector-space.spec b/ghc-vector-space.spec
index 40723c4..e2d9a0a 100644
--- a/ghc-vector-space.spec
+++ b/ghc-vector-space.spec
@@ -1,3 +1,7 @@
+# For Haskell Packaging Guidelines see:
+# - https://fedoraproject.org/wiki/Packaging:Haskell
+# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
%global pkg_name vector-space
%global common_summary Vector & affine spaces, linear maps, and derivatives
@@ -9,39 +13,42 @@ derivative is a linear transformation rather than one of the \
common concrete representations (scalars, vectors, matrices, \
...).
-%global ghc_pkg_deps ghc-Boolean-devel, ghc-MemoTrie-devel
-
-%bcond_without shared
-%bcond_without hscolour
-
-# debuginfo is not useful for ghc
-%global debug_package %{nil}
-
Name: ghc-%{pkg_name}
-Version: 0.7.2
-Release: 1%{?dist}
+Version: 0.7.3
+Release: 2%{?dist}
Summary: %{common_summary}
Group: System Environment/Libraries
License: BSD
+# BEGIN: cabal2spec-0.24
URL: http://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-# fedora ghc archs:
-ExclusiveArch: %{ix86} x86_64 ppc alpha
-BuildRequires: ghc, ghc-doc, ghc-prof
-BuildRequires: ghc-rpm-macros >= 0.8.1
-%if %{with hscolour}
+ExclusiveArch: %{ghc_arches}
+BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-rpm-macros
BuildRequires: hscolour
-%endif
-%{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")}
-%{?ghc_pkg_c_deps:BuildRequires: %{ghc_pkg_c_deps}}
+# END: cabal2spec-0.24
+
+BuildRequires: ghc-Boolean-devel
+BuildRequires: ghc-MemoTrie-devel
%description
%{common_description}
-%if %{with shared}
-This package provides the shared library.
-%endif
+
+
+%package -n ghc-%{pkg_name}-devel
+Summary: Development files for %{common_summary}
+Group: Development/Libraries
+# BEGIN: cabal2spec-0.24
+%{?ghc_devel_requires}
+Obsoletes: ghc-%{pkg_name}-prof < %{version}-%{release}
+Provides: ghc-%{pkg_name}-prof = %{version}-%{release}
+# END: cabal2spec-0.24
+
+%description -n ghc-%{pkg_name}-devel
+%{common_description}
+
+This package contains the development files.
%prep
@@ -53,18 +60,32 @@ This package provides the shared library.
%install
-rm -rf %{buildroot}
%ghc_lib_install
-%clean
-rm -rf %{buildroot}
+%post -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
+
+%postun -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
-%{?ghc_lib_package}
+%if %{undefined ghc_without_shared}
+%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files
+%defattr(-,root,root,-)
+%endif
+
+%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files
+%defattr(-,root,root,-)
%changelog
+* Sat Jul 09 2011 Ben Boeckel <mathstuf at gmail.com> - 0.7.3-2
+- Update to cabal2spec-0.24
+
+* Mon Jun 20 2011 Ben Boeckel <mathstuf at gmail.com> - 0.7.3-1
+- Update to 0.7.3
+
* Sat Sep 04 2010 Ben Boeckel <mathstuf at gmail.com> - 0.7.2-1
- Update to 0.7.2
More information about the scm-commits
mailing list