template-specs: ghc-package.spec - add %ghc_pkg_recache - ghcdir moved to c...

glen glen at pld-linux.org
Thu Feb 24 11:57:53 CET 2011


Author: glen                         Date: Thu Feb 24 10:57:53 2011 GMT
Module: template-specs                Tag: HEAD
---- Log message:
- add %ghc_pkg_recache
- ghcdir moved to common macros
- url should be copy-pasteable

---- Files affected:
template-specs:
   ghc-package.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: template-specs/ghc-package.spec
diff -u template-specs/ghc-package.spec:1.14 template-specs/ghc-package.spec:1.15
--- template-specs/ghc-package.spec:1.14	Sat Aug 28 02:01:16 2010
+++ template-specs/ghc-package.spec	Thu Feb 24 11:57:48 2011
@@ -8,15 +8,14 @@
 Group:		Development/Languages
 Source0:	http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5:	-
-URL:		http://hackage.haskell.org/package/%{pkgname}/
+URL:		http://hackage.haskell.org/package/NAME/
 BuildRequires:	ghc >= 6.12.3
 #BuildRequires:	ghc-OTHERMODULE
+BuildRequires:	rpmbuild(macros) >= 1.608
 %requires_releq	ghc
 #Requires:	ghc-OTHERMODULE
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		ghcdir		ghc-%(/usr/bin/ghc --numeric-version)
-
 %description
 
 %prep
@@ -49,10 +48,10 @@
 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)
@@ -67,6 +66,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2011/02/24 10:57:48  glen
+- add %ghc_pkg_recache
+- ghcdir moved to common macros
+- url should be copy-pasteable
+
 Revision 1.14  2010/08/28 00:01:16  baggins
 - ghc 6.12 adds unique build id to built packages, so we need requires_releq
 
@@ -111,4 +115,3 @@
 
 Revision 1.1  2010/04/08 12:03:46  baggins
 - template for haskell (ghc) packages
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/template-specs/ghc-package.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list