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

Revision 10916, 2.2 KB checked in by ara_t, 7 years ago (diff)

xmonad/xmobar: rebuild with ghc-8.0.1

Line 
1%define pkg_name    xmonad-utils
2%define pkg_version 0.1.3.3
3%define pkg_release 5%{?_dist_release}
4
5%define ghc_version 8.0.1
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
26
27Requires: xmonad
28
29Vendor: Project Vine
30Distribution: Vine Linux
31Packager: ara_t
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%{__rm} -rf %{_builddir}/package.conf
45%{__rm} -rf ${HOME}/.ghc
46%setup -q
47
48# Initialise the package db
49ghc-pkg init %{_builddir}/package.conf
50
51%build
52cabal 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
60cabal build
61cabal 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
70ghc-pkg recache
71
72%postun
73ghc-pkg recache
74
75
76%files
77%defattr(-, root, root)
78%{_bindir}/
79%{_docdir}/%{name}
80
81
82%changelog
83* Thu Feb 02 2017 Toshiaki Ara <ara_t@384.jp> 0.1.3.3-5
84- rebuild using ghc-8.0.1
85
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
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
Note: See TracBrowser for help on using the repository browser.