[packages/ghc-syb] - updated to 0.4.1 - unified, added -prof package

qboosh qboosh at pld-linux.org
Tue Dec 10 21:50:58 CET 2013


commit 12aac890e2cf31ae13b413702f1d27a5c377e029
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 10 21:51:47 2013 +0100

    - updated to 0.4.1
    - unified, added -prof package

 ghc-syb.spec | 82 +++++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 68 insertions(+), 14 deletions(-)
---
diff --git a/ghc-syb.spec b/ghc-syb.spec
index 89205ad..2348025 100644
--- a/ghc-syb.spec
+++ b/ghc-syb.spec
@@ -1,14 +1,21 @@
+#
+# Conditional build:
+%bcond_without	prof	# profiling library
+#
 %define		pkgname	syb
-Summary:	A Haskell binding to the syb graphics library
+Summary:	Scrab Your Boilerplate generics system
+Summary(pl.UTF-8):	System generyczny Scrab Your Boilerplate
 Name:		ghc-%{pkgname}
-Version:	0.4.0
-Release:	0.1
+Version:	0.4.1
+Release:	1
 License:	BSD
 Group:		Development/Languages
-Source0:	http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5:	ec2719d444a6561b2424dcef10b4fe34
-URL:		http://hackage.haskell.org/package/syb/
+#Source0Download: http://hackage.haskell.org/package/syb
+Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5:	28df3b70cef652fa6c04e6353c580a7a
+URL:		http://hackage.haskell.org/package/syb
 BuildRequires:	ghc >= 6.12.3
+%{?with_prof:BuildRequires:	ghc-prof >= 6.12.3}
 BuildRequires:	rpmbuild(macros) >= 1.608
 %requires_eq	ghc
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -17,24 +24,51 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define		_enable_debug_packages	0
 
 %description
-A Haskell binding to the syb graphics library.
+This package contains the generics system described in the Scrap Your
+Boilerplate papers (see
+<http://www.cs.uu.nl/wiki/GenericProgramming/SYB>). It defines the
+Data class of types permitting folding and unfolding of constructor
+applications, instances of this class for primitive types, and a
+variety of traversals.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera system generyczny opisany w dokumencie "Scrap Your
+Boilerplate" (p. <http://www.cs.uu.nl/wiki/GenericProgramming/SYB>).
+Definiuje on klasę Data typów pozwalających na zwijanie i rozwijanie
+aplikacji konstruktorów, instancje tej klasy dla typów prostych oraz
+różne przejścia.
+
+%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}
+
+%description prof
+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
+kiedy potrzebujemy systemu profilującego z GHC.
 
 %package doc
-Summary:	HTML documentation for %{pkgname}
-Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla %{pkgname}
+Summary:	HTML documentation for ghc %{pkgname} package
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}
 Group:		Documentation
 
 %description doc
-HTML documentation for %{pkgname}.
+HTML documentation for ghc %{pkgname} package.
 
 %description doc -l pl.UTF-8
-Dokumentacja w formacie HTML dla %{pkgname}.
+Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
 
 %prep
 %setup -q -n %{pkgname}-%{version}
 
 %build
 runhaskell Setup.lhs configure -v2 \
+	%{?with_prof:--enable-library-profiling} \
 	--prefix=%{_prefix} \
 	--libdir=%{_libdir} \
 	--libexecdir=%{_libexecdir} \
@@ -50,12 +84,12 @@ install -d $RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d
 runhaskell Setup.lhs copy --destdir=$RPM_BUILD_ROOT
 
 # work around automatic haddock docs installation
-rm -rf %{name}-%{version}-doc
+%{__rm} -rf %{name}-%{version}-doc
 cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{name}-%{version}-doc
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
 runhaskell Setup.lhs 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
@@ -69,7 +103,27 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSsyb-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSsyb-%{version}.a
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Generics
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Generics/SYB.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Generics/SYB
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Generics/SYB/*.hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSsyb-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Generics/SYB.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Generics/SYB/*.p_hi
+%endif
 
 %files doc
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-syb.git/commitdiff/12aac890e2cf31ae13b413702f1d27a5c377e029



More information about the pld-cvs-commit mailing list