diff --git a/README.md b/README.md index 698cfc7..f2fab7e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ghc-base64-bytestring +This package provides a Haskell library for working with base64-encoded data quickly and efficiently, using the ByteString type. + diff --git a/ghc-base64-bytestring.spec b/ghc-base64-bytestring.spec new file mode 100644 index 0000000..8f00240 --- /dev/null +++ b/ghc-base64-bytestring.spec @@ -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 +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 1.0.0.1-1mamba +- package created by silvan using the webbuild interface