Browse Source

yaml: update to 0.8.21.2 / build with ghc-8.0.1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10915 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 5 years ago
parent
commit
7978588e18
1 changed files with 24 additions and 19 deletions
  1. 24 19
      y/yaml/yaml-vl.spec

+ 24 - 19
y/yaml/yaml-vl.spec

@@ -1,8 +1,8 @@
 %define pkg_name    yaml
-%define pkg_version 0.8.16
-%define pkg_release 3%{?_dist_release}
+%define pkg_version 0.8.21.2
+%define pkg_release 1%{?_dist_release}
 
-%define ghc_version 7.10.3
+%define ghc_version 8.0.1
 
 Summary: Support for parsing and rendering YAML documents
 Name:    %{pkg_name}
@@ -14,30 +14,29 @@ Group:   Applications/Text
 URL:     http://hackage.haskell.org
 
 Source0: %{name}-%{version}.tar.gz
-Source1: fail-4.9.0.0.tar.gz
-Source2: mmorph-1.0.6.tar.gz
-Source3: tagged-0.8.3.tar.gz
-Source4: semigroups-0.18.1.tar.gz
-Source5: transformers-base-0.4.4.tar.gz
-Source6: monad-control-1.0.0.5.tar.gz
-Source7: lifted-base-0.2.3.6.tar.gz
-Source8: enclosed-exceptions-1.0.1.1.tar.gz
-Source9: resourcet-1.1.7.2.tar.gz
-Source10: conduit-1.2.6.2.tar.gz
-
-Source100: packages
+Source1: packages
+
+# num=11; for pkg in `cat packages`; do echo "Source${num}: ${pkg}.tar.gz"; num=`expr ${num} + 1`; done
+Source11: exceptions-0.8.3.tar.gz
+Source12: mmorph-1.0.6.tar.gz
+Source13: semigroups-0.18.1.tar.gz
+Source14: transformers-base-0.4.4.tar.gz
+Source15: monad-control-1.0.0.5.tar.gz
+Source16: lifted-base-0.2.3.6.tar.gz
+Source17: enclosed-exceptions-1.0.1.1.tar.gz
+Source18: resourcet-1.1.7.2.tar.gz
+Source19: conduit-1.2.6.2.tar.gz
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
-BuildRequires: ghc haskell-platform-base cabal-install
+BuildRequires: ghc haskell-platform
 BuildRequires: libffi-devel gmp-devel zlib-devel
 BuildRequires: libghc-dlist
 BuildRequires: libghc-aeson
 
 BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
-BuildRequires: hscolour
 
-Requires: ghc haskell-platform-base cabal-install
+Requires: ghc haskell-platform
 Requires: libghc-dlist
 Requires: libghc-aeson
 
@@ -60,6 +59,8 @@ For most users, "Data.Yaml" is recommended.
 
 %prep
 %{__rm} -rf ${RPM_BUILD_ROOT}
+%{__rm} -rf %{_builddir}/package.conf
+%{__rm} -rf ${HOME}/.ghc
 %setup -q
 
 %build
@@ -71,7 +72,7 @@ PKG_CONF_DIR=${RPM_BUILD_ROOT}%{_libdir}/ghc-%{ghc_version}/package.conf.d
 
 # install dependent packages
 cd %{_builddir}
-for pkg in `cat %{SOURCE100}`; do
+for pkg in `cat %{SOURCE1}`; do
   %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
   cd ${pkg}
   cabal configure \
@@ -131,6 +132,10 @@ ghc-pkg recache
 
 
 %changelog
+* Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.8.21.2-1
+- update to 0.8.21.2
+- build using ghc-8.0.1
+
 * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.8.16-3
 - rebuilt