source: projects/specs/trunk/x/xmonad-utils/xmonad-utils-vl.spec @ 10172

Revision 10172, 2.0 KB checked in by ara_t, 8 years ago (diff)

a small collection of X utilities when running XMonad

Line 
1%define pkg_name    xmonad-utils
2%define pkg_version 0.1.3.3
3%define pkg_release 3%{?_dist_release}
4
5%define ghc_version 7.10.3
6
7Summary:     a small collection of X utilities when running XMonad
8Summary(ja): XMonadのためのXユーティリティ集
9Name:    %{pkg_name}
10Version: %{pkg_version}
11Release: %{pkg_release}
12
13License: BSD3
14Group:   User Interface/Desktops
15URL:     http://hackage.haskell.org
16
17Source0: %{name}-%{version}.tar.gz
18
19BuildRoot: %{_tmppath}/%{name}-%{version}-root
20
21BuildRequires: ghc haskell-platform-base cabal-install
22BuildRequires: xmonad
23
24BuildRequires: libffi-devel gmp-devel zlib-devel
25BuildRequires: xorg-x11-devel
26
27Requires: xmonad
28
29Vendor: Project Vine
30Distribution: Vine Linux
31Packager: arat
32
33%description
34A 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
47ghc-pkg init %{_builddir}/package.conf
48
49%build
50cabal 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
58cabal build
59cabal 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
68ghc-pkg recache
69
70%postun
71ghc-pkg recache
72
73
74%files
75%defattr(-, root, root)
76%{_bindir}/
77%{_docdir}/
78
79
80%changelog
81* Mon Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-3
82- correct SPEC file
83- rebuild under xmonad-0.12-3
84
85* Sun Mar 06 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-2
86- rebuild under xmonad-0.12-2
87
88* Sun Feb 28 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-1
89- new package
Note: See TracBrowser for help on using the repository browser.