[packages/ghc-Crypto] - pl, unified, added prof bcond, release 3
qboosh
qboosh at pld-linux.org
Mon Dec 23 21:01:35 CET 2013
commit 0a6f10bc0a67f387b74cd655ab9526c9b491edc8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Dec 23 21:01:43 2013 +0100
- pl, unified, added prof bcond, release 3
ghc-Crypto.spec | 92 +++++++++++++++++++++++++++++++++++++++------------------
1 file changed, 64 insertions(+), 28 deletions(-)
---
diff --git a/ghc-Crypto.spec b/ghc-Crypto.spec
index 91f0a0f..6978aed 100644
--- a/ghc-Crypto.spec
+++ b/ghc-Crypto.spec
@@ -1,47 +1,82 @@
+#
+# Conditional build:
+%bcond_without prof # profiling library
+#
%define pkgname Crypto
Summary: Collects together existing Haskell cryptographic functions into a package
+Summary(pl.UTF-8): Zebranie istniejących funkcji kryptograficznych Haskella w pakiet
Name: ghc-%{pkgname}
Version: 4.2.5.1
-Release: 2
-License: BSD / GPL
+Release: 3
+License: BSD, GPL v2+ (depending on module)
Group: Development/Languages
-Source0: http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
+#Source0Download: http://hackage.haskell.org/package/Crypto
+Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
# Source0-md5: e1ec7d91e888107f2544064456f8eb36
-URL: http://hackage.haskell.org/package/Crypto/
+URL: http://hackage.haskell.org/package/Crypto
BuildRequires: ghc >= 6.12.3
BuildRequires: ghc-HUnit
-BuildRequires: ghc-QuickCheck
-BuildRequires: ghc-prof
+BuildRequires: ghc-QuickCheck >= 2.4.0.1
+BuildRequires: ghc-array
+BuildRequires: ghc-base >= 3
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-pretty
+BuildRequires: ghc-random
+%if %{with prof}
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-HUnit-prof
+BuildRequires: ghc-QuickCheck-prof >= 2.4.0.1
+BuildRequires: ghc-array-prof
+BuildRequires: ghc-base-prof >= 3
+BuildRequires: ghc-base-prof < 5
+BuildRequires: ghc-pretty-prof
+BuildRequires: ghc-random-prof
+%endif
BuildRequires: latex2html
BuildRequires: texlive-format-pdflatex
BuildRequires: texlive-latex
BuildRequires: rpmbuild(macros) >= 1.608
-%requires_releq ghc
Requires(post,postun): /usr/bin/ghc-pkg
-#Requires: ghc-OTHERMODULE
+%requires_releq ghc
+Requires: ghc-array
+Requires: ghc-base >= 3
+Requires: ghc-base < 5
+Requires: ghc-pretty
+Requires: ghc-random
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
DES, Blowfish, AES, TEA, SHA1, MD5, RSA, BubbleBabble, Hexdump,
-Support for Word128, Word192 and Word256 and Beyond, PKCS5 Padding,
-Various Encryption Modes e.g. Cipher Block Chaining all in one
+support for Word128, Word192 and Word256 and beyond, PKCS5 padding,
+various encryption modes e.g. Cipher Block Chaining all in one
package, with HUnit and QuickCheck tests, and examples.
+%description -l pl.UTF-8
+DES, Blowfish, AES, TEA, SHA1, MD5, RSA, BubbleBabble, Hexdump,
+obsługa typów Word128, Word192, Word256 i dalszych, opakowania PKCS5,
+różnych trybów szyfrowania, jak CBC (Cipher Block Chaining) - wszystko
+w jednym pakiecie, wraz z testami HUnit i QuickCheck oraz przykładami.
+
%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-array-prof
+Requires: ghc-base-prof >= 3
+Requires: ghc-base-prof < 5
+Requires: ghc-pretty-prof
+Requires: ghc-random-prof
%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
@@ -51,7 +86,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} \
@@ -79,7 +115,10 @@ 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
+
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/{HMAC,Quick,RSA,SHA1,Symmetric,WordList}Test
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/Crypto-%{version}/CryptoHomePage.html
%clean
rm -rf $RPM_BUILD_ROOT
@@ -92,32 +131,29 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CryptoHomePage.html ReadMe.pdf
-%doc %{name}-%{version}-doc/*
+%doc CryptoHomePage.html ReadMe.pdf %{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}/HSCrypto-%{version}.o
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSCrypto-%{version}.a
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec
-%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Binary
-%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Encryption
-%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Encryption/RSA
-%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Text
-%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
-%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Digest
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Binary
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Binary/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Encryption
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Encryption/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Encryption/RSA
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Encryption/RSA/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Text
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Text/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/*.hi
+%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Digest
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data/Digest/*.hi
%files prof
%defattr(644,root,root,755)
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSCrypto-%{version}_p.a
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Binary/*.p_hi
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Codec/Encryption/*.p_hi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-Crypto.git/commitdiff/0a6f10bc0a67f387b74cd655ab9526c9b491edc8
More information about the pld-cvs-commit
mailing list