|
@@ -1,8 +1,13 @@
|
|
%define pkg_name build-pandoc
|
|
%define pkg_name build-pandoc
|
|
-%define pkg_version 1.17.0.3
|
|
+%define pkg_version 1.17.1
|
|
%define pkg_release 1%{?_dist_release}
|
|
%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
-%define ghc_version 7.10.3
|
|
+%define ghc_version 8.0.1
|
|
|
|
+# to fix wrong dependencies in cabal files
|
|
|
|
+# do not use '-'
|
|
|
|
+%define oldtime_version 1.1.0.3
|
|
|
|
+%define utf8string_version 1.0.1.1
|
|
|
|
+
|
|
|
|
|
|
Summary: Haskell libraries: %{pkg_name} and dependent libraries
|
|
Summary: Haskell libraries: %{pkg_name} and dependent libraries
|
|
Name: libghc-%{pkg_name}
|
|
Name: libghc-%{pkg_name}
|
|
@@ -13,31 +18,38 @@ License: BSD3
|
|
Group: Applications/Text
|
|
Group: Applications/Text
|
|
URL: http://hackage.haskell.org
|
|
URL: http://hackage.haskell.org
|
|
|
|
|
|
-Source0: JuicyPixels-3.2.7.tar.gz
|
|
+Source0: packages
|
|
-Source1: SHA-1.6.4.2.tar.gz
|
|
+
|
|
-Source2: blaze-markup-0.7.0.3.tar.gz
|
|
+# num=1; for pkg in `cat packages`; do echo "Source${num}: ${pkg}.tar.gz"; num=`expr ${num} + 1`; done
|
|
-Source3: blaze-html-0.8.1.1.tar.gz
|
|
+Source1: JuicyPixels-3.2.8.tar.gz
|
|
-Source4: cmark-0.5.2.tar.gz
|
|
+Source2: SHA-1.6.4.2.tar.gz
|
|
-Source5: digest-0.0.1.2.tar.gz
|
|
+Source3: blaze-markup-0.7.1.1.tar.gz
|
|
-Source6: extensible-exceptions-0.1.1.4.tar.gz
|
|
+Source4: blaze-html-0.8.1.3.tar.gz
|
|
-Source7: haddock-library-1.2.1.tar.gz
|
|
+Source5: cmark-0.5.5.tar.gz
|
|
-Source8: hslua-0.4.1.tar.gz
|
|
+Source6: digest-0.0.1.2.tar.gz
|
|
-Source9: pandoc-types-1.16.1.tar.gz
|
|
+Source7: extensible-exceptions-0.1.1.4.tar.gz
|
|
-Source10: regex-pcre-builtin-0.94.4.8.8.35.tar.gz
|
|
+Source8: haddock-library-1.4.2.tar.gz
|
|
-Source11: tagsoup-0.13.9.tar.gz
|
|
+Source9: hslua-0.4.1.tar.gz
|
|
-Source12: temporary-1.2.0.4.tar.gz
|
|
+Source10: old-time-1.1.0.3.tar.gz
|
|
-Source13: unix-compat-0.4.1.4.tar.gz
|
|
+Source11: pandoc-types-1.16.1.1.tar.gz
|
|
-Source14: filemanip-0.3.6.3.tar.gz
|
|
+Source12: regex-pcre-builtin-0.94.4.8.8.35.tar.gz
|
|
-Source15: utf8-string-1.0.1.1.tar.gz
|
|
+Source13: tagsoup-0.14.tar.gz
|
|
-Source16: highlighting-kate-0.6.2.tar.gz
|
|
+Source14: temporary-1.2.0.4.tar.gz
|
|
-Source17: xml-1.3.14.tar.gz
|
|
+Source15: unix-compat-0.4.3.1.tar.gz
|
|
-Source18: texmath-0.8.6.2.tar.gz
|
|
+Source16: filemanip-0.3.6.3.tar.gz
|
|
-Source19: zip-archive-0.3.0.2.tar.gz
|
|
+Source17: utf8-string-1.0.1.1.tar.gz
|
|
-Source100: packages
|
|
+Source18: highlighting-kate-0.6.4.tar.gz
|
|
|
|
+Source19: xml-1.3.14.tar.gz
|
|
|
|
+Source20: texmath-0.8.6.7.tar.gz
|
|
|
|
+Source21: zip-archive-0.3.0.5.tar.gz
|
|
|
|
+
|
|
|
|
+# to fix wrong dependencies in cabal files
|
|
|
|
+Source101: old-time.cabal
|
|
|
|
+Source102: utf8-string.cabal
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
-BuildRequires: ghc haskell-platform-base cabal-install
|
|
+BuildRequires: ghc haskell-platform
|
|
BuildRequires: libffi-devel gmp-devel zlib-devel
|
|
BuildRequires: libffi-devel gmp-devel zlib-devel
|
|
BuildRequires: libghc-data-default-class
|
|
BuildRequires: libghc-data-default-class
|
|
BuildRequires: libghc-dlist
|
|
BuildRequires: libghc-dlist
|
|
@@ -47,9 +59,8 @@ BuildRequires: libghc-http-client-tls
|
|
BuildRequires: yaml
|
|
BuildRequires: yaml
|
|
|
|
|
|
BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
|
|
BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
|
|
-BuildRequires: hscolour
|
|
|
|
|
|
|
|
-Requires: ghc haskell-platform-base cabal-install
|
|
+Requires: ghc haskell-platform
|
|
Requires: libghc-data-default-class
|
|
Requires: libghc-data-default-class
|
|
Requires: libghc-dlist
|
|
Requires: libghc-dlist
|
|
Requires: libghc-data-default
|
|
Requires: libghc-data-default
|
|
@@ -68,6 +79,8 @@ Haskell libraries: %{pkg_name}
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
+%{__rm} -rf %{_builddir}/package.conf
|
|
|
|
+%{__rm} -rf ${HOME}/.ghc
|
|
%setup -q -T -c %{name}-%{version}
|
|
%setup -q -T -c %{name}-%{version}
|
|
|
|
|
|
%build
|
|
%build
|
|
@@ -75,12 +88,20 @@ Haskell libraries: %{pkg_name}
|
|
ghc-pkg init %{_builddir}/package.conf
|
|
ghc-pkg init %{_builddir}/package.conf
|
|
|
|
|
|
PKG_CONF_DIR=${RPM_BUILD_ROOT}%{_libdir}/ghc-%{ghc_version}/package.conf.d
|
|
PKG_CONF_DIR=${RPM_BUILD_ROOT}%{_libdir}/ghc-%{ghc_version}/package.conf.d
|
|
|
|
+%{__rm} -rf ${PKG_CONF_DIR}
|
|
%{__mkdir_p} ${PKG_CONF_DIR}
|
|
%{__mkdir_p} ${PKG_CONF_DIR}
|
|
|
|
|
|
cd %{_builddir}
|
|
cd %{_builddir}
|
|
-for pkg in `cat %{SOURCE100}`; do
|
|
+for pkg in `cat %{SOURCE0}`; do
|
|
%{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
|
|
%{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
|
|
cd ${pkg}
|
|
cd ${pkg}
|
|
|
|
+ # fix wrong dependencies
|
|
|
|
+ case ${pkg} in
|
|
|
|
+ "old-time-%{oldtime_version}") %{__cp} %{SOURCE101} . ;;
|
|
|
|
+ "utf8-string-%{utf8string_version}") %{__cp} %{SOURCE102} . ;;
|
|
|
|
+ *) ;;
|
|
|
|
+ esac
|
|
|
|
+
|
|
cabal configure \
|
|
cabal configure \
|
|
--prefix=%{_prefix} \
|
|
--prefix=%{_prefix} \
|
|
--libdir=%{_libdir}/ghc-lib/%{name}/${pkg} \
|
|
--libdir=%{_libdir}/ghc-lib/%{name}/${pkg} \
|
|
@@ -115,5 +136,9 @@ ghc-pkg recache
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 1.17.1-1
|
|
|
|
+- update to 1.17.1
|
|
|
|
+- build using ghc-8.0.1
|
|
|
|
+
|
|
* Fri May 06 2016 Toshiaki Ara <ara_t@384.jp> 1.17.0.3-1
|
|
* Fri May 06 2016 Toshiaki Ara <ara_t@384.jp> 1.17.0.3-1
|
|
- new package
|
|
- new package
|