xmonad-utils-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. %define pkg_name xmonad-utils
  2. %define pkg_version 0.1.3.3
  3. %define pkg_release 5%{?_dist_release}
  4. %define ghc_version 8.0.1
  5. Summary: a small collection of X utilities when running XMonad
  6. Summary(ja): XMonadのためのXユーティリティ集
  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. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: ghc haskell-platform
  16. BuildRequires: xmonad
  17. BuildRequires: libffi-devel gmp-devel zlib-devel
  18. BuildRequires: xorg-x11-devel
  19. Requires: xmonad
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: ara_t
  23. %description
  24. A small collection of X utilities useful when running XMonad. It includes:
  25. - hxsel: which returns the text currently in the X selection;
  26. - hxput: sets the value of the X paste buffer;
  27. - hslock: a simple X screen lock;
  28. - hmanage: an utility to toggle the override-redirect property of any window;
  29. - hhp: a simple utility to hide the pointer, similar to unclutter.
  30. %prep
  31. %{__rm} -rf ${RPM_BUILD_ROOT}
  32. %{__rm} -rf %{_builddir}/package.conf
  33. %{__rm} -rf ${HOME}/.ghc
  34. %setup -q
  35. # Initialise the package db
  36. ghc-pkg init %{_builddir}/package.conf
  37. %build
  38. cabal configure \
  39. --prefix=%{_prefix} \
  40. --libdir=%{_libdir}/ghc-lib/%{name}/%{name}-%{version} \
  41. --libsubdir= \
  42. --datadir=%{_datadir}/%{name}/%{name}-%{version} \
  43. --datasubdir= \
  44. --docdir=%{_docdir}/%{name}/%{name}-%{version}
  45. cabal build
  46. cabal copy --destdir=${RPM_BUILD_ROOT}
  47. %install
  48. %{__cp} LICENSE ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version}
  49. %clean
  50. %{__rm} -rf ${RPM_BUILD_ROOT}
  51. %post
  52. ghc-pkg recache
  53. %postun
  54. ghc-pkg recache
  55. %files
  56. %defattr(-, root, root)
  57. %{_bindir}/
  58. %{_docdir}/%{name}
  59. %changelog
  60. * Thu Feb 02 2017 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-5
  61. - rebuild using ghc-8.0.1
  62. * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-4
  63. - rebuilt
  64. * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-3
  65. - correct SPEC file
  66. - rebuild under xmonad-0.12-3
  67. * Sun Mar 06 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-2
  68. - rebuild under xmonad-0.12-2
  69. * Sun Feb 28 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-1
  70. - new package