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

This commit is contained in:
Davide Madrisan 2024-01-05 22:53:12 +01:00
parent 51c2fe0256
commit eb23637b52

View File

@ -1,16 +1,16 @@
%define ghc_ver %(ghc --version | sed "s|.*version ||")
%define pkgname %(echo %name | sed "s|^ghc-||")
%define ghc_ver %(ghc --numeric-version)
%define pkgname pandoc
Name: ghc-pandoc
Version: 1.11.1
Version: 1.13.2
Release: 1mamba
Summary: A library and command-line tool for converting from one markup format to another
Summary: GHC library and command-line tool for converting from one markup format to another
Group: Applications/Publishing
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://code.google.com/p/pandoc/
Source: https://pandoc.googlecode.com/files/pandoc-%{version}.tar.gz
URL: http://hackage.haskell.org/package/%{pkgname}
Source: http://hackage.haskell.org/package/pandoc-%{version}/pandoc-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -23,31 +23,43 @@ BuildRequires: haskell-platform
BuildRequires: ghc-blaze-html
BuildRequires: ghc-citeproc-hs
BuildRequires: ghc-extensible-exceptions
BuildRequires: ghc-pandoc-types < 1.11
BuildRequires: ghc-pandoc-types
BuildRequires: ghc-data-default
BuildRequires: ghc-json
BuildRequires: ghc-xml
BuildRequires: ghc-temporary
BuildRequires: ghc-tagsoup < 0.13
BuildRequires: ghc-tagsoup
BuildRequires: ghc-highlighting-kate
BuildRequires: ghc-texmath
BuildRequires: ghc-base64-bytestring
BuildRequires: ghc-zip-archive
BuildRequires: hscolour
BuildRequires: haskell-platform
BuildRequires: ghc-yaml
BuildRequires: ghc-hslua
BuildRequires: ghc-haddock-library
BuildRequires: ghc-SHA
BuildRequires: ghc-JuicyPixels
BuildRequires: ghc-data-default
Requires: ghc-blaze-html
Requires: ghc-citeproc-hs
Requires: ghc-extensible-exceptions
Requires: ghc-pandoc-types < 1.11
Requires: ghc-pandoc-types
Requires: ghc-data-default
Requires: ghc-json
Requires: ghc-xml
Requires: ghc-temporary
Requires: ghc-tagsoup < 0.13
Requires: ghc-tagsoup
Requires: ghc-highlighting-kate
Requires: ghc-texmath
Requires: ghc-base64-bytestring
Requires: ghc-zip-archive
Requires: ghc-yaml
Requires: ghc-hslua
Requires: ghc-haddock-library
Requires: ghc-SHA
Requires: ghc-JuicyPixels
Requires: ghc-data-default
Requires: ghc = %{ghc_ver}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -67,46 +79,45 @@ A command-line tool for converting from one markup format to another.
%setup -q -n %{pkgname}-%{version}
%build
runghc Setup.hs configure \
--prefix=%{_prefix} --libdir=%{_libdir}
runghc Setup.hs configure -v2 \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--docdir=%{_docdir}/%{name}-%{version}
runghc Setup.hs build
runghc Setup.hs haddock --html-location=URL --hyperlink-source
runghc Setup.hs haddock
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
runghc Setup.hs copy --destdir=%{buildroot}
runghc Setup.hs 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 %{pkgname}-%{version} || true
:
ghc-pkg unregister %{pkgname}-%{version} || :
%files
%defattr(-,root,root)
%dir %{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}
%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}/*
%dir %{_docdir}/%{pkgname}-%{version}
%{_docdir}/%{pkgname}-%{version}/COPYING
%dir %{_docdir}/%{pkgname}-%{version}/html
%{_docdir}/%{pkgname}-%{version}/html/*
%{_mandir}/man1/%{pkgname}.1*
%{_mandir}/man5/%{pkgname}*.5*
%{_libdir}/ghc-%{ghc_ver}/%{pkgname}-%{version}
%dir %{_docdir}/%{name}-%{version}
%{_docdir}/%{name}-%{version}/COPYING
%{_docdir}/%{name}-%{version}/html
%files -n %{pkgname}
%defattr(-,root,root)
%{_bindir}/pandoc
%dir %{_datadir}/%{pkgname}-%{version}
%{_datadir}/%{pkgname}-%{version}/*
%{_datadir}/%{pkgname}-%{version}
%changelog
* Sun Apr 12 2015 Davide Madrisan <davide.madrisan@gmail.com> 1.13.2-1mamba
- update to 1.13.2
* Tue Apr 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.11.1-1mamba
- package created by silvan using the webbuild interface