|
@@ -1,8 +1,8 @@
|
|
%define pkg_name pandoc-crossref
|
|
%define pkg_name pandoc-crossref
|
|
-%define pkg_version 0.3.0.0
|
|
+%define pkg_version 0.3.2.0
|
|
%define pkg_release 1%{?_dist_release}
|
|
%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
-%define pandoc_version 2.0.6
|
|
+%define pandoc_version 2.2.1
|
|
|
|
|
|
Summary: Library and executable for using citeproc with pandoc
|
|
Summary: Library and executable for using citeproc with pandoc
|
|
Name: %{pkg_name}
|
|
Name: %{pkg_name}
|
|
@@ -13,39 +13,35 @@ License: BSD3
|
|
Group: Applications/Text
|
|
Group: Applications/Text
|
|
URL: http://hackage.haskell.org
|
|
URL: http://hackage.haskell.org
|
|
|
|
|
|
-Source0: %{name}-%{version}.tar.gz
|
|
+Source0: packages
|
|
-Source1: packages
|
|
+
|
|
-
|
|
+Source11: ansi-wl-pprint-0.6.8.2.tar.gz
|
|
-# num=11; for pkg in `cat packages`; do echo "Source${num}: ${pkg}.tar.gz"; num=`expr ${num} + 1`; done
|
|
+Source12: ansi-wl-pprint.cabal
|
|
-Source11: base-unicode-symbols-0.2.2.4.tar.gz
|
|
+Source13: base-unicode-symbols-0.2.2.4.tar.gz
|
|
-Source12: colour-2.3.4.tar.gz
|
|
+Source14: base-unicode-symbols.cabal
|
|
-Source13: data-accessor-0.2.2.7.tar.gz
|
|
+Source15: data-accessor-0.2.2.7.tar.gz
|
|
-Source14: open-browser-0.2.1.0.tar.gz
|
|
+Source16: data-accessor.cabal
|
|
-Source15: utility-ht-0.0.14.tar.gz
|
|
+Source17: open-browser-0.2.1.0.tar.gz
|
|
-Source16: roman-numerals-0.5.1.5.tar.gz
|
|
+Source18: open-browser.cabal
|
|
-Source17: ansi-terminal-0.7.1.1.tar.gz
|
|
+Source19: temporary-1.2.1.1.tar.gz
|
|
-Source18: data-accessor-transformers-0.2.1.7.tar.gz
|
|
+Source20: temporary.cabal
|
|
-Source19: data-accessor-template-0.2.1.14.tar.gz
|
|
+Source21: utility-ht-0.0.14.tar.gz
|
|
-Source20: ansi-wl-pprint-0.6.8.1.tar.gz
|
|
+Source22: utility-ht.cabal
|
|
-Source21: optparse-applicative-0.14.0.0.tar.gz
|
|
+Source23: optparse-applicative-0.14.2.0.tar.gz
|
|
-
|
|
+Source24: optparse-applicative.cabal
|
|
-# to fix wrong dependencies in cabal files
|
|
+Source25: roman-numerals-0.5.1.5.tar.gz
|
|
-# do not use '-'
|
|
+Source26: roman-numerals.cabal
|
|
-%define ansi_wl_pprint_version 0.6.8.1
|
|
+Source27: data-accessor-transformers-0.2.1.7.tar.gz
|
|
-Source101: ansi-wl-pprint.cabal
|
|
+Source28: data-accessor-transformers.cabal
|
|
|
|
+Source29: data-accessor-template-0.2.1.15.tar.gz
|
|
|
|
+Source30: data-accessor-template.cabal
|
|
|
|
+Source31: pandoc-crossref-0.3.2.0.tar.gz
|
|
|
|
+Source32: pandoc-crossref.cabal
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root
|
|
|
|
|
|
-BuildRequires: ghc haskell-platform
|
|
|
|
BuildRequires: libffi-devel gmp-devel zlib-devel
|
|
BuildRequires: libffi-devel gmp-devel zlib-devel
|
|
-
|
|
+BuildRequires: ghc haskell-platform
|
|
-BuildRequires: libghc-data-default-class
|
|
|
|
-BuildRequires: libghc-dlist
|
|
|
|
-BuildRequires: libghc-data-default
|
|
|
|
-BuildRequires: libghc-aeson
|
|
|
|
-BuildRequires: libghc-http-client-tls
|
|
|
|
-BuildRequires: yaml
|
|
|
|
-BuildRequires: libghc-build-pandoc
|
|
|
|
BuildRequires: pandoc-libs = %{pandoc_version}
|
|
BuildRequires: pandoc-libs = %{pandoc_version}
|
|
|
|
|
|
BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
|
|
BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
|
|
@@ -72,46 +68,33 @@ You need to specify -M chapters for non-latex/pdf output however.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
-%{__rm} -rf %{_builddir}/package.conf
|
|
|
|
-%{__rm} -rf ${HOME}/.ghc
|
|
|
|
-%setup -q
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-# Initialise the package db
|
|
+%ghc_pkg_init
|
|
-ghc-pkg init %{_builddir}/package.conf
|
|
|
|
|
|
|
|
-# install dependent packages
|
|
|
|
cd %{_builddir}
|
|
cd %{_builddir}
|
|
-for pkg in `cat %{_sourcedir}/packages`; do
|
|
+for pkg in `sed '$d' %{SOURCE0}`; do
|
|
- %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
|
|
+ %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
|
|
- cd ${pkg}
|
|
+ pushd ${pkg}
|
|
- # fix wrong dependencies
|
|
+ %ghc_fix_dependencies ${pkg}
|
|
- case ${pkg} in
|
|
+ %{__cabal} configure
|
|
- "ansi-wl-pprint-%{ansi_wl_pprint_version}") \
|
|
+ %{__cabal} build
|
|
- %{__cp} %{SOURCE101} . ;;
|
|
+ %{__cabal} copy
|
|
- *) ;;
|
|
+ %{__cabal} register --inplace
|
|
- esac
|
|
+ popd
|
|
-
|
|
|
|
- cabal configure
|
|
|
|
- cabal build
|
|
|
|
- cabal copy
|
|
|
|
- cabal register --inplace
|
|
|
|
- cd ..
|
|
|
|
done
|
|
done
|
|
|
|
|
|
-# build pandoc-crossref
|
|
+for pkg in `tail -n 1 %{SOURCE0}`; do
|
|
-cd %{name}-%{version}
|
|
+ %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
|
|
-cabal configure \
|
|
+ pushd ${pkg}
|
|
- --prefix=%{_prefix} \
|
|
+ %ghc_fix_dependencies ${pkg}
|
|
- --libdir=%{_libdir}/%{name}-%{version} \
|
|
+ %cabal_configure1 ${pkg}
|
|
- --libsubdir= \
|
|
+ %cabal_build
|
|
- --datadir=%{_datadir}/%{name}-%{version} \
|
|
+ %cabal_haddock
|
|
- --datasubdir= \
|
|
+ %cabal_copy_resister ${pkg}
|
|
- --docdir=%{_docdir}/%{name}-%{version}
|
|
+ popd
|
|
|
|
+done
|
|
|
|
|
|
-cabal build
|
|
|
|
-cabal haddock || :
|
|
|
|
-cabal copy --destdir=${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}%{_libdir}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}%{_libdir}
|
|
@@ -128,6 +111,11 @@ cabal copy --destdir=${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.3.2.0-1
|
|
|
|
+- update to 0.3.2.0
|
|
|
|
+- rebuild using ghc-8.4.2 and pandoc-2.2.1
|
|
|
|
+- rewrite using macro
|
|
|
|
+
|
|
* Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.3.0.0-1
|
|
* Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.3.0.0-1
|
|
- update to 0.3.0.0
|
|
- update to 0.3.0.0
|
|
- build using ghc-8.2.2
|
|
- build using ghc-8.2.2
|