3 %bcond_without tintwizard # build without tintwizard
5 Summary: tint2 is a simple panel/taskbar intentionally made for openbox3
6 Summary(pl.UTF-8): tint2 jest prostym panelem oryginalnie zaprojektowanym dla openbox3
12 Source0: http://tint2.googlecode.com/files/%{name}-%{version}.tar.bz2
13 # Source0-md5: 6fc5731e7425125fa84a2add5cef4bff
14 Source1: http://tint2.googlecode.com/files/%{name}-0.7.pdf
15 # Source1-md5: 25980bd22fabc6a66660173fa639957b
16 URL: http://code.google.com/p/tint2/
17 BuildRequires: cairo-devel
19 BuildRequires: desktop-file-utils
20 BuildRequires: glib2-devel
21 BuildRequires: gtk+2-devel
22 BuildRequires: imlib2-devel
23 BuildRequires: libpng-devel
24 BuildRequires: libtool
25 BuildRequires: pango-devel
26 BuildRequires: pkgconfig
27 BuildRequires: rpm-pythonprov
28 BuildRequires: xorg-lib-libXcomposite-devel
29 BuildRequires: xorg-lib-libXdamage-devel
30 BuildRequires: xorg-lib-libXinerama-devel
31 BuildRequires: xorg-lib-libXrandr-devel
32 %if %{with tintwizard}
34 Requires: python-pygtk-gtk
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 tint2 is a simple panel/taskbar intentionally made for openbox3, but
41 should also work with other window managers. It's based on ttm code
42 http://code.google.com/p/ttm/
44 %description -l pl.UTF-8
45 tint2 jest prostym panelem/zasobnikiem oryginalnie zaprojektowanym dla
46 openbox3, ale powinien również współpracować z innymi menadżerami
47 okien. Jego kod oparty jest na ttm http://code.google.com/p/ttm/
50 Summary: tint2 - example configurations
51 Summary(pl.UTF-8): tint2 - przykładowe konfiguracje
53 Requires: %{name} = %{version}-%{release}
56 tint2 - example configurations.
58 %description examples -l pl.UTF-8
59 tint2 - przykładowe konfiguracje.
68 -DCMAKE_CXX_COMPILER_WORKS=1 -DCMAKE_CXX_COMPILER="%{__cc}" \
69 -DCMAKE_INSTALL_PREFIX=%{_usr} \
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
76 %{?with_tintwizard:install -d $RPM_BUILD_ROOT%{_bindir}}
78 %{__make} -C build install \
79 DESTDIR=$RPM_BUILD_ROOT
81 %{?with_tintwizard:cp src/tint2conf/tintwizard.py $RPM_BUILD_ROOT%{_bindir}}
83 install sample/*.tint2rc $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
90 %doc AUTHORS ChangeLog README doc/tint2-0.7.pdf
91 %attr(755,root,root) %{_bindir}/tint2
92 %attr(755,root,root) %{_bindir}/tint2conf
93 %{?with_tintwizard:%attr(755,root,root) %{_bindir}/tintwizard.py}
94 %dir %{_sysconfdir}/xdg/tint2
95 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/tint2/tint2rc
96 %dir %{_datadir}/tint2
97 %{_datadir}/tint2/default_icon.png
98 %{_mandir}/man1/tint2.1.*
99 %{_pixmapsdir}/tint2conf.png
100 %{_pixmapsdir}/tint2conf.svg
101 %{_desktopdir}/tint2conf.desktop
104 %defattr(644,root,root,755)
105 %{_examplesdir}/%{name}-%{version}