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

This commit is contained in:
Davide Madrisan 2024-01-05 22:43:55 +01:00
parent 6f24692361
commit 889bd2d217

View File

@ -1,21 +1,25 @@
%define ghc_ver %(ghc --version | sed "s|.*version ||") %define ghc_ver %(ghc --numeric-version)
%define pkgname %(echo %name | sed "s|^ghc-||") %define pkgname aeson
Name: ghc-aeson Name: ghc-aeson
Version: 0.6.2.0 Version: 0.7.0.6
Release: 1mamba Release: 1mamba
Summary: A JSON parsing and encoding library optimized for ease of use and high performance Summary: GHC library: Fast JSON parsing and encoding
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://hackage.haskell.org/package/%{pkgname} URL: http://hackage.haskell.org/package/%{pkgname}
Source: http://hackage.haskell.org/packages/archive/aeson/%{version}/aeson-%{version}.tar.gz Source: http://hackage.haskell.org/packages/archive/aeson-%{version}/aeson-%{version}.tar.gz
License: BSD License: BSD
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: ghc BuildRequires: ghc
BuildRequires: ghc-blaze-builder BuildRequires: ghc-blaze-builder
BuildRequires: ghc-dlist BuildRequires: ghc-dlist
BuildRequires: ghc-attoparsec
BuildRequires: ghc-scientific
#BuildRequires: ghc-text -- provided by haskell-platform
Requires: ghc-blaze-builder Requires: ghc-blaze-builder
Requires: ghc-dlist Requires: ghc-dlist
Requires: ghc = %{ghc_ver} Requires: ghc = %{ghc_ver}
@ -28,34 +32,40 @@ A JSON parsing and encoding library optimized for ease of use and high performan
%setup -q -n aeson-%{version} %setup -q -n aeson-%{version}
%build %build
runghc Setup.lhs configure \ runghc Setup.lhs configure -v2 \
--prefix=%{_prefix} --libdir=%{_libdir} --prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--docdir=%{_docdir}/%{name}-%{version}
runghc Setup.lhs build runghc Setup.lhs build
runghc Setup.lhs haddock --executable --html-location=URL --hyperlink-source
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
runghc Setup.lhs copy --destdir=%{buildroot} runghc Setup.lhs copy --destdir=%{buildroot}
runghc Setup.lhs register \ 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 %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post %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 %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 %files
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version} %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}
%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/* %dir %{_docdir}/%{name}-%{version}
%{_datadir}/doc/%{pkgname}-%{version}/LICENSE %{_docdir}/%{name}-%{version}/LICENSE
%{_docdir}/%{name}-%{version}/html
%changelog %changelog
* Sun Apr 12 2015 Davide Madrisan <davide.madrisan@gmail.com> 0.7.0.6-1mamba
- update to 0.7.0.6
* Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.2.0-1mamba * Sun Sep 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.2.0-1mamba
- package created by silvan using the webbuild interface - package created by silvan using the webbuild interface