2024-01-05 22:59:36 +01:00
|
|
|
%define ghc_ver %(/usr/bin/ghc --numeric-version)
|
|
|
|
%define pkgname zip-archive
|
|
|
|
|
2024-01-05 22:59:36 +01:00
|
|
|
Name: ghc-zip-archive
|
2024-01-05 22:59:36 +01:00
|
|
|
Version: 0.2.3.7
|
2024-01-05 22:59:36 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 22:59:36 +01:00
|
|
|
Summary: GHC library and tools for creating and modifying zip archives
|
2024-01-05 22:59:36 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://hackage.haskell.org/package/zip-archive
|
|
|
|
Source: http://hackage.haskell.org/packages/archive/zip-archive/%{version}/zip-archive-%{version}.tar.gz
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: ghc
|
|
|
|
BuildRequires: ghc-digest
|
|
|
|
BuildRequires: ghc-utf8-string
|
|
|
|
Requires: ghc = %{ghc_ver}
|
|
|
|
Requires: ghc-digest
|
|
|
|
Requires: ghc-utf8-string
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
The zip-archive library provides functions for creating, modifying, and extracting files from zip archives.
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 22:59:36 +01:00
|
|
|
%setup -q -n %{pkgname}-%{version}
|
2024-01-05 22:59:36 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 22:59:36 +01:00
|
|
|
runghc Setup.lhs configure -v2 \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--libexecdir=%{_libexecdir} \
|
|
|
|
--docdir=%{_docdir}/%{name}-%{version}
|
2024-01-05 22:59:36 +01:00
|
|
|
|
|
|
|
runghc Setup.lhs build
|
2024-01-05 22:59:36 +01:00
|
|
|
runghc Setup.lhs haddock --executables --html-location=URL --hyperlink-source
|
2024-01-05 22:59:36 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
runghc Setup.lhs copy --destdir=%{buildroot}
|
|
|
|
runghc Setup.lhs register \
|
|
|
|
--gen-pkg-config="%{buildroot}%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf"
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
2024-01-05 22:59:36 +01:00
|
|
|
ghc-pkg register %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || :
|
2024-01-05 22:59:36 +01:00
|
|
|
|
|
|
|
%preun
|
2024-01-05 22:59:36 +01:00
|
|
|
ghc-pkg unregister %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf &>/dev/null || :
|
2024-01-05 22:59:36 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 22:59:36 +01:00
|
|
|
%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}
|
|
|
|
%{_datadir}/doc/%{name}-%{version}/LICENSE
|
|
|
|
%{_datadir}/doc/%{name}-%{version}/html
|
2024-01-05 22:59:36 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 22:59:36 +01:00
|
|
|
* Sun Apr 12 2015 Davide Madrisan <davide.madrisan@gmail.com> 0.2.3.7-1mamba
|
|
|
|
- update to 0.2.3.7
|
|
|
|
|
2024-01-05 22:59:36 +01:00
|
|
|
* Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.3.4-1mamba
|
|
|
|
- package created by silvan using the webbuild interface
|