[packages/ghc-split] - pl, versioned base dependency
qboosh
qboosh at pld-linux.org
Thu Mar 26 21:16:19 CET 2026
commit 488be68daee994a9a38a1aa950992a4f1e13d782
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Mar 26 21:16:34 2026 +0100
- pl, versioned base dependency
ghc-split.spec | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/ghc-split.spec b/ghc-split.spec
index 28a1d55..6e9ccf6 100644
--- a/ghc-split.spec
+++ b/ghc-split.spec
@@ -4,6 +4,7 @@
#
%define pkgname split
Summary: Combinator library for splitting lists
+Summary(pl.UTF-8): Biblioteka kombinatora do dzielenia list
Name: ghc-%{pkgname}
Version: 0.2.3.4
Release: 2
@@ -14,8 +15,10 @@ Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{v
# Source0-md5: 2aab953bd696407e702e669e91180864
URL: http://hackage.haskell.org/package/split
BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc-base < 4.15
%if %{with prof}
-BuildRequires: ghc-prof
+BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-base-prof < 4.15
%endif
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
@@ -32,6 +35,10 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
A collection of various methods for splitting lists into parts,
akin to the "split" function found in several mainstream languages.
+%description -l pl.UTF-8
+Zbiór różnych metod do dzielenia list na części, podobna do funkcji
+"split" dostępnej w kilku językach głównego nurtu.
+
%package prof
Summary: Profiling %{pkgname} library for GHC
Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC
@@ -39,8 +46,8 @@ Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%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
@@ -58,6 +65,7 @@ runhaskell Setup.lhs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.lhs build
+
runhaskell Setup.lhs haddock --executables
%install
@@ -68,8 +76,7 @@ runhaskell Setup.lhs 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.lhs register \
--gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-split.git/commitdiff/488be68daee994a9a38a1aa950992a4f1e13d782
More information about the pld-cvs-commit
mailing list