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

Revision 11384, 2.3 KB checked in by ara_t, 6 years ago (diff)

new upstream release

Line 
1%define pkg_name    xmonad-utils
2%define pkg_version 0.1.3.3
3%define pkg_release 6%{?_dist_release}
4
5%define ghc_version 8.2.2
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
22BuildRequires: xmonad
23
24BuildRequires: libffi-devel gmp-devel zlib-devel
25BuildRequires: xorg-x11-devel
26BuildRequires: ncurses-devel
27
28Requires: xmonad
29
30Vendor: Project Vine
31Distribution: Vine Linux
32Packager: ara_t
33
34%description
35A small collection of X utilities useful when running XMonad. It includes:
36- hxsel: which returns the text currently in the X selection;
37- hxput: sets the value of the X paste buffer;
38- hslock: a simple X screen lock;
39- hmanage: an utility to toggle the override-redirect property of any window;
40- hhp: a simple utility to hide the pointer, similar to unclutter.
41
42
43%prep
44%{__rm} -rf ${RPM_BUILD_ROOT}
45%{__rm} -rf %{_builddir}/package.conf
46%{__rm} -rf ${HOME}/.ghc
47%setup -q
48
49# Initialise the package db
50ghc-pkg init %{_builddir}/package.conf
51
52%build
53cabal configure \
54    --prefix=%{_prefix} \
55    --libdir=%{_libdir}/ghc-lib/%{name}/%{name}-%{version} \
56    --libsubdir= \
57    --datadir=%{_datadir}/%{name}/%{name}-%{version} \
58    --datasubdir= \
59    --docdir=%{_docdir}/%{name}/%{name}-%{version}
60
61cabal build
62cabal copy --destdir=${RPM_BUILD_ROOT}
63
64%install
65%{__cp} LICENSE ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version}
66
67%clean
68%{__rm} -rf ${RPM_BUILD_ROOT}
69
70%post
71ghc-pkg recache
72
73%postun
74ghc-pkg recache
75
76
77%files
78%defattr(-, root, root)
79%{_bindir}/
80%{_docdir}/%{name}
81
82
83%changelog
84* Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-6
85- rebuild using ghc-8.2.2
86
87* Thu Feb 02 2017 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-5
88- rebuild using ghc-8.0.1
89
90* Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-4
91- rebuilt
92
93* Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-3
94- correct SPEC file
95- rebuild under xmonad-0.12-3
96
97* Sun Mar 06 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-2
98- rebuild under xmonad-0.12-2
99
100* Sun Feb 28 2016 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-1
101- new package
Note: See TracBrowser for help on using the repository browser.