[packages/ghc-doctemplates] - pl, dependencies

qboosh qboosh at pld-linux.org
Mon Jul 21 19:02:11 CEST 2025


commit 3a14a3d32f1f2623a2d29a76f2a0c8167ca823f8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jul 21 19:03:54 2025 +0200

    - pl, dependencies

 ghc-doctemplates.spec | 69 ++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 54 insertions(+), 15 deletions(-)
---
diff --git a/ghc-doctemplates.spec b/ghc-doctemplates.spec
index dcdcb1e..cba9283 100644
--- a/ghc-doctemplates.spec
+++ b/ghc-doctemplates.spec
@@ -4,6 +4,7 @@
 #
 %define		pkgname	doctemplates
 Summary:	Pandoc-style document templates
+Summary(pl.UTF-8):	Szablony dokumentów w stylu pandoca
 Name:		ghc-%{pkgname}
 Version:	0.8.2
 Release:	2
@@ -13,33 +14,55 @@ Group:		Development/Languages
 Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5:	84be788ba38ad7983076fe698260e028
 URL:		http://hackage.haskell.org/package/doctemplates
-BuildRequires:	ghc >= 6.12.3
-BuildRequires:	ghc-aeson
-BuildRequires:	ghc-doclayout
+BuildRequires:	ghc >= 8.0.1
 BuildRequires:	ghc-HsYAML
+BuildRequires:	ghc-aeson
+BuildRequires:	ghc-base >= 4.9
+BuildRequires:	ghc-base < 5
+BuildRequires:	ghc-containers
+BuildRequires:	ghc-doclayout >= 0.3
+BuildRequires:	ghc-doclayout < 0.4
+BuildRequires:	ghc-filepath
+BuildRequires:	ghc-mtl
+BuildRequires:	ghc-parsec
+BuildRequires:	ghc-safe
 BuildRequires:	ghc-scientific
-BuildRequires:	ghc-semigroups
+BuildRequires:	ghc-text
 BuildRequires:	ghc-text-conversions
 BuildRequires:	ghc-unordered-containers
 BuildRequires:	ghc-vector
 %if %{with prof}
-BuildRequires:	ghc-prof
-BuildRequires:	ghc-aeson-prof
-BuildRequires:	ghc-doclayout-prof
+BuildRequires:	ghc-prof >= 8.0.1
 BuildRequires:	ghc-HsYAML-prof
+BuildRequires:	ghc-aeson-prof
+BuildRequires:	ghc-base-prof >= 4.9
+BuildRequires:	ghc-containers
+BuildRequires:	ghc-doclayout-prof >= 0.3
+BuildRequires:	ghc-filepath-prof
+BuildRequires:	ghc-mtl-prof
+BuildRequires:	ghc-parsec-prof
+BuildRequires:	ghc-safe-prof
 BuildRequires:	ghc-scientific-prof
 BuildRequires:	ghc-semigroups-prof
+BuildRequires:	ghc-text-prof
 BuildRequires:	ghc-text-conversions-prof
 BuildRequires:	ghc-unordered-containers-prof
 BuildRequires:	ghc-vector-prof
 %endif
 BuildRequires:	rpmbuild(macros) >= 1.608
 %requires_eq	ghc
-Requires:	ghc-aeson
-Requires:	ghc-doclayout
 Requires:	ghc-HsYAML
+Requires:	ghc-aeson
+Requires:	ghc-base >= 4.9
+Requires:	ghc-containers
+Requires:	ghc-doclayout >= 0.3
+Requires:	ghc-filepath
+Requires:	ghc-mtl
+Requires:	ghc-parsec
+Requires:	ghc-safe
 Requires:	ghc-scientific
 Requires:	ghc-semigroups
+Requires:	ghc-text
 Requires:	ghc-text-conversions
 Requires:	ghc-unordered-containers
 Requires:	ghc-vector
@@ -59,24 +82,37 @@ and partials. Templates are rendered to doclayout Docs, and variable
 values may come from a variety of different sources, including aeson
 Values.
 
+%description -l pl.UTF-8
+System szablonów tekstu wykorzystywany przez pandoc. Obsługuje
+wstawianie zmiennych, iterowanie, sprawdzanie niepustych wartości,
+potoki i częściowe podstawienia. Szablony są renderowane do typu Doc
+biblioteki doclayout, a wartości zmiennych mogą pochodzić z wielu
+różnych źródeł, w tym typu Value biblioteki aeson.
+
 %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-prof
-Requires:	ghc-aeson-prof
-Requires:	ghc-doclayout-prof
 Requires:	ghc-HsYAML-prof
+Requires:	ghc-aeson-prof
+Requires:	ghc-base-prof >= 4.9
+Requires:	ghc-containers-prof
+Requires:	ghc-doclayout-prof >= 0.3
+Requires:	ghc-filepath-prof
+Requires:	ghc-mtl-prof
+Requires:	ghc-parsec-prof
+Requires:	ghc-safe-prof
 Requires:	ghc-scientific-prof
 Requires:	ghc-semigroups-prof
+Requires:	ghc-text-prof
 Requires:	ghc-text-conversions-prof
 Requires:	ghc-unordered-containers-prof
 Requires:	ghc-vector-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
@@ -107,6 +143,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
 
@@ -124,7 +163,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-doctemplates.git/commitdiff/3a14a3d32f1f2623a2d29a76f2a0c8167ca823f8



More information about the pld-cvs-commit mailing list