3 %bcond_without tintwizard # build without tintwizard
7 Summary: tint2 is a simple panel/taskbar intentionally made for openbox3
8 Summary(pl.UTF-8): tint2 jest prostym panelem oryginalnie zaprojektowanym dla openbox3
11 Release: %{_rc}.%{_rel}
14 Source0: http://tint2.googlecode.com/files/%{name}-%{version}-%{_rc}.tar.gz
15 # Source0-md5: 3e0bae87ea34b43819fc2fbbea3a9da2
16 Source1: http://tint2.googlecode.com/files/%{name}-0.7.pdf
17 # Source1-md5: 25980bd22fabc6a66660173fa639957b
18 Patch0: %{name}-tintwizard_conf.patch
19 URL: http://code.google.com/p/tint2/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: cairo-devel
23 BuildRequires: glib2-devel
24 BuildRequires: imlib2-devel
25 BuildRequires: libpng-devel
26 BuildRequires: libtool
27 BuildRequires: pango-devel
28 BuildRequires: pkgconfig
29 BuildRequires: rpm-pythonprov
30 BuildRequires: xorg-lib-libXcomposite-devel
31 BuildRequires: xorg-lib-libXdamage-devel
32 BuildRequires: xorg-lib-libXinerama-devel
33 %if %{with tintwizard}
35 Requires: python-pygtk-gtk
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 tint2 is a simple panel/taskbar intentionally made for openbox3, but
42 should also work with other window managers. It's based on ttm code
43 http://code.google.com/p/ttm/
45 %description -l pl.UTF-8
46 tint2 jest prostym panelem/zasobnikiem oryginalnie zaprojektowanym dla
47 openbox3, ale powinien również współpracować z innymi menadżerami
48 okien. Jego kod oparty jest na ttm http://code.google.com/p/ttm/
51 Summary: tint2 - example configurations
52 Summary(pl.UTF-8): tint2 - przykładowe konfiguracje
54 Requires: %{name} = %{version}-%{release}
57 tint2 - example configurations.
59 %description examples -l pl.UTF-8
60 tint2 - przykładowe konfiguracje.
63 %setup -q -n %{name}-%{version}-%{_rc}
75 CFLAGS="%{rpmcflags} %{rpmldflags}"
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
80 %{?with_tintwizard:install -d $RPM_BUILD_ROOT%{_bindir}}
83 DESTDIR=$RPM_BUILD_ROOT
85 %{?with_tintwizard:cp src/tint2conf/tintwizard.py $RPM_BUILD_ROOT%{_bindir}}
87 install sample/*.tint2rc $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
90 rm -rf $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
94 %doc AUTHORS ChangeLog NEWS README doc/tint2-0.7.pdf
95 %attr(755,root,root) %{_bindir}/tint2
96 %{?with_tintwizard:%attr(755,root,root) %{_bindir}/tintwizard.py}
97 %dir %{_sysconfdir}/xdg/tint2
98 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/tint2/tint2rc
99 %dir %{_datadir}/tint2
100 %{_datadir}/tint2/default_icon.png
101 %{_mandir}/man1/tint2.1.*
104 %defattr(644,root,root,755)
105 %{_examplesdir}/%{name}-%{version}