]> git.pld-linux.org Git - packages/dzen2.git/blame - dzen2.spec
- BR xorg-lib-libX11-devel
[packages/dzen2.git] / dzen2.spec
CommitLineData
0604cf55 1Summary: A general purpose messaging and notification program
2Name: dzen2
3Version: 0.8.5
2e480ede 4Release: 0.1
0604cf55 5License: MIT
6Group: X11/Applications
7Source0: %{name}-%{version}.tar.gz
8# Source0-md5: 5978620c2124c8a8ad52d7f17ce94fd7
9Patch0: %{name}-config.patch
10Patch1: %{name}-verbose.patch
11URL: https://sites.google.com/site/gotmor/dzen/
6bcd3412 12BuildRequires: xorg-lib-libX11-devel
0604cf55 13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
16Dzen is a general purpose messaging, notification and menuing program
17for X11. It was designed to be scriptable in any language and
18integrate well with window managers like dwm, wmii and xmonad, though
19it 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
41rm -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
52for gadget in dbar gcpubar gdbar textwidth
53do
54mv $RPM_BUILD_ROOT%{_bindir}/{,dzen2-}"${gadget}"
55done
56
0604cf55 57%clean
58rm -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
This page took 0.07506 seconds and 4 git commands to generate.