1 | %define pkg_name xmonad-utils |
---|
2 | %define pkg_version 0.1.3.3 |
---|
3 | %define pkg_release 4%{?_dist_release} |
---|
4 | |
---|
5 | %define ghc_version 7.10.3 |
---|
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 | |
---|
21 | BuildRequires: ghc haskell-platform-base cabal-install |
---|
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 |
---|
31 | Packager: arat |
---|
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} |
---|
44 | %setup -q |
---|
45 | |
---|
46 | # Initialise the package db |
---|
47 | ghc-pkg init %{_builddir}/package.conf |
---|
48 | |
---|
49 | %build |
---|
50 | cabal configure \ |
---|
51 | --prefix=%{_prefix} \ |
---|
52 | --libdir=%{_libdir}/ghc-lib/%{name}/%{name}-%{version} \ |
---|
53 | --libsubdir= \ |
---|
54 | --datadir=%{_datadir}/%{name}/%{name}-%{version} \ |
---|
55 | --datasubdir= \ |
---|
56 | --docdir=%{_docdir}/%{name}/%{name}-%{version} |
---|
57 | |
---|
58 | cabal build |
---|
59 | cabal copy --destdir=${RPM_BUILD_ROOT} |
---|
60 | |
---|
61 | %install |
---|
62 | %{__cp} LICENSE ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version} |
---|
63 | |
---|
64 | %clean |
---|
65 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
66 | |
---|
67 | %post |
---|
68 | ghc-pkg recache |
---|
69 | |
---|
70 | %postun |
---|
71 | ghc-pkg recache |
---|
72 | |
---|
73 | |
---|
74 | %files |
---|
75 | %defattr(-, root, root) |
---|
76 | %{_bindir}/ |
---|
77 | %{_docdir}/%{name} |
---|
78 | |
---|
79 | |
---|
80 | %changelog |
---|
81 | * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-4 |
---|
82 | - rebuilt |
---|
83 | |
---|
84 | * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-3 |
---|
85 | - correct SPEC file |
---|
86 | - rebuild under xmonad-0.12-3 |
---|
87 | |
---|
88 | * Sun Mar 06 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-2 |
---|
89 | - rebuild under xmonad-0.12-2 |
---|
90 | |
---|
91 | * Sun Feb 28 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-1 |
---|
92 | - new package |
---|