]> git.pld-linux.org Git - packages/dzen2.git/blob - dzen2.spec
b3fe932dd44f0f73a96d2ef89217d313d646352c
[packages/dzen2.git] / dzen2.spec
1 Summary:        A general purpose messaging and notification program
2 Name:           dzen2
3 Version:        0.8.5
4 Release:        0.1
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/
12 #BuildRequires: -
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}" \
31         PREFIX="%{_prefix}" \
32         LIBDIR="%{_libdir}"
33
34 %{__make} -C gadgets \
35         CC="%{__cc}" \
36         OPTFLAGS="%{rpmcflags}" \
37         PLD_LDFLAGS="%{rpmldflags}" \
38         LIBDIR="%{_libdir}"
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 %{__make} install \
44         DESTDIR=$RPM_BUILD_ROOT \
45         PREFIX="%{_prefix}"
46
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
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
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
This page took 0.057622 seconds and 2 git commands to generate.