[packages/ghc-th-lift] - updated to 0.6, pl, unified

qboosh qboosh at pld-linux.org
Tue Dec 24 07:21:00 CET 2013


commit 08c4e1c1514a466861a4e07a045f09d70cf6a2d4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 24 07:21:09 2013 +0100

    - updated to 0.6, pl, unified

 ghc-th-lift.spec | 61 ++++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 44 insertions(+), 17 deletions(-)
---
diff --git a/ghc-th-lift.spec b/ghc-th-lift.spec
index 5bc5b3f..08fee7e 100644
--- a/ghc-th-lift.spec
+++ b/ghc-th-lift.spec
@@ -1,36 +1,65 @@
+#
+# Conditional build:
+%bcond_without	prof	# profiling library
+#
 %define		pkgname	th-lift
 Summary:	Derive Template Haskell's Lift class for datatypes
+Summary(pl.UTF-8):	Wywodzenie klasy Lift z Template Haskella dla typów danych
 Name:		ghc-%{pkgname}
-Version:	0.5.5
+Version:	0.6
 Release:	1
-License:	GPL v2/BSD
+License:	GPL v2 or BSD
 Group:		Development/Languages
-Source0:	http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5:	1389f438093e3d09b75649d1e8bd4cde
-URL:		http://hackage.haskell.org/package/th-lift/
+#Source0Download: http://hackage.haskell.org/package/th-lift
+Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5:	01da599a0961d684620f2ddf43f0560e
+URL:		http://hackage.haskell.org/package/th-lift
 BuildRequires:	ghc >= 6.12.3
+BuildRequires:	ghc-base >= 3
+BuildRequires:	ghc-base < 5
+BuildRequires:	ghc-template-haskell >= 2.4
+BuildRequires:	ghc-template-haskell < 2.10
+%if %{with prof}
+BuildRequires:	ghc-prof >= 6.12.3
+BuildRequires:	ghc-base-prof >= 3
+BuildRequires:	ghc-base-prof < 5
+BuildRequires:	ghc-template-haskell-prof >= 2.4
+BuildRequires:	ghc-template-haskell-prof < 2.10
+%endif
 BuildRequires:	rpmbuild(macros) >= 1.608
+Requires(post,postun):	/usr/bin/ghc-pkg
 %requires_releq	ghc
+Requires:	ghc-base >= 3
+Requires:	ghc-base < 5
+Requires:	ghc-template-haskell >= 2.4
+Requires:	ghc-template-haskell < 2.10
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # debuginfo is not useful for ghc
 %define		_enable_debug_packages	0
 
-# don't compress haddoc files
+# don't compress haddock files
 %define		_noautocompressdoc	*.haddock
 
 %description
 Derive Template Haskell's Lift class for datatypes.
 
+%description -l pl.UTF-8
+Wywodzenie klasy Lift z Template Haskella dla typów danych.
+
 %package prof
 Summary:	Profiling %{pkgname} library for GHC
 Summary(pl.UTF-8):	Biblioteka profilująca %{pkgname} dla GHC.
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	ghc-base-prof >= 3
+Requires:	ghc-base-prof < 5
+Requires:	ghc-template-haskell-prof >= 2.4
+Requires:	ghc-template-haskell-prof < 2.10
 
 %description prof
-Profiling %{pkgname} library for GHC.  Should be installed when
-GHC's profiling subsystem is needed.
+Profiling %{pkgname} library for GHC. Should be installed when GHC's
+profiling subsystem is needed.
 
 %description prof -l pl.UTF-8
 Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
@@ -40,7 +69,8 @@ kiedy potrzebujemy systemu profilującego z GHC.
 %setup -q -n %{pkgname}-%{version}
 
 %build
-runhaskell Setup.hs configure -v2 --enable-library-profiling \
+runhaskell Setup.hs configure -v2 \
+	%{?with_prof:--enable-library-profiling} \
 	--prefix=%{_prefix} \
 	--libdir=%{_libdir} \
 	--libexecdir=%{_libexecdir} \
@@ -61,7 +91,7 @@ cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
 runhaskell Setup.hs register \
-	--gen-pkg-config=$RPM_BUILD_ROOT/%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
+	--gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -74,14 +104,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Changelog
-%doc %{name}-%{version}-doc/*
+%doc BSD3 Changelog %{name}-%{version}-doc/*
 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.o
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
-%exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
-
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSth-lift-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSth-lift-%{version}.a
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/TH
@@ -89,5 +116,5 @@ rm -rf $RPM_BUILD_ROOT
 
 %files prof
 %defattr(644,root,root,755)
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSth-lift-%{version}_p.a
 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Language/Haskell/TH/*.p_hi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-th-lift.git/commitdiff/08c4e1c1514a466861a4e07a045f09d70cf6a2d4



More information about the pld-cvs-commit mailing list