xmonad-utils-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. %define pkg_name xmonad-utils
  2. %define pkg_version 0.1.3.3
  3. %define pkg_release 4%{?_dist_release}
  4. %define ghc_version 7.10.3
  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-base cabal-install
  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: arat
  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. %setup -q
  33. # Initialise the package db
  34. ghc-pkg init %{_builddir}/package.conf
  35. %build
  36. cabal configure \
  37. --prefix=%{_prefix} \
  38. --libdir=%{_libdir}/ghc-lib/%{name}/%{name}-%{version} \
  39. --libsubdir= \
  40. --datadir=%{_datadir}/%{name}/%{name}-%{version} \
  41. --datasubdir= \
  42. --docdir=%{_docdir}/%{name}/%{name}-%{version}
  43. cabal build
  44. cabal copy --destdir=${RPM_BUILD_ROOT}
  45. %install
  46. %{__cp} LICENSE ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version}
  47. %clean
  48. %{__rm} -rf ${RPM_BUILD_ROOT}
  49. %post
  50. ghc-pkg recache
  51. %postun
  52. ghc-pkg recache
  53. %files
  54. %defattr(-, root, root)
  55. %{_bindir}/
  56. %{_docdir}/%{name}
  57. %changelog
  58. * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-4
  59. - rebuilt
  60. * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-3
  61. - correct SPEC file
  62. - rebuild under xmonad-0.12-3
  63. * Sun Mar 06 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-2
  64. - rebuild under xmonad-0.12-2
  65. * Sun Feb 28 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-1
  66. - new package