xmobar-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. %define pkg_name xmobar
  2. %define pkg_version 0.26
  3. %define pkg_release 1%{?_dist_release}
  4. Summary: a minimalistic text based status bar
  5. Summary(ja): テキストを基礎とした最小のステータスバー
  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. # Patch for building with hinotify-3.10
  14. Source2: xmobar-0.26_with_hinotify-3.10.patch
  15. Source11: hinotify-0.3.10.tar.gz
  16. Source12: hinotify.cabal
  17. Source13: timezone-series-0.1.9.tar.gz
  18. Source14: timezone-series.cabal
  19. Source15: timezone-olson-0.1.9.tar.gz
  20. Source16: timezone-olson.cabal
  21. Source17: xmobar-0.26.tar.gz
  22. Source18: xmobar.cabal
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. BuildRequires: ghc haskell-platform
  25. BuildRequires: xmonad-contrib
  26. BuildRequires: libffi-devel gmp-devel zlib-devel
  27. BuildRequires: xorg-x11-devel
  28. BuildRequires: libXpm-devel
  29. Requires: haskell-platform-dep
  30. Requires: xmonad-contrib
  31. Requires: libXpm
  32. Vendor: Project Vine
  33. Distribution: Vine Linux
  34. Packager: ara_t
  35. %description
  36. Xmobar is a minimalistic text based status bar.
  37. Inspired by the Ion3 status bar, it supports similar features,
  38. like dynamic color management, output templates, and extensibility
  39. through plugins.
  40. %description -l ja
  41. Xmobarはテキストを基礎とした最小のステータスバーです。
  42. %prep
  43. %{__rm} -rf ${RPM_BUILD_ROOT}
  44. %build
  45. %ghc_pkg_init
  46. cd %{_builddir}
  47. for pkg in `sed '$d' %{SOURCE0}`; do
  48. %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
  49. pushd ${pkg}
  50. %ghc_fix_dependencies ${pkg}
  51. %cabal_configure2 %{name} ${pkg}
  52. %cabal_build
  53. %cabal_haddock
  54. %cabal_copy_resister %{name}_${pkg}
  55. popd
  56. done
  57. cd %{_builddir}
  58. for pkg in `tail -n 1 %{SOURCE0}`; do
  59. %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz
  60. pushd ${pkg}
  61. %ghc_fix_dependencies ${pkg}
  62. # Patch for building with hinotify-3.10
  63. %{__patch} -p1 < %{SOURCE2}
  64. %cabal_configure2 %{name} ${pkg} \
  65. --flags="with_utf8" --flags="with_xft" \
  66. --flags="with_threaded" --flags="with_inotify" \
  67. --flags="with_datazone" --flags="with_xpm"
  68. %cabal_build
  69. %cabal_haddock
  70. %cabal_copy_resister %{name}_${pkg}
  71. popd
  72. done
  73. %install
  74. # copy documents
  75. pushd %{_builddir}/%{name}-%{version}
  76. %{__cp} readme.md \
  77. ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version}
  78. popd
  79. %clean
  80. %{__rm} -rf ${RPM_BUILD_ROOT}
  81. %post
  82. %ghc_pkg_recache
  83. %postun
  84. %ghc_pkg_recache
  85. %files
  86. %defattr(-, root, root)
  87. %{_bindir}/
  88. %{_libdir}/ghc-%{ghc_version}/
  89. %{_libdir}/ghc-lib/
  90. %{_docdir}/%{name}/
  91. %changelog
  92. * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.26-1
  93. - update to 0.26
  94. - rebuild using ghc-8.4.2
  95. - add Patch for building with hinotify-3.10 (Source2)
  96. - rewrite using macro
  97. * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.24.5-2
  98. - update to 0.24.5
  99. - rebuild using ghc-8.2.2
  100. * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.24.3-1
  101. - update to 0.24.3
  102. - build using ghc-8.0.1
  103. * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-6
  104. - rebuilt
  105. * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-5
  106. - rebuild under xmonad-0.12-3 and xmonad-contrib-0.12-4
  107. - correct SPEC file
  108. * Sun Mar 06 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-4
  109. - correct SPEC file
  110. * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-3
  111. - rebuild under xmonad-0.12-2 and xmonad-contrib-0.12-3
  112. * Sun Feb 28 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-2
  113. - add configure option and required libraries
  114. * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-1
  115. - new package