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