rebuilt [release 0.5.3-2mamba;Mon Apr 13 2015]

This commit is contained in:
Davide Madrisan 2024-01-05 22:48:21 +01:00
parent ce99d0618d
commit a1f0bbefab

View File

@ -1,8 +1,9 @@
%define ghc_ver %(ghc --version | sed "s|.*version ||")
%define pkgname %(echo %name | sed "s|^ghc-||")
%define ghc_ver %(ghc --numeric-version)
%define pkgname data-default
Name: ghc-data-default
Version: 0.5.3
Release: 1mamba
Release: 2mamba
Summary: GHC default data library.
Group: System/Libraries
Vendor: openmamba
@ -34,34 +35,40 @@ GHC default data library.
%setup -q -n data-default-%{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 --executable --html-location=URL --hyperlink-source
%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"
--gen-pkg-config="%{buildroot}%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/%{pkgname}-%{version}.conf"
%clean
[ "%{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 %{pkgname}-%{version} &>/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}
%dir %{_docdir}/%{name}-%{version}
%{_docdir}/%{name}-%{version}/LICENSE
%{_docdir}/%{name}-%{version}/html
%changelog
* Mon Apr 13 2015 Davide Madrisan <davide.madrisan@gmail.com> 0.5.3-2mamba
- rebuilt
* Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.3-1mamba
- package created by silvan using the webbuild interface