packages: ghc-binary/ghc-binary.spec - update packaging, %requires_eq dep o...

glen glen at pld-linux.org
Mon Feb 28 10:11:30 CET 2011


Author: glen                         Date: Mon Feb 28 09:11:30 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- update packaging, %requires_eq dep on ghc

---- Files affected:
packages/ghc-binary:
   ghc-binary.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: packages/ghc-binary/ghc-binary.spec
diff -u packages/ghc-binary/ghc-binary.spec:1.10 packages/ghc-binary/ghc-binary.spec:1.11
--- packages/ghc-binary/ghc-binary.spec:1.10	Thu Feb 24 12:32:10 2011
+++ packages/ghc-binary/ghc-binary.spec	Mon Feb 28 10:11:25 2011
@@ -3,7 +3,7 @@
 Summary:	Binary serialisation for Haskell values using lazy ByteStrings
 Name:		ghc-%{pkgname}
 Version:	0.5.0.2
-Release:	5
+Release:	6
 License:	BSD
 Group:		Development/Languages
 Source0:	http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
@@ -11,9 +11,12 @@
 URL:		http://hackage.haskell.org/package/binary/
 BuildRequires:	ghc >= 6.12.3
 BuildRequires:	rpmbuild(macros) >= 1.608
-%requires_releq	ghc
+%requires_eq	ghc
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# debuginfo is not useful for ghc
+%define		_enable_debug_packages	0
+
 %description
 Efficient, pure binary serialisation using lazy ByteStrings. Haskell
 values may be encoded to and from binary formats, written to disk as
@@ -21,6 +24,17 @@
 have been observed, so this library should be suitable for high
 performance scenarios.
 
+%package doc
+Summary:	HTML documentation for %{pkgname}
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla %{pkgname}
+Group:		Documentation
+
+%description doc
+HTML documentation for %{pkgname}.
+
+%description doc -l pl.UTF-8
+Dokumentacja w formacie HTML dla %{pkgname}.
+
 %prep
 %setup -q -n %{pkgname}-%{version}
 
@@ -42,7 +56,7 @@
 
 # work around automatic haddock docs installation
 rm -rf %{name}-%{version}-doc
-cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
+cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
 
 ./Setup.lhs register \
 	--gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
@@ -59,16 +73,22 @@
 %files
 %defattr(644,root,root,755)
 %doc README todo
-%doc %{name}-%{version}-doc/html
 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
 
+%files doc
+%defattr(644,root,root,755)
+%doc %{name}-%{version}-doc/*
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2011/02/28 09:11:25  glen
+- update packaging, %requires_eq dep on ghc
+
 Revision 1.10  2011/02/24 11:32:10  glen
 - release 5
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ghc-binary/ghc-binary.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list