update to 0.2.3.7 [release 0.2.3.7-1mamba;Sun Apr 12 2015]

This commit is contained in:
Davide Madrisan 2024-01-05 22:59:36 +01:00
parent 1425edc1fe
commit c43bf44661

View File

@ -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 <davide.madrisan@gmail.com> 0.2.3.7-1mamba
- update to 0.2.3.7
* Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.3.4-1mamba
- package created by silvan using the webbuild interface