template-specs: haskell.spec - ghc-centrism - cleanups - unregister module ...

baggins baggins at pld-linux.org
Thu Apr 8 21:23:09 CEST 2010


Author: baggins                      Date: Thu Apr  8 19:23:09 2010 GMT
Module: template-specs                Tag: HEAD
---- Log message:
- ghc-centrism
- cleanups
- unregister module only on last uninstall

---- Files affected:
template-specs:
   haskell.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: template-specs/haskell.spec
diff -u template-specs/haskell.spec:1.3 template-specs/haskell.spec:1.4
--- template-specs/haskell.spec:1.3	Thu Apr  8 14:19:17 2010
+++ template-specs/haskell.spec	Thu Apr  8 21:23:03 2010
@@ -1,19 +1,22 @@
 # $Revision$, $Date$
+#
+# This templete is ghc-centric, so full package name should be ghc-MODULE.spec
+#
 %define	pkgname	NAME
-Summary:	Hashed file storage support code
-Name:		haskell-%{pkgname}
-Version:	VERSION
+Summary:	-
+Name:		ghc-%{pkgname}
+Version:	-
 Release:	0.1
-License:	BSD
+License:	- (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here)
 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}/
 BuildRequires:	ghc
-#BuildRequires:	haskell-binary
-#BuildRequires:	haskell-dataenc
-#BuildRequires:	haskell-mmap
-#BuildRequires:	haskell-zlib
+#BuildRequires:	ghc-binary
+#BuildRequires:	ghc-dataenc
+#BuildRequires:	ghc-mmap
+#BuildRequires:	ghc-zlib
 ExclusiveArch:	%{ix86} %{x8664}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -49,8 +52,9 @@
 /usr/bin/ghc-pkg update %{_libdir}/%{libsubdir}/%{pkgname}.conf
 
 %postun
-/usr/bin/ghc-pkg unregister %{pkgname}-%{version}
-
+if [ "$1" = "0" ]; then
+	/usr/bin/ghc-pkg unregister %{pkgname}-%{version}
+fi
 
 %files
 %defattr(644,root,root,755)
@@ -64,6 +68,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2010/04/08 19:23:03  baggins
+- ghc-centrism
+- cleanups
+- unregister module only on last uninstall
+
 Revision 1.3  2010/04/08 12:19:17  baggins
 - build and package docs
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/template-specs/haskell.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list