xmonad-extras-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. %define pkg_name xmonad-extras
  2. %define pkg_version 0.12.1
  3. %define pkg_release 4%{?_dist_release}
  4. %define ghc_version 7.10.3
  5. Summary: Various modules for xmonad
  6. Summary(ja): xmonadのための様々なモジュール
  7. Name: %{pkg_name}
  8. Version: %{pkg_version}
  9. Release: %{pkg_release}
  10. License: BSD3
  11. Group: User Interface/Desktops
  12. URL: http://hackage.haskell.org
  13. Source0: %{name}-%{version}.tar.gz
  14. Source1: ghc-mtl-1.2.1.0.tar.gz
  15. Source2: ghc-paths-0.1.0.9.tar.gz
  16. Source3: hint-0.4.2.3.tar.gz
  17. Source100: packages
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: ghc haskell-platform-base cabal-install
  20. BuildRequires: xmonad xmonad-contrib
  21. BuildRequires: libffi-devel gmp-devel zlib-devel
  22. BuildRequires: xorg-x11-devel
  23. BuildRequires: docbook-utils docbook-utils-pdf docbook-style-xsl
  24. BuildRequires: hscolour
  25. Requires: xmonad xmonad-contrib
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. Packager: ara_t
  29. %description
  30. Various modules for xmonad that cannot be added to xmonad-contrib
  31. because of additional dependencies.
  32. %description -l ja
  33. サードパーティーによるxmonad拡張であり、依存パッケージの追加のために
  34. xmonad-contribに含まれなかったモジュールを含みます。
  35. %prep
  36. %{__rm} -rf ${RPM_BUILD_ROOT}
  37. %setup -q
  38. # Initialise the package db
  39. ghc-pkg init %{_builddir}/package.conf
  40. %build
  41. PKG_CONF_DIR=${RPM_BUILD_ROOT}%{_libdir}/ghc-%{ghc_version}/package.conf.d
  42. %{__mkdir_p} ${PKG_CONF_DIR}
  43. # install dependent packages
  44. cd %{_builddir}
  45. for pkg in `cat %{SOURCE100}`; do
  46. %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
  47. cd ${pkg}
  48. cabal configure \
  49. --prefix=%{_prefix} \
  50. --libdir=%{_libdir}/ghc-lib/%{name}/${pkg} \
  51. --libsubdir= \
  52. --datadir=%{_datadir}/%{name}/${pkg} \
  53. --datasubdir= \
  54. --docdir=%{_docdir}/%{name}/${pkg}
  55. cabal build
  56. cabal haddock
  57. cabal copy --destdir=${RPM_BUILD_ROOT}
  58. cabal register --inplace
  59. cabal register --gen-pkg-config=${PKG_CONF_DIR}/%{name}_${pkg}.conf
  60. cd ..
  61. done
  62. # build xmonad-extras
  63. cd %{_builddir}/%{name}-%{version}
  64. cabal configure \
  65. --prefix=%{_prefix} \
  66. --libdir=%{_libdir}/ghc-lib/%{name}/%{name}-%{version} \
  67. --libsubdir= \
  68. --datadir=%{_datadir}/%{name}/%{name}-%{version} \
  69. --datasubdir= \
  70. --docdir=%{_docdir}/%{name}/%{name}-%{version}
  71. cabal build
  72. cabal haddock
  73. cabal copy --destdir=${RPM_BUILD_ROOT}
  74. cabal register --inplace
  75. cabal register --gen-pkg-config=${PKG_CONF_DIR}/%{name}-%{version}.conf
  76. # %install
  77. # %{__cp} LICENSE ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version}
  78. %clean
  79. %{__rm} -rf ${RPM_BUILD_ROOT}
  80. %post
  81. ghc-pkg recache
  82. %postun
  83. ghc-pkg recache
  84. %files
  85. %defattr(-, root, root)
  86. %{_libdir}/ghc-%{ghc_version}/
  87. %{_libdir}/ghc-lib/
  88. %{_docdir}/
  89. %changelog
  90. * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-4
  91. - rebuild under xmonad-0.12-3 and xmonad-contrib-0.12-4
  92. - correct SPEC file
  93. * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-3
  94. - rebuild under xmonad-0.12-2 and xmonad-contrib-0.12-3
  95. * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-2
  96. - recompile
  97. * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.12.1-1
  98. - new package