[packages/ghc-doclayout] - pl, dependencies
qboosh
qboosh at pld-linux.org
Mon Jul 21 18:59:53 CEST 2025
commit 80af65d2272b566ef79ef03aab7abb027c725521
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 21 19:01:36 2025 +0200
- pl, dependencies
ghc-doclayout.spec | 38 +++++++++++++++++++++++++++++---------
1 file changed, 29 insertions(+), 9 deletions(-)
---
diff --git a/ghc-doclayout.spec b/ghc-doclayout.spec
index 995e76c..dd71c2c 100644
--- a/ghc-doclayout.spec
+++ b/ghc-doclayout.spec
@@ -4,6 +4,7 @@
#
%define pkgname doclayout
Summary: A prettyprinting library for laying out text documents
+Summary(pl.UTF-8): Biblioteka ładnego wypisywania do składania dokumentów tekstowych
Name: ghc-%{pkgname}
Version: 0.3
Release: 2
@@ -13,19 +14,26 @@ Group: Development/Languages
Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
# Source0-md5: b5ce397205583a70965046864814e9f5
URL: http://hackage.haskell.org/package/doclayout
-BuildRequires: ghc >= 6.12.3
+BuildRequires: ghc >= 8.0
+BuildRequires: ghc-base >= 4.9
+BuildRequires: ghc-base < 5
+BuildRequires: ghc-mtl
BuildRequires: ghc-safe
-BuildRequires: ghc-semigroups
+BuildRequires: ghc-text
%if %{with prof}
-BuildRequires: ghc-prof
+BuildRequires: ghc-prof >= 8.0
+BuildRequires: ghc-base-prof >= 4.9
+BuildRequires: ghc-mtl-prof
BuildRequires: ghc-safe-prof
-BuildRequires: ghc-semigroups-prof
+BuildRequires: ghc-text-prof
%endif
BuildRequires: rpmbuild(macros) >= 1.608
%requires_eq ghc
Requires(post,postun): /usr/bin/ghc-pkg
+Requires: ghc-base >= 4.9
+Requires: ghc-mtl
Requires: ghc-safe
-Requires: ghc-semigroups
+Requires: ghc-text
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# debuginfo is not useful for ghc
@@ -39,17 +47,25 @@ doclayout is a prettyprinting library for laying out text documents,
with several features not present in prettyprinting libraries designed
for code. It was designed for use in pandoc.
+%description -l pl.UTF-8
+doclayout to biblioteka ładnego wypisywania (prettyprint) do składania
+dokumentów tekstowych z kilkoma funkcjami nieobecnymi w bibliotekach
+ładnego wypisywania zaprojektowanych dla kodu. Powstała z myślą o
+użyciu w narzędziu pandoc.
+
%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.9
+Requires: ghc-mtl-prof
Requires: ghc-safe-prof
-Requires: ghc-semigroups-prof
+Requires: ghc-text-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
@@ -67,6 +83,7 @@ runhaskell Setup.hs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.hs build
+
runhaskell Setup.hs haddock --executables
%install
@@ -80,6 +97,9 @@ runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+# packaged as %doc
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{pkgname}-%{version}/{README.md,changelog.md}
+
runhaskell Setup.hs register \
--gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
@@ -97,7 +117,7 @@ rm -rf $RPM_BUILD_ROOT
%doc README.md 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-doclayout.git/commitdiff/80af65d2272b566ef79ef03aab7abb027c725521
More information about the pld-cvs-commit
mailing list