[packages/ghc-dlist] - updated to 0.6.0.1 - added prof library

qboosh qboosh at pld-linux.org
Sun Dec 8 19:14:21 CET 2013


commit 9589cc16cb1bfb026855f2ae9025e910ef807dce
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 8 19:15:48 2013 +0100

    - updated to 0.6.0.1
    - added prof library

 ghc-dlist.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 49 insertions(+), 10 deletions(-)
---
diff --git a/ghc-dlist.spec b/ghc-dlist.spec
index a6d5325..508dcb5 100644
--- a/ghc-dlist.spec
+++ b/ghc-dlist.spec
@@ -1,14 +1,21 @@
+#
+# Conditional build:
+%bcond_without	prof	# profiling library
+#
 %define		pkgname	dlist
 Summary:	Differences lists
+Summary(pl.UTF-8):	Listy różnic
 Name:		ghc-%{pkgname}
-Version:	0.5
+Version:	0.6.0.1
 Release:	1
 License:	BSD
 Group:		Development/Languages
-Source0:	http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5:	54f6c18ff689b7ef54e3229dc4a94107
-URL:		http://hackage.haskell.org/package/dlist/
+#Source0Download: http://hackage.haskell.org/package/dlist
+Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5:	e491b9aed316a58061de4f7751f0216b
+URL:		http://hackage.haskell.org/package/dlist
 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)
@@ -22,22 +29,43 @@ particularly useful for efficient logging and pretty printing, (e.g.
 with the Writer monad), where list append quickly becomes too
 expensive. 
 
+%description -l pl.UTF-8
+Listy różnic: typ podobny do listy obsługujący dołączanie O(1). Jest
+przydatny szczególnie do wydajnego logowania i ładnego wypisywania
+(np. przy użyciu monady Writer), gdzie dołączanie do zwykłej listy
+szybko staje się zbyt kosztowne.
+
+%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} \
@@ -58,7 +86,7 @@ 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
@@ -72,7 +100,18 @@ 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}/HSdlist-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSdlist-%{version}.a
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/DList.hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSdlist-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/DList.p_hi
+%endif
 
 %files doc
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-dlist.git/commitdiff/9589cc16cb1bfb026855f2ae9025e910ef807dce



More information about the pld-cvs-commit mailing list