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