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