1 | %define pkg_name xmobar |
---|
2 | %define pkg_version 0.26 |
---|
3 | %define pkg_release 1%{?_dist_release} |
---|
4 | |
---|
5 | Summary: a minimalistic text based status bar |
---|
6 | Summary(ja): テキストを基礎とした最小のステータスバー |
---|
7 | Name: %{pkg_name} |
---|
8 | Version: %{pkg_version} |
---|
9 | Release: %{pkg_release} |
---|
10 | |
---|
11 | License: BSD3 |
---|
12 | Group: User Interface/Desktops |
---|
13 | URL: http://hackage.haskell.org |
---|
14 | |
---|
15 | Source0: packages |
---|
16 | |
---|
17 | # Patch for building with hinotify-3.10 |
---|
18 | Source2: xmobar-0.26_with_hinotify-3.10.patch |
---|
19 | |
---|
20 | Source11: hinotify-0.3.10.tar.gz |
---|
21 | Source12: hinotify.cabal |
---|
22 | Source13: timezone-series-0.1.9.tar.gz |
---|
23 | Source14: timezone-series.cabal |
---|
24 | Source15: timezone-olson-0.1.9.tar.gz |
---|
25 | Source16: timezone-olson.cabal |
---|
26 | Source17: xmobar-0.26.tar.gz |
---|
27 | Source18: xmobar.cabal |
---|
28 | |
---|
29 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
30 | |
---|
31 | BuildRequires: ghc haskell-platform |
---|
32 | BuildRequires: xmonad-contrib |
---|
33 | BuildRequires: libffi-devel gmp-devel zlib-devel |
---|
34 | BuildRequires: xorg-x11-devel |
---|
35 | BuildRequires: libXpm-devel |
---|
36 | |
---|
37 | Requires: haskell-platform-dep |
---|
38 | Requires: xmonad-contrib |
---|
39 | Requires: libXpm |
---|
40 | |
---|
41 | Vendor: Project Vine |
---|
42 | Distribution: Vine Linux |
---|
43 | Packager: ara_t |
---|
44 | |
---|
45 | |
---|
46 | %description |
---|
47 | Xmobar is a minimalistic text based status bar. |
---|
48 | |
---|
49 | Inspired by the Ion3 status bar, it supports similar features, |
---|
50 | like dynamic color management, output templates, and extensibility |
---|
51 | through plugins. |
---|
52 | |
---|
53 | %description -l ja |
---|
54 | Xmobarはテキストを基礎とした最小のステータスバーです。 |
---|
55 | |
---|
56 | |
---|
57 | %prep |
---|
58 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
59 | |
---|
60 | %build |
---|
61 | %ghc_pkg_init |
---|
62 | |
---|
63 | cd %{_builddir} |
---|
64 | for pkg in `sed '$d' %{SOURCE0}`; do |
---|
65 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
66 | pushd ${pkg} |
---|
67 | %ghc_fix_dependencies ${pkg} |
---|
68 | %cabal_configure2 %{name} ${pkg} |
---|
69 | %cabal_build |
---|
70 | %cabal_haddock |
---|
71 | %cabal_copy_resister %{name}_${pkg} |
---|
72 | popd |
---|
73 | done |
---|
74 | |
---|
75 | cd %{_builddir} |
---|
76 | for pkg in `tail -n 1 %{SOURCE0}`; do |
---|
77 | %{__tar} xzf %{_sourcedir}/${pkg}.tar.gz |
---|
78 | pushd ${pkg} |
---|
79 | %ghc_fix_dependencies ${pkg} |
---|
80 | |
---|
81 | # Patch for building with hinotify-3.10 |
---|
82 | %{__patch} -p1 < %{SOURCE2} |
---|
83 | |
---|
84 | %cabal_configure2 %{name} ${pkg} \ |
---|
85 | --flags="with_utf8" --flags="with_xft" \ |
---|
86 | --flags="with_threaded" --flags="with_inotify" \ |
---|
87 | --flags="with_datazone" --flags="with_xpm" |
---|
88 | %cabal_build |
---|
89 | %cabal_haddock |
---|
90 | %cabal_copy_resister %{name}_${pkg} |
---|
91 | popd |
---|
92 | done |
---|
93 | |
---|
94 | |
---|
95 | %install |
---|
96 | # copy documents |
---|
97 | pushd %{_builddir}/%{name}-%{version} |
---|
98 | %{__cp} readme.md \ |
---|
99 | ${RPM_BUILD_ROOT}%{_docdir}/%{name}/%{name}-%{version} |
---|
100 | popd |
---|
101 | |
---|
102 | |
---|
103 | %clean |
---|
104 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
105 | |
---|
106 | %post |
---|
107 | %ghc_pkg_recache |
---|
108 | |
---|
109 | %postun |
---|
110 | %ghc_pkg_recache |
---|
111 | |
---|
112 | |
---|
113 | %files |
---|
114 | %defattr(-, root, root) |
---|
115 | %{_bindir}/ |
---|
116 | %{_libdir}/ghc-%{ghc_version}/ |
---|
117 | %{_libdir}/ghc-lib/ |
---|
118 | %{_docdir}/%{name}/ |
---|
119 | |
---|
120 | |
---|
121 | %changelog |
---|
122 | * Fri May 18 2018 Toshiaki Ara <ara_t@384.jp> 0.26-1 |
---|
123 | - update to 0.26 |
---|
124 | - rebuild using ghc-8.4.2 |
---|
125 | - add Patch for building with hinotify-3.10 (Source2) |
---|
126 | - rewrite using macro |
---|
127 | |
---|
128 | * Tue Jan 09 2018 Toshiaki Ara <ara_t@384.jp> 0.24.5-2 |
---|
129 | - update to 0.24.5 |
---|
130 | - rebuild using ghc-8.2.2 |
---|
131 | |
---|
132 | * Fri Feb 03 2017 Toshiaki Ara <ara_t@384.jp> 0.24.3-1 |
---|
133 | - update to 0.24.3 |
---|
134 | - build using ghc-8.0.1 |
---|
135 | |
---|
136 | * Wed May 04 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-6 |
---|
137 | - rebuilt |
---|
138 | |
---|
139 | * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-5 |
---|
140 | - rebuild under xmonad-0.12-3 and xmonad-contrib-0.12-4 |
---|
141 | - correct SPEC file |
---|
142 | |
---|
143 | * Sun Mar 06 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-4 |
---|
144 | - correct SPEC file |
---|
145 | |
---|
146 | * Tue Mar 01 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-3 |
---|
147 | - rebuild under xmonad-0.12-2 and xmonad-contrib-0.12-3 |
---|
148 | |
---|
149 | * Sun Feb 28 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-2 |
---|
150 | - add configure option and required libraries |
---|
151 | |
---|
152 | * Sat Feb 27 2016 Toshiaki Ara <ara_t@384.jp> 0.23.1-1 |
---|
153 | - new package |
---|