From c43bf44661325e9127d6840fa3b65f989a8ee5c8 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Fri, 5 Jan 2024 22:59:36 +0100 Subject: [PATCH] update to 0.2.3.7 [release 0.2.3.7-1mamba;Sun Apr 12 2015] --- ghc-zip-archive.spec | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/ghc-zip-archive.spec b/ghc-zip-archive.spec index b256a66..c58a3d5 100644 --- a/ghc-zip-archive.spec +++ b/ghc-zip-archive.spec @@ -1,9 +1,10 @@ -%define ghc_ver %(ghc --version | sed "s|.*version ||") -%define pkgname %(echo %name | sed "s|^ghc-||") +%define ghc_ver %(/usr/bin/ghc --numeric-version) +%define pkgname zip-archive + Name: ghc-zip-archive -Version: 0.1.3.4 +Version: 0.2.3.7 Release: 1mamba -Summary: Provides functions for creating, modifying, and extracting files from zip archives +Summary: GHC library and tools for creating and modifying zip archives Group: System/Libraries Vendor: openmamba Distribution: openmamba @@ -25,13 +26,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root The zip-archive library provides functions for creating, modifying, and extracting files from zip archives. %prep -%setup -q -n zip-archive-%{version} +%setup -q -n %{pkgname}-%{version} %build -runghc Setup.lhs configure \ - --prefix=%{_prefix} --libdir=%{_libdir} +runghc Setup.lhs configure -v2 \ + --prefix=%{_prefix} \ + --libdir=%{_libdir} \ + --libexecdir=%{_libexecdir} \ + --docdir=%{_docdir}/%{name}-%{version} runghc Setup.lhs build +runghc Setup.lhs haddock --executables --html-location=URL --hyperlink-source %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -43,19 +48,20 @@ runghc Setup.lhs register \ [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -ghc-pkg register %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || true -: +ghc-pkg register %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || : %preun -ghc-pkg unregister %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || true -: +ghc-pkg unregister %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || : %files %defattr(-,root,root) -%dir %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version} -%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/* -%{_datadir}/doc/%{pkgname}-%{version}/LICENSE +%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version} +%{_datadir}/doc/%{name}-%{version}/LICENSE +%{_datadir}/doc/%{name}-%{version}/html %changelog +* Sun Apr 12 2015 Davide Madrisan 0.2.3.7-1mamba +- update to 0.2.3.7 + * Sun Sep 08 2013 Silvan Calarco 0.1.3.4-1mamba - package created by silvan using the webbuild interface