]>
Commit | Line | Data |
---|---|---|
20e442d6 | 1 | # |
2 | # Conditional build: | |
73e474dc | 3 | %bcond_without tintwizard # build without tintwizard |
20e442d6 | 4 | # |
1fd72925 | 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 | |
7 | Name: tint2 | |
75436c36 | 8 | Version: 0.11 |
9 | Release: 0.1 | |
1fd72925 | 10 | License: GPL v2 |
11 | Group: Applications | |
75436c36 | 12 | Source0: http://tint2.googlecode.com/files/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 6fc5731e7425125fa84a2add5cef4bff | |
9ac6ed68 | 14 | Source1: http://tint2.googlecode.com/files/%{name}-0.7.pdf |
15 | # Source1-md5: 25980bd22fabc6a66660173fa639957b | |
1fd72925 | 16 | URL: http://code.google.com/p/tint2/ |
17 | BuildRequires: cairo-devel | |
75436c36 | 18 | BuildRequires: cmake |
19 | BuildRequires: desktop-file-utils | |
1fd72925 | 20 | BuildRequires: glib2-devel |
21 | BuildRequires: imlib2-devel | |
33aa2645 | 22 | BuildRequires: libpng-devel |
9ac6ed68 | 23 | BuildRequires: libtool |
1fd72925 | 24 | BuildRequires: pango-devel |
25 | BuildRequires: pkgconfig | |
22431680 | 26 | BuildRequires: rpm-pythonprov |
485c8ca9 | 27 | BuildRequires: xorg-lib-libXcomposite-devel |
28 | BuildRequires: xorg-lib-libXdamage-devel | |
1fd72925 | 29 | BuildRequires: xorg-lib-libXinerama-devel |
20e442d6 | 30 | %if %{with tintwizard} |
31 | Requires: python | |
32 | Requires: python-pygtk-gtk | |
33 | %endif | |
1fd72925 | 34 | Suggests: openbox |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | tint2 is a simple panel/taskbar intentionally made for openbox3, but | |
39 | should also work with other window managers. It's based on ttm code | |
40 | http://code.google.com/p/ttm/ | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | tint2 jest prostym panelem/zasobnikiem oryginalnie zaprojektowanym dla | |
9ac6ed68 | 44 | openbox3, ale powinien również współpracować z innymi menadżerami |
1fd72925 | 45 | okien. Jego kod oparty jest na ttm http://code.google.com/p/ttm/ |
46 | ||
9ac6ed68 | 47 | %package examples |
22431680 | 48 | Summary: tint2 - example configurations |
49 | Summary(pl.UTF-8): tint2 - przykładowe konfiguracje | |
50 | Group: Documentation | |
51 | Requires: %{name} = %{version}-%{release} | |
9ac6ed68 | 52 | |
53 | %description examples | |
54 | tint2 - example configurations. | |
55 | ||
56 | %description examples -l pl.UTF-8 | |
57 | tint2 - przykładowe konfiguracje. | |
58 | ||
1fd72925 | 59 | %prep |
0a88a11e | 60 | %setup -q -n %{name}-%{version} |
75436c36 | 61 | mkdir build |
1fd72925 | 62 | |
63 | %build | |
75436c36 | 64 | cd build |
65 | %cmake \ | |
66 | -DCMAKE_INSTALL_PREFIX=%{_usr} \ | |
67 | .. | |
8e00dfac | 68 | %{__make} \ |
69 | CC="%{__cc}" \ | |
70 | CFLAGS="%{rpmcflags} %{rpmldflags}" | |
1fd72925 | 71 | |
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
9ac6ed68 | 74 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
fc82e1ad | 75 | %{?with_tintwizard:install -d $RPM_BUILD_ROOT%{_bindir}} |
9ac6ed68 | 76 | |
75436c36 | 77 | %{__make} -C build install \ |
1fd72925 | 78 | DESTDIR=$RPM_BUILD_ROOT |
79 | ||
20e442d6 | 80 | %{?with_tintwizard:cp src/tint2conf/tintwizard.py $RPM_BUILD_ROOT%{_bindir}} |
9ac6ed68 | 81 | cp %{SOURCE1} doc |
22431680 | 82 | install sample/*.tint2rc $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
9ac6ed68 | 83 | |
1fd72925 | 84 | %clean |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
75436c36 | 89 | %doc AUTHORS ChangeLog README doc/tint2-0.7.pdf |
1fd72925 | 90 | %attr(755,root,root) %{_bindir}/tint2 |
75436c36 | 91 | %attr(755,root,root) %{_bindir}/tint2conf |
20e442d6 | 92 | %{?with_tintwizard:%attr(755,root,root) %{_bindir}/tintwizard.py} |
1fd72925 | 93 | %dir %{_sysconfdir}/xdg/tint2 |
71e5c8a8 | 94 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/tint2/tint2rc |
b2b552ff | 95 | %dir %{_datadir}/tint2 |
96 | %{_datadir}/tint2/default_icon.png | |
71e5c8a8 | 97 | %{_mandir}/man1/tint2.1.* |
75436c36 | 98 | %{_pixmapsdir}/tint2conf.png |
99 | %{_pixmapsdir}/tint2conf.svg | |
100 | %{_desktopdir}/tint2conf.desktop | |
9ac6ed68 | 101 | |
102 | %files examples | |
103 | %defattr(644,root,root,755) | |
104 | %{_examplesdir}/%{name}-%{version} |