]> git.pld-linux.org Git - packages/tint2.git/blob - tint2.spec
- up to 0.9
[packages/tint2.git] / tint2.spec
1 #
2 # Conditional build:
3 %bcond_without  tintwizard      # build without tintwizard
4 #
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
8 Version:        0.9
9 Release:        1
10 License:        GPL v2
11 Group:          Applications
12 Source0:        http://tint2.googlecode.com/files/%{name}-%{version}.tar.gz
13 # Source0-md5:  411de6ccb8b82089852d8c854b12ddb9
14 Source1:        http://tint2.googlecode.com/files/%{name}-0.7.pdf
15 # Source1-md5:  25980bd22fabc6a66660173fa639957b
16 Patch0:         %{name}-tintwizard_conf.patch
17 URL:            http://code.google.com/p/tint2/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  cairo-devel
21 BuildRequires:  glib2-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 %if %{with tintwizard}
32 Requires:       python
33 Requires:       python-pygtk-gtk
34 %endif
35 Suggests:       openbox
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 tint2 is a simple panel/taskbar intentionally made for openbox3, but
40 should also work with other window managers. It's based on ttm code
41 http://code.google.com/p/ttm/
42
43 %description -l pl.UTF-8
44 tint2 jest prostym panelem/zasobnikiem oryginalnie zaprojektowanym dla
45 openbox3, ale powinien również współpracować z innymi menadżerami
46 okien. Jego kod oparty jest na ttm http://code.google.com/p/ttm/
47
48 %package examples
49 Summary:        tint2 - example configurations
50 Summary(pl.UTF-8):      tint2 - przykładowe konfiguracje
51 Group:          Documentation
52 Requires:       %{name} = %{version}-%{release}
53
54 %description examples
55 tint2 - example configurations.
56
57 %description examples -l pl.UTF-8
58 tint2 - przykładowe konfiguracje.
59
60 %prep
61 %setup -q -n %{name}-%{version}
62 %patch0 -p1
63
64 %build
65 %{__libtoolize}
66 %{__aclocal}
67 %{__autoconf}
68 %{__autoheader}
69 %{__automake}
70 %configure
71 %{__make} \
72         CC="%{__cc}" \
73         CFLAGS="%{rpmcflags} %{rpmldflags}"
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
78 %{?with_tintwizard:install -d $RPM_BUILD_ROOT%{_bindir}}
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %{?with_tintwizard:cp src/tint2conf/tintwizard.py $RPM_BUILD_ROOT%{_bindir}}
84 cp %{SOURCE1} doc
85 install sample/*.tint2rc $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %doc AUTHORS ChangeLog NEWS README doc/tint2-0.7.pdf
93 %attr(755,root,root) %{_bindir}/tint2
94 %{?with_tintwizard:%attr(755,root,root) %{_bindir}/tintwizard.py}
95 %dir %{_sysconfdir}/xdg/tint2
96 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/tint2/tint2rc
97 %dir %{_datadir}/tint2
98 %{_datadir}/tint2/default_icon.png
99 %{_mandir}/man1/tint2.1.*
100
101 %files examples
102 %defattr(644,root,root,755)
103 %{_examplesdir}/%{name}-%{version}
This page took 0.071835 seconds and 4 git commands to generate.