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