[packages/ghc-pem] - pl, base dependencies

qboosh qboosh at pld-linux.org
Sat Mar 21 11:51:32 CET 2026


commit 96af2ebafdf6d9ed0a73046de5fccf38c9fee513
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Mar 21 11:51:42 2026 +0100

    - pl, base dependencies

 ghc-pem.spec | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/ghc-pem.spec b/ghc-pem.spec
index 38a8e59..d76694a 100644
--- a/ghc-pem.spec
+++ b/ghc-pem.spec
@@ -4,6 +4,7 @@
 #
 %define		pkgname	pem
 Summary:	Privacy Enhanced Mail (PEM) format reader and writer
+Summary(pl.UTF-8):	Biblioteka do odczytu i zapisu formatu PEM (Privacy Enhanced Mail)
 Name:		ghc-%{pkgname}
 Version:	0.2.4
 Release:	2
@@ -14,11 +15,15 @@ Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{v
 # Source0-md5:	e6850ed36e5dcde358c12d87503cda46
 URL:		http://hackage.haskell.org/package/pem
 BuildRequires:	ghc >= 6.12.3
+BuildRequires:	ghc-base >= 3
+BuildRequires:	ghc-base < 5
 BuildRequires:	ghc-basement
 BuildRequires:	ghc-bytestring
 BuildRequires:	ghc-memory
 %if %{with prof}
 BuildRequires:	ghc-prof
+BuildRequires:	ghc-base-prof >= 3
+BuildRequires:	ghc-base-prof < 5
 BuildRequires:	ghc-basement-prof
 BuildRequires:	ghc-bytestring-prof
 BuildRequires:	ghc-memory-prof
@@ -26,6 +31,7 @@ BuildRequires:	ghc-memory-prof
 BuildRequires:	rpmbuild(macros) >= 1.608
 %requires_eq	ghc
 Requires(post,postun):	/usr/bin/ghc-pkg
+Requires:	ghc-base >= 3
 Requires:	ghc-basement
 Requires:	ghc-bytestring
 Requires:	ghc-memory
@@ -40,18 +46,22 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 Privacy Enhanced Mail (PEM) format reader and writer.
 
+%description -l pl.UTF-8
+Biblioteka do odczytu i zapisu formatu PEM (Privacy Enhanced Mail).
+
 %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 >= 3
 Requires:	ghc-basement-prof
 Requires:	ghc-bytestring-prof
 Requires:	ghc-memory-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
@@ -69,6 +79,7 @@ runhaskell Setup.hs configure -v2 \
 	--docdir=%{_docdir}/%{name}-%{version}
 
 runhaskell Setup.hs build
+
 runhaskell Setup.hs haddock --executables
 
 %install
@@ -79,8 +90,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-pem.git/commitdiff/96af2ebafdf6d9ed0a73046de5fccf38c9fee513



More information about the pld-cvs-commit mailing list