[packages/ghc-asn1-parse] - pl, base dependencies
qboosh
qboosh at pld-linux.org
Sat Mar 21 11:28:49 CET 2026
commit bd4024147317f43d1dd25ef58526fb250ebdcc23
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 21 11:29:01 2026 +0100
- pl, base dependencies
ghc-asn1-parse.spec | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
---
diff --git a/ghc-asn1-parse.spec b/ghc-asn1-parse.spec
index 610c8f8..7941a20 100644
--- a/ghc-asn1-parse.spec
+++ b/ghc-asn1-parse.spec
@@ -3,7 +3,8 @@
%bcond_without prof # profiling library
#
%define pkgname asn1-parse
-Summary: Simple monadic parser for ASN1 stream types
+Summary: Simple monadic parser for ASN.1 stream types
+Summary(pl.UTF-8): Prosty monadowy parser typów strumieni ASN.1
Name: ghc-%{pkgname}
Version: 0.9.5
Release: 2
@@ -16,16 +17,25 @@ URL: http://hackage.haskell.org/package/asn1-parse
BuildRequires: ghc >= 6.12.3
BuildRequires: ghc-asn1-encoding >= 0.9
BuildRequires: ghc-asn1-types >= 0.3
+BuildRequires: ghc-asn1-types < 0.4
+BuildRequires: ghc-base >= 3
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-bytestring
%if %{with prof}
BuildRequires: ghc-prof
BuildRequires: ghc-asn1-encoding-prof >= 0.9
BuildRequires: ghc-asn1-types-prof >= 0.3
+BuildRequires: ghc-asn1-types-prof < 0.4
+BuildRequires: ghc-base-prof >= 3
+BuildRequires: ghc-base-prof < 5
+BuildRequires: ghc-bytestring-prof
%endif
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
Requires(post,postun): /usr/bin/ghc-pkg
Requires: ghc-asn1-encoding >= 0.9
Requires: ghc-asn1-types >= 0.3
+Requires: ghc-base >= 3
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# debuginfo is not useful for ghc
@@ -35,9 +45,13 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautocompressdoc *.haddock
%description
-Simple monadic parser for ASN1 stream types, when ASN1 pattern
+Simple monadic parser for ASN.1 stream types, when ASN.1 pattern
matching is not convenient.
+%description -l pl.UTF-8
+Prosty monadowy parser typów strumieni ASN.1, gdzie dopasowywanie
+wzorców ASN.1 nie jest wygodne.
+
%package prof
Summary: Profiling %{pkgname} library for GHC
Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC
@@ -45,10 +59,11 @@ Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: ghc-asn1-encoding-prof >= 0.9
Requires: ghc-asn1-types-prof >= 0.3
+Requires: ghc-base-prof >= 3
%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
@@ -66,6 +81,7 @@ runhaskell Setup.hs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.hs build
+
runhaskell Setup.hs haddock --executables
%install
@@ -76,8 +92,7 @@ runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
# work around automatic haddock docs installation
%{__rm} -rf %{name}-%{version}-doc
-cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
-%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
runhaskell Setup.hs register \
--gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-asn1-parse.git/commitdiff/bd4024147317f43d1dd25ef58526fb250ebdcc23
More information about the pld-cvs-commit
mailing list