libghc-aeson-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. %define pkg_name aeson
  2. %define pkg_version 1.3.1.1
  3. %define pkg_release 1%{?_dist_release}
  4. Summary: Haskell libraries: %{pkg_name} and dependent libraries
  5. Name: libghc-%{pkg_name}
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. License: BSD3
  9. Group: Applications/Text
  10. URL: http://hackage.haskell.org
  11. Source0: packages
  12. Source11: base-compat-0.10.1.tar.gz
  13. Source12: base-compat.cabal
  14. Source13: th-abstraction-0.2.6.0.tar.gz
  15. Source14: th-abstraction.cabal
  16. Source15: time-locale-compat-0.1.1.4.tar.gz
  17. Source16: time-locale-compat.cabal
  18. Source17: transformers-compat-0.6.2.tar.gz
  19. Source18: transformers-compat.cabal
  20. Source19: uuid-types-1.0.3.tar.gz
  21. Source20: uuid-types.cabal
  22. Source21: tagged-0.8.5.tar.gz
  23. Source22: tagged.cabal
  24. Source23: aeson-1.3.1.1.tar.gz
  25. Source24: aeson.cabal
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  27. BuildRequires: ghc haskell-platform
  28. BuildRequires: libffi-devel gmp-devel zlib-devel
  29. BuildRequires: libghc-dlist
  30. BuildRequires: libghc-old-locale
  31. BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
  32. Requires: ghc haskell-platform
  33. Requires: haskell-platform-dep
  34. Requires: libghc-dlist
  35. Requires: libghc-old-locale
  36. Vendor: Project Vine
  37. Distribution: Vine Linux
  38. Packager: ara_t
  39. %description
  40. Haskell libraries: %{pkg_name}
  41. %prep
  42. %{__rm} -rf ${RPM_BUILD_ROOT}
  43. %build
  44. %ghc_pkg_init
  45. cd %{_builddir}
  46. for pkg in `cat %{SOURCE0}`; do
  47. %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
  48. pushd ${pkg}
  49. %ghc_fix_dependencies ${pkg}
  50. %cabal_configure2 %{name} ${pkg}
  51. %cabal_build
  52. %cabal_haddock
  53. %cabal_copy_resister %{name}_${pkg}
  54. popd
  55. done
  56. %install
  57. # copy documents
  58. pushd %{_builddir}/%{pkg_name}-%{version}
  59. %{__cp} changelog.md README.markdown \
  60. ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{pkg_name}-%{version}
  61. popd
  62. %clean
  63. %{__rm} -rf ${RPM_BUILD_ROOT}
  64. %post
  65. %ghc_pkg_recache
  66. %postun
  67. %ghc_pkg_recache
  68. %files
  69. %defattr(-, root, root)
  70. %{_libdir}/ghc-%{ghc_version}/
  71. %{_libdir}/ghc-lib/
  72. %{_datadir}/
  73. %changelog
  74. * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 1.3.1.1-1
  75. - update to 1.3.1.1
  76. - rebuild using ghc-8.4.2
  77. - rewrite using macro
  78. * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 1.2.3.0-1
  79. - update to 1.2.3.0
  80. - build using ghc-8.2.2
  81. * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.11.3.0-1
  82. - update to 0.11.3.0
  83. - build using ghc-8.0.1
  84. * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.9.0.1-3
  85. - rebuilt
  86. * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.9.0.1-2
  87. - correct SPEC file
  88. * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.9.0.1-1
  89. - new package