]> git.pld-linux.org Git - packages/ghc-zlib.git/commitdiff
- use %ghc_pkg_recache macro; make url copyable; %ghcdir in rpmbuild macros auto/th/ghc-zlib-0_5_2_0-2
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 24 Feb 2011 11:09:05 +0000 (11:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ghc-zlib.spec -> 1.6

ghc-zlib.spec

index 372da39b15d4c010a3681de7bb4c9bf7d7cf6c24..715b4500c239b3cce2f4a8e1010c5abd1ec8dbd6 100644 (file)
@@ -1,4 +1,4 @@
-%define        pkgname zlib
+%define                pkgname zlib
 Summary:       Compression and decompression in the gzip and zlib formats
 Name:          ghc-%{pkgname}
 Version:       0.5.2.0
@@ -7,13 +7,12 @@ License:      BSD
 Group:         Development/Languages
 Source0:       http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5: 19859e241dc18ef1501a5d44d8523507
-URL:           http://hackage.haskell.org/package/%{pkgname}/
+URL:           http://hackage.haskell.org/package/zlib/
 BuildRequires: ghc >= 6.12.3
+BuildRequires: rpmbuild(macros) >= 1.608
 %requires_releq        ghc
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                ghcdir          ghc-%(/usr/bin/ghc --numeric-version)
-
 %description
 This package provides a pure interface for compressing and
 decompressing streams of data represented as lazy
@@ -55,10 +54,10 @@ runhaskell Setup.hs register \
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/usr/bin/ghc-pkg recache
+%ghc_pkg_recache
 
 %postun
-/usr/bin/ghc-pkg recache
+%ghc_pkg_recache
 
 %files
 %defattr(644,root,root,755)
This page took 0.040315 seconds and 4 git commands to generate.