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