[packages/ghc-errors] - pl, dependencies
qboosh
qboosh at pld-linux.org
Mon Jul 21 19:01:38 CEST 2025
commit 91233cd229a80980a46ca7cd6d5174741ea72209
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 21 19:03:19 2025 +0200
- pl, dependencies
ghc-errors.spec | 39 +++++++++++++++++++++++++++++++--------
1 file changed, 31 insertions(+), 8 deletions(-)
---
diff --git a/ghc-errors.spec b/ghc-errors.spec
index de41b07..19590f8 100644
--- a/ghc-errors.spec
+++ b/ghc-errors.spec
@@ -3,7 +3,8 @@
%bcond_without prof # profiling library
#
%define pkgname errors
-Summary: errors: Simplified error-handling
+Summary: Haskell errors library: Simplified error-handling
+Summary(pl.UTF-8): Biblioteka errors dla Haskella - uproszczona obsługa błędów
Name: ghc-%{pkgname}
Version: 2.3.0
Release: 2
@@ -13,20 +14,34 @@ Group: Development/Languages
Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
# Source0-md5: 43bec23a661dd4a5eefb5549b4fad8a8
URL: http://hackage.haskell.org/package/errors
-BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc >= 7.8.1
+BuildRequires: ghc-base >= 4.7
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-exceptions >= 0.6
+BuildRequires: ghc-exceptions < 0.11
BuildRequires: ghc-safe >= 0.3.3
+BuildRequires: ghc-safe < 0.4
+BuildRequires: ghc-text < 1.3
BuildRequires: ghc-transformers >= 0.2
+BuildRequires: ghc-transformers < 0.6
BuildRequires: ghc-transformers-compat >= 0.4
+BuildRequires: ghc-transformers-compat < 0.7
%if %{with prof}
-BuildRequires: ghc-prof
+BuildRequires: ghc-prof >= 7.8.1
+BuildRequires: ghc-base-prof >= 4.7
+BuildRequires: ghc-exceptions-prof >= 0.6
BuildRequires: ghc-safe-prof >= 0.3.3
+BuildRequires: ghc-text-prof
BuildRequires: ghc-transformers-prof >= 0.2
BuildRequires: ghc-transformers-compat-prof >= 0.4
%endif
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
Requires(post,postun): /usr/bin/ghc-pkg
+Requires: ghc-base >= 4.7
+Requires: ghc-exceptions >= 0.6
Requires: ghc-safe >= 0.3.3
+Requires: ghc-text
Requires: ghc-transformers >= 0.2
Requires: ghc-transformers-compat >= 0.4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -38,24 +53,31 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautocompressdoc *.haddock
%description
-The one-stop shop for all your error-handling needs!
-Just import Control.Error.
+The one-stop shop for all your error-handling needs! Just import
+Control.Error.
This library encourages an error-handling style that directly uses
the type system, rather than out-of-band exceptions.
+%description -l pl.UTF-8
+Jeden produkt, spełniający wszystkie potrzeby obsługi błędów!
+Wystarczy zaimportować Control.Error.
+
%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.7
+Requires: ghc-exceptions-prof >= 0.6
Requires: ghc-safe-prof >= 0.3.3
+Requires: ghc-text-prof
Requires: ghc-transformers-prof >= 0.2
Requires: ghc-transformers-compat-prof >= 0.4
%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
@@ -73,6 +95,7 @@ runhaskell Setup.hs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.hs build
+
runhaskell Setup.hs haddock --executables
%install
@@ -103,7 +126,7 @@ rm -rf $RPM_BUILD_ROOT
%doc CHANGELOG.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-errors.git/commitdiff/91233cd229a80980a46ca7cd6d5174741ea72209
More information about the pld-cvs-commit
mailing list