xmonad-extras-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. %define pkg_name xmonad-extras
  2. %define pkg_version 0.13.3
  3. %define pkg_release 3%{?_dist_release}
  4. Summary: Various modules for xmonad
  5. Summary(ja): xmonadのための様々なモジュール
  6. Name: %{pkg_name}
  7. Version: %{pkg_version}
  8. Release: %{pkg_release}
  9. License: BSD3
  10. Group: User Interface/Desktops
  11. URL: http://hackage.haskell.org
  12. Source0: packages
  13. Source11: alsa-core-0.5.0.1.tar.gz
  14. Source12: alsa-core.cabal
  15. Source13: libmpd-0.9.0.8.tar.gz
  16. Source14: libmpd.cabal
  17. Source15: language-c-0.7.2.tar.gz
  18. Source16: language-c.cabal
  19. Source17: c2hs-0.28.3.tar.gz
  20. Source18: c2hs.cabal
  21. Source19: alsa-mixer-0.2.0.3.tar.gz
  22. Source20: alsa-mixer.cabal
  23. Source21: xmonad-extras-0.13.3.tar.gz
  24. Source22: xmonad-extras.cabal
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  26. BuildRequires: ghc haskell-platform
  27. BuildRequires: xmonad xmonad-contrib
  28. BuildRequires: libffi-devel gmp-devel zlib-devel
  29. BuildRequires: xorg-x11-devel
  30. BuildRequires: alsa-lib-devel
  31. BuildRequires: ncurses-devel
  32. BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
  33. Requires: haskell-platform-dep
  34. Requires: xmonad xmonad-contrib
  35. Vendor: Project Vine
  36. Distribution: Vine Linux
  37. Packager: ara_t
  38. %description
  39. Various modules for xmonad that cannot be added to xmonad-contrib
  40. because of additional dependencies.
  41. %description -l ja
  42. サードパーティーによるxmonad拡張であり、依存パッケージの追加のために
  43. xmonad-contribに含まれなかったモジュールを含みます。
  44. %prep
  45. %{__rm} -rf ${RPM_BUILD_ROOT}
  46. %build
  47. export PATH=${RPM_BUILD_ROOT}%{_bindir}:${PATH}
  48. %ghc_pkg_init
  49. cd %{_builddir}
  50. for pkg in `cat %{SOURCE0}`; do
  51. %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
  52. pushd ${pkg}
  53. %ghc_fix_dependencies ${pkg}
  54. %cabal_configure2 %{name} ${pkg}
  55. %cabal_build
  56. %cabal_haddock
  57. %cabal_copy_resister %{name}_${pkg}
  58. popd
  59. done
  60. %install
  61. # copy documents
  62. pushd %{_builddir}/%{name}-%{version}
  63. %{__cp} CHANGELOG.md LICENSE README.md \
  64. ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version}
  65. popd
  66. %clean
  67. %{__rm} -rf ${RPM_BUILD_ROOT}
  68. %post
  69. %ghc_pkg_recache
  70. %postun
  71. %ghc_pkg_recache
  72. %files
  73. %defattr(-, root, root)
  74. %{_bindir}/
  75. %{_libdir}/ghc-%{ghc_version}/
  76. %{_libdir}/ghc-lib/
  77. %{_datadir}/%{name}/
  78. %{_docdir}/%{name}/
  79. %changelog
  80. * Fri Jul 20 2018 Toshiaki Ara <ara_t@384.jp> 0.13.3-3
  81. - build using ghc-8.4.3
  82. * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.13.3-1
  83. - update to 0.13.3
  84. - rebuild using ghc-8.4.2
  85. - rewrite using macro
  86. * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.13.2-1
  87. - update to 0.13.2
  88. - build using ghc-8.2.2
  89. * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.12.1-6
  90. - rebuild using ghc-8.0.1
  91. * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-5
  92. - rebuilt
  93. * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-4
  94. - rebuild under xmonad-0.12-3 and xmonad-contrib-0.12-4
  95. - correct SPEC file
  96. * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-3
  97. - rebuild under xmonad-0.12-2 and xmonad-contrib-0.12-3
  98. * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-2
  99. - recompile
  100. * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-1
  101. - new package