[packages/ghc-uniplate] - updated to 1.6.12, pl, unified
qboosh
qboosh at pld-linux.org
Tue Dec 24 12:30:56 CET 2013
commit 68b7418ad2af69db77822e8a5b7931ae9d9e3567
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Dec 24 12:31:06 2013 +0100
- updated to 1.6.12, pl, unified
ghc-uniplate.spec | 100 +++++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 91 insertions(+), 9 deletions(-)
---
diff --git a/ghc-uniplate.spec b/ghc-uniplate.spec
index d5e64ad..699e2f9 100644
--- a/ghc-uniplate.spec
+++ b/ghc-uniplate.spec
@@ -1,23 +1,57 @@
+#
+# Conditional build:
+%bcond_without prof # profiling library
+#
%define pkgname uniplate
Summary: Help writing simple, concise and fast generic operations
+Summary(pl.UTF-8): Pomoc przy pisaniu prostych, zwięzłych i szybkich ogólnych operacji
Name: ghc-%{pkgname}
-Version: 1.6.10
+Version: 1.6.12
Release: 1
License: BSD
Group: Development/Languages
-Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5: 15d66ef37f5563e16e2077fe7b5377c2
-URL: http://hackage.haskell.org/package/uniplate/
+#Source0Download: http://hackage.haskell.org/package/uniplate
+Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: 8a1914109e6707c4bab211d44c39f6c4
+URL: http://hackage.haskell.org/package/uniplate
BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc-base >= 4.4
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-containers
+BuildRequires: ghc-hashable >= 1.1.2.3
+BuildRequires: ghc-hashable < 1.3
+BuildRequires: ghc-syb
+BuildRequires: ghc-unordered-containers >= 0.2.1
+BuildRequires: ghc-unordered-containers < 0.3
+%if %{with prof}
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-base-prof >= 4.4
+BuildRequires: ghc-base-prof < 5
+BuildRequires: ghc-containers-prof
+BuildRequires: ghc-hashable-prof >= 1.1.2.3
+BuildRequires: ghc-hashable-prof < 1.3
+BuildRequires: ghc-syb-prof
+BuildRequires: ghc-unordered-containers-prof >= 0.2.1
+BuildRequires: ghc-unordered-containers-prof < 0.3
+%endif
BuildRequires: rpmbuild(macros) >= 1.608
+Requires(post,postun): /usr/bin/ghc-pkg
%requires_eq ghc
+Requires: ghc-base >= 4.4
+Requires: ghc-base < 5
+Requires: ghc-containers
+Requires: ghc-hashable >= 1.1.2.3
+Requires: ghc-hashable < 1.3
+Requires: ghc-syb
+Requires: ghc-unordered-containers >= 0.2.1
+Requires: ghc-unordered-containers < 0.3
Obsoletes: ghc-uniplate-doc
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
@@ -25,11 +59,39 @@ Uniplate is library for writing simple and concise generic operations.
Uniplate has similar goals to the original Scrap Your Boilerplate
work, but is substantially simpler and faster.
+%description -l pl.UTF-8
+Uniplate to biblioteka do pisania prostych i zwięzłych ogólnych
+operacji. Ma podobne cele, co oryginalna paraca Scrap Your
+Boilerplate, ale jest znacząco prostsza i szybsza.
+
+%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 >= 4.4
+Requires: ghc-base-prof < 5
+Requires: ghc-containers-prof
+Requires: ghc-hashable-prof >= 1.1.2.3
+Requires: ghc-hashable-prof < 1.3
+Requires: ghc-syb-prof
+Requires: ghc-unordered-containers-prof >= 0.2.1
+Requires: ghc-unordered-containers-prof < 0.3
+
+%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.
+
%prep
%setup -q -n %{pkgname}-%{version}
%build
runhaskell Setup.hs configure -v2 \
+ %{?with_prof:--enable-library-profiling} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
@@ -50,7 +112,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
@@ -63,7 +125,27 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc uniplate.htm
-%doc %{name}-%{version}-doc/*
+%doc uniplate.htm %{name}-%{version}-doc/*
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSuniplate-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSuniplate-%{version}.a
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/Uniplate
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/Uniplate/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/Uniplate/Data
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/Uniplate/Data/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/Uniplate/Internal
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/Uniplate/Internal/*.hi
+
+%if %{with prof}
+%files prof
+%defattr(644,root,root,755)
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSuniplate-%{version}_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/Uniplate/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/Uniplate/Data/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Generics/Uniplate/Internal/*.p_hi
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-uniplate.git/commitdiff/68b7418ad2af69db77822e8a5b7931ae9d9e3567
More information about the pld-cvs-commit
mailing list