[packages/ghc-safe] - pl, dependencies
qboosh
qboosh at pld-linux.org
Mon Jul 21 18:27:46 CEST 2025
commit 4a554d1de540ee2cf6689c2418a5b4908b85fcbe
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 21 18:29:30 2025 +0200
- pl, dependencies
ghc-safe.spec | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/ghc-safe.spec b/ghc-safe.spec
index 3b68295..5260ab7 100644
--- a/ghc-safe.spec
+++ b/ghc-safe.spec
@@ -4,6 +4,7 @@
#
%define pkgname safe
Summary: Library of safe (exception free) functions
+Summary(pl.UTF-8): Biblioteka funkcji bezpiecznych (wolnych od wyjątków)
Name: ghc-%{pkgname}
Version: 0.3.19
Release: 2
@@ -13,13 +14,17 @@ Group: Development/Languages
Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
# Source0-md5: 23a1bcc16b885249dc35370b1c428cc7
URL: http://hackage.haskell.org/package/safe
-BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc >= 7.10.1
+BuildRequires: ghc-base >= 4.8
+BuildRequires: ghc-base < 5
%if %{with prof}
-BuildRequires: ghc-prof
+BuildRequires: ghc-prof >= 7.10.1
+BuildRequires: ghc-base-prof >= 4.8
%endif
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
Requires(post,postun): /usr/bin/ghc-pkg
+Requires: ghc-base >= 4.8
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# debuginfo is not useful for ghc
@@ -32,14 +37,19 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
A library wrapping Prelude/Data.List functions that can throw
exceptions, such as head and !!.
+%description -l pl.UTF-8
+Biblioteka obudowująca funkcje Prelude/Data.List, które mogą rzucać
+wyjątki; takimi funkcjami są m.in. head lub !!.
+
%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.8
%description prof
-Profiling %{pkgname} library for GHC. Should be installed when
+Profiling %{pkgname} library for GHC. Should be installed when
GHC's profiling subsystem is needed.
%description prof -l pl.UTF-8
@@ -58,6 +68,7 @@ runhaskell Setup.hs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.hs build
+
runhaskell Setup.hs haddock --executables
%install
@@ -88,7 +99,7 @@ rm -rf $RPM_BUILD_ROOT
%doc CHANGES.txt README.md %{name}-%{version}-doc/*
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
+%attr(755,root,root) %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
%exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-safe.git/commitdiff/4a554d1de540ee2cf6689c2418a5b4908b85fcbe
More information about the pld-cvs-commit
mailing list