]>
Commit | Line | Data |
---|---|---|
0604cf55 | 1 | Summary: A general purpose messaging and notification program |
2 | Name: dzen2 | |
3 | Version: 0.8.5 | |
2e480ede | 4 | Release: 0.1 |
0604cf55 | 5 | License: MIT |
6 | Group: X11/Applications | |
7 | Source0: %{name}-%{version}.tar.gz | |
8 | # Source0-md5: 5978620c2124c8a8ad52d7f17ce94fd7 | |
9 | Patch0: %{name}-config.patch | |
10 | Patch1: %{name}-verbose.patch | |
11 | URL: https://sites.google.com/site/gotmor/dzen/ | |
6bcd3412 | 12 | BuildRequires: xorg-lib-libX11-devel |
0604cf55 | 13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
16 | Dzen is a general purpose messaging, notification and menuing program | |
17 | for X11. It was designed to be scriptable in any language and | |
18 | integrate well with window managers like dwm, wmii and xmonad, though | |
19 | it will work with any windowmanger. | |
20 | ||
21 | %prep | |
22 | %setup -q | |
23 | %patch0 -p1 | |
24 | %patch1 -p1 | |
25 | ||
26 | %build | |
27 | %{__make} \ | |
28 | CC="%{__cc}" \ | |
29 | OPTFLAGS="%{rpmcflags}" \ | |
30 | PLD_LDFLAGS="%{rpmldflags}" \ | |
97df8021 | 31 | PREFIX="%{_prefix}" \ |
32 | LIBDIR="%{_libdir}" | |
33 | ||
34 | %{__make} -C gadgets \ | |
35 | CC="%{__cc}" \ | |
36 | OPTFLAGS="%{rpmcflags}" \ | |
37 | PLD_LDFLAGS="%{rpmldflags}" \ | |
38 | LIBDIR="%{_libdir}" | |
0604cf55 | 39 | |
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %{__make} install \ | |
44 | DESTDIR=$RPM_BUILD_ROOT \ | |
45 | PREFIX="%{_prefix}" | |
46 | ||
97df8021 | 47 | %{__make} -C gadgets install \ |
48 | DESTDIR=$RPM_BUILD_ROOT \ | |
49 | PREFIX="%{_prefix}" | |
50 | ||
51 | # append dzen2- prefix to binaries | |
52 | for gadget in dbar gcpubar gdbar textwidth | |
53 | do | |
54 | mv $RPM_BUILD_ROOT%{_bindir}/{,dzen2-}"${gadget}" | |
55 | done | |
56 | ||
0604cf55 | 57 | %clean |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc CREDITS README README.dzen gadgets/README.* | |
63 | %attr(755,root,root) %{_bindir}/dzen2 | |
97df8021 | 64 | %attr(755,root,root) %{_bindir}/dzen2-dbar |
65 | %attr(755,root,root) %{_bindir}/dzen2-gcpubar | |
66 | %attr(755,root,root) %{_bindir}/dzen2-gdbar | |
67 | %attr(755,root,root) %{_bindir}/dzen2-textwidth |