yaml-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. %define pkg_name yaml
  2. %define pkg_version 0.8.30
  3. %define pkg_release 1%{?_dist_release}
  4. Summary: Support for parsing and rendering YAML documents
  5. Name: %{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: exceptions-0.10.0.tar.gz
  13. Source12: exceptions.cabal
  14. Source13: unliftio-core-0.1.1.0.tar.gz
  15. Source14: unliftio-core.cabal
  16. Source15: vector-algorithms-0.7.0.1.tar.gz
  17. Source16: vector-algorithms.cabal
  18. Source17: resourcet-1.2.1.tar.gz
  19. Source18: resourcet.cabal
  20. Source19: mono-traversable-1.0.8.1.tar.gz
  21. Source20: mono-traversable.cabal
  22. Source21: conduit-1.3.0.2.tar.gz
  23. Source22: conduit.cabal
  24. Source23: yaml-0.8.30.tar.gz
  25. Source24: yaml.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: libghc-aeson
  32. BuildRequires: libghc-semigroups
  33. BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
  34. Requires: ghc haskell-platform
  35. Requires: haskell-platform-dep
  36. Requires: libghc-dlist
  37. Requires: libghc-old-locale
  38. Requires: libghc-aeson
  39. Requires: libghc-semigroups
  40. Vendor: Project Vine
  41. Distribution: Vine Linux
  42. Packager: ara_t
  43. %description
  44. This package includes the full libyaml C library version 0.1.5
  45. by Kirill Simonov in the package so you don't need to worry
  46. about any non-Haskell dependencies.
  47. The package is broken down into two primary modules.
  48. "Data.Yaml" provides a high-level interface based around the JSON datatypes
  49. provided by the @aeson@ package.
  50. "Text.Libyaml" provides a lower-level, streaming interface.
  51. For most users, "Data.Yaml" is recommended.
  52. #'
  53. %prep
  54. %{__rm} -rf ${RPM_BUILD_ROOT}
  55. %build
  56. %ghc_pkg_init
  57. for pkg in `sed '$d' %{SOURCE0}`; do
  58. %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
  59. pushd ${pkg}
  60. %ghc_fix_dependencies ${pkg}
  61. %cabal_configure2 %{name} ${pkg}
  62. %cabal_build
  63. %cabal_haddock
  64. %cabal_copy_resister %{name}_${pkg}
  65. popd
  66. done
  67. # build yaml
  68. for pkg in `tail -n 1 %{SOURCE0}`; do
  69. %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
  70. pushd ${pkg}
  71. %ghc_fix_dependencies ${pkg}
  72. %cabal_configure2 %{name} ${pkg} \
  73. -f -no-exe
  74. %cabal_build
  75. %cabal_haddock
  76. %cabal_copy_resister %{pkg_name}-%{version}
  77. popd
  78. done
  79. %install
  80. # copy documents
  81. pushd %{_builddir}/%{pkg_name}-%{version}
  82. %{__cp} ChangeLog.md README.md \
  83. ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{pkg_name}-%{version}
  84. popd
  85. %clean
  86. %{__rm} -rf ${RPM_BUILD_ROOT}
  87. %post
  88. %ghc_pkg_recache
  89. %postun
  90. %ghc_pkg_recache
  91. %files
  92. %defattr(-, root, root)
  93. %{_bindir}/
  94. %{_libdir}/ghc-%{ghc_version}/
  95. %{_libdir}/ghc-lib/
  96. %{_docdir}/%{name}/
  97. %changelog
  98. * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.8.30-1
  99. - update to 0.8.30
  100. - rebuild using ghc-8.4.2
  101. - rewrite using macro
  102. * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.8.25.1-1
  103. - update to 0.8.25.1
  104. - build using ghc-8.2.2
  105. * Tue Feb 21 2017 Toshiaki Ara <ara_t@384.jp> 0.8.21.2-2
  106. - build using ghc-8.0.2
  107. * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.8.21.2-1
  108. - update to 0.8.21.2
  109. - build using ghc-8.0.1
  110. * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.8.16-3
  111. - rebuilt
  112. * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.8.16-2
  113. - correct SPEC file
  114. * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.8.16-1
  115. - new package