[packages/ghc-zip-archive] - updated docs packaging

qboosh qboosh at pld-linux.org
Sat Mar 28 09:13:31 CET 2026


commit 5da9aff4ea7e99b8f530727b34d36756b0787d34
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Mar 28 09:13:42 2026 +0100

    - updated docs packaging

 ghc-zip-archive.spec | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/ghc-zip-archive.spec b/ghc-zip-archive.spec
index dde9315..6dd1a64 100644
--- a/ghc-zip-archive.spec
+++ b/ghc-zip-archive.spec
@@ -100,8 +100,8 @@ Requires:	ghc-time-prof
 Requires:	ghc-zlib-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
@@ -130,6 +130,7 @@ runhaskell Setup.hs configure -v2 \
 	--docdir=%{_docdir}/%{name}-%{version}
 
 runhaskell Setup.hs build
+
 runhaskell Setup.hs haddock --executables
 
 %install
@@ -140,8 +141,7 @@ runhaskell Setup.hs 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.hs register \
 	--gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
@@ -157,7 +157,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc LICENSE
+%doc LICENSE README.markdown changelog
 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSzip-archive-%{version}-*.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-zip-archive.git/commitdiff/5da9aff4ea7e99b8f530727b34d36756b0787d34



More information about the pld-cvs-commit mailing list