package created by silvan using the webbuild interface [release 1.0.0.1-1mamba;Sun Sep 08 2013]

This commit is contained in:
Silvan Calarco 2024-01-05 22:45:22 +01:00
parent c1095f0ce1
commit a46f0f486d
2 changed files with 62 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# ghc-base64-bytestring # ghc-base64-bytestring
This package provides a Haskell library for working with base64-encoded data quickly and efficiently, using the ByteString type.

View File

@ -0,0 +1,60 @@
%define ghc_ver %(ghc --version | sed "s|.*version ||")
Name: ghc-base64-bytestring
Version: 1.0.0.1
Release: 1mamba
Summary: A Haskell library for working with base64-encoded data quickly and efficiently
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/bos/base64-bytestring
## GITSOURCE https://github.com/bos/base64-bytestring.git 1.0.0.1
Source: https://github.com/bos/base64-bytestring.git/%{version}/base64-bytestring-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: ghc
Requires: ghc = %{ghc_ver}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This package provides a Haskell library for working with base64-encoded data quickly and efficiently, using the ByteString type.
%prep
%setup -q -n base64-bytestring-%{version}
%build
runghc Setup.hs configure \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--libdir=%{_libdir} \
--datadir=%{_datadir}
runghc Setup.hs build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
runghc Setup.hs copy --destdir=%{buildroot}
runghc Setup.hs register \
--gen-pkg-config="%{buildroot}%{_libdir}/ghc-%{ghc_ver}/base64-bytestring-%{version}/base64-bytestring-%{version}.conf"
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
ghc-pkg register %{_libdir}/ghc-%{ghc_ver}/base64-bytestring-%{version}/base64-bytestring-%{version}.conf &>/dev/null || true
:
%postun
ghc-pkg unregister %{_libdir}/ghc-%{ghc_ver}/base64-bytestring-%{version}/base64-bytestring-%{version}.conf &>/dev/null || true
:
%files
%defattr(-,root,root)
%dir %{_libdir}/ghc-%{ghc_ver}/base64-bytestring-%{version}
%{_libdir}/ghc-%{ghc_ver}/base64-bytestring-%{version}/*
%{_datadir}/doc/base64-bytestring-%{version}/LICENSE
%changelog
* Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0.1-1mamba
- package created by silvan using the webbuild interface