[packages/ghc-data-default] - updated to 0.5.3, added -prof package

qboosh qboosh at pld-linux.org
Mon Dec 9 20:13:02 CET 2013


commit 6120815d244f2131776c9383706a05c1a34c6c27
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Dec 9 20:14:30 2013 +0100

    - updated to 0.5.3, added -prof package

 ghc-data-default.spec | 81 +++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 69 insertions(+), 12 deletions(-)
---
diff --git a/ghc-data-default.spec b/ghc-data-default.spec
index c32b6c6..a159bf0 100644
--- a/ghc-data-default.spec
+++ b/ghc-data-default.spec
@@ -1,18 +1,40 @@
+#
+# Conditional build:
+%bcond_without	prof	# profiling library
+#
 %define		pkgname	data-default
 Summary:	A class for types with a default value
+Summary(pl.UTF-8):	Klasa dla typów z wartością domyślną
 Name:		ghc-%{pkgname}
-Version:	0.5.1
+Version:	0.5.3
 Release:	1
 License:	BSD
 Group:		Development/Languages
-Source0:	http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5:	ba3529294b809824948d40f1fcd56d89
-URL:		http://hackage.haskell.org/package/data-default/
+#Source0Download: http://hackage.haskell.org/package/data-default
+Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5:	03a98d999273ad20d5bc0c711bf1c533
+URL:		http://hackage.haskell.org/package/data-default
 BuildRequires:	ghc >= 6.12.3
-BuildRequires:	ghc-dlist
+BuildRequires:	ghc-data-default-class
+BuildRequires:	ghc-data-default-instances-base
+BuildRequires:	ghc-data-default-instances-containers
+BuildRequires:	ghc-data-default-instances-dlist
+BuildRequires:	ghc-data-default-instances-old-locale
+%if %{with prof}
+BuildRequires:	ghc-prof >= 6.12.3
+BuildRequires:	ghc-data-default-class-prof
+BuildRequires:	ghc-data-default-instances-base-prof
+BuildRequires:	ghc-data-default-instances-containers-prof
+BuildRequires:	ghc-data-default-instances-dlist-prof
+BuildRequires:	ghc-data-default-instances-old-locale-prof
+%endif
 BuildRequires:	rpmbuild(macros) >= 1.608
 %requires_eq	ghc
-Requires:	ghc-dlist
+Requires:	ghc-data-default-class
+Requires:	ghc-data-default-instances-base
+Requires:	ghc-data-default-instances-containers
+Requires:	ghc-data-default-instances-dlist
+Requires:	ghc-data-default-instances-old-locale
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # debuginfo is not useful for ghc
@@ -21,22 +43,45 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 A class for types with a default value.
 
+%description -l pl.UTF-8
+Klasa dla typów z wartością domyślną.
+
+%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-data-default-class-prof
+Requires:	ghc-data-default-instances-base-prof
+Requires:	ghc-data-default-instances-containers-prof
+Requires:	ghc-data-default-instances-dlist-prof
+Requires:	ghc-data-default-instances-old-locale-prof
+
+%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} \
@@ -57,7 +102,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
@@ -70,8 +115,20 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc LICENSE
 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSdata-default-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSdata-default-%{version}.a
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Default.hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSdata-default-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Default.p_hi
+%endif
 
 %files doc
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-data-default.git/commitdiff/6120815d244f2131776c9383706a05c1a34c6c27



More information about the pld-cvs-commit mailing list