]>
Commit | Line | Data |
---|---|---|
19a8ce89 | 1 | # |
ab895ea9 | 2 | # Conditional build: |
fe9f8047 JB |
3 | %bcond_without gconf # gconf plugin |
4 | %bcond_without gtk # gtk window decorator | |
5 | %bcond_without gnome # gnome settings module | |
6 | %bcond_without metacity # metacity theme support | |
0676c3dc | 7 | %bcond_without kde # kde-window-decorator |
fc9439b7 | 8 | # |
29c69110 | 9 | Summary: OpenGL window and compositing manager |
72931e8e | 10 | Summary(pl.UTF-8): OpenGL-owy zarządca okien i składania |
29c69110 | 11 | Name: compiz |
0676c3dc | 12 | Version: 0.3.6 |
13c75255 | 13 | Release: 2 |
388387dc | 14 | License: GPL or MIT |
fe9f8047 JB |
15 | Group: X11/Applications |
16 | Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2 | |
0676c3dc | 17 | # Source0-md5: 260b03fc9ae62ff1ad4e8c5e92d56180 |
e19e2317 | 18 | Source1: %{name}-pld.png |
19 | # Source1-md5: 3050dc90fd4e5e990bb5baeb82bd3c8a | |
13c75255 | 20 | Patch0: %{name}-DESTDIR.patch |
388387dc | 21 | URL: http://xorg.freedesktop.org/ |
fe9f8047 | 22 | %if %{with gconf} || %{with gtk} |
731af772 JB |
23 | BuildRequires: GConf2-devel >= 2.0 |
24 | %endif | |
ebb3cb87 | 25 | BuildRequires: Mesa-libGL-devel >= 6.5-1.20060411.2 |
731af772 JB |
26 | BuildRequires: autoconf >= 2.57 |
27 | BuildRequires: automake | |
fe9f8047 JB |
28 | BuildRequires: cairo-devel >= 1.0 |
29 | BuildRequires: dbus-devel >= 0.35 | |
731af772 | 30 | BuildRequires: glib2-devel >= 2.0 |
0676c3dc JB |
31 | # <sys/inotify.h> |
32 | BuildRequires: glibc-devel >= 6:2.4 | |
a5797d6a | 33 | BuildRequires: glitz-devel |
7d160cbf | 34 | BuildRequires: intltool |
ab895ea9 | 35 | BuildRequires: libpng-devel |
fe9f8047 | 36 | BuildRequires: librsvg-devel >= 2.14.0 |
731af772 | 37 | BuildRequires: libtool |
b2cfea02 | 38 | BuildRequires: pkgconfig |
731af772 JB |
39 | BuildRequires: startup-notification-devel >= 0.7 |
40 | BuildRequires: xorg-lib-libSM-devel | |
41 | BuildRequires: xorg-lib-libXcomposite-devel | |
42 | BuildRequires: xorg-lib-libXdamage-devel | |
fe9f8047 | 43 | BuildRequires: xorg-lib-libXinerama-devel |
731af772 | 44 | BuildRequires: xorg-lib-libXrandr-devel |
a5797d6a | 45 | BuildRequires: xorg-lib-libXres-devel |
fe9f8047 JB |
46 | %if %{with gtk} |
47 | BuildRequires: gtk+2-devel >= 2:2.8.0 | |
48 | BuildRequires: libwnck-devel >= 2.14.1-2 | |
49 | BuildRequires: pango-devel >= 1.10.0 | |
50 | BuildRequires: xorg-lib-libXrender-devel >= 0.8.4 | |
ab895ea9 | 51 | %if %{with gnome} |
731af772 JB |
52 | BuildRequires: control-center-devel >= 2.0 |
53 | BuildRequires: gnome-desktop-devel >= 2.0 | |
a5797d6a | 54 | BuildRequires: gnome-menus-devel |
fe9f8047 JB |
55 | %endif |
56 | %if %{with metacity} | |
57 | BuildRequires: metacity-devel >= 2.15.21 | |
58 | %endif | |
ab895ea9 | 59 | %endif |
60 | %if %{with kde} | |
0676c3dc JB |
61 | BuildRequires: dbus-qt-devel |
62 | BuildRequires: kdelibs-devel | |
13c75255 | 63 | BuildRequires: kdebase-devel |
0676c3dc | 64 | BuildRequires: qt-devel >= 3.0 |
ab895ea9 | 65 | %endif |
0bd1b382 | 66 | Requires(post,preun): GConf2 |
ebb3cb87 | 67 | Conflicts: xorg-xserver-xgl < 0.0.20060505 |
fd47567d | 68 | Obsoletes: compiz-opacity |
29c69110 | 69 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
70 | ||
71 | %description | |
72 | Compiz is an OpenGL compositing manager that use | |
0bd1b382 | 73 | GLX_EXT_texture_from_pixmap for binding redirected top-level windows |
74 | to texture objects. It has a flexible plug-in system and it is | |
75 | designed to run well on most graphics hardware. | |
29c69110 | 76 | |
72931e8e JR |
77 | %description -l pl.UTF-8 |
78 | Compiz jest OpenGL-owym zarządcą składania, używającym rozszerzenia | |
79 | GLX_EXT_texture_from_pixmap w celu wiązania przekierowanych okien do | |
0bd1b382 | 80 | tekstur. Posiada elastyczny system wtyczek i jest tak zaprojektowany, |
72931e8e | 81 | by dobrze działać na większości kart graficznych. |
19a8ce89 | 82 | |
21b9df37 | 83 | %package devel |
84 | Summary: Header files for compiz | |
72931e8e | 85 | Summary(pl.UTF-8): Pliki nagłówkowe dla compiza |
fe9f8047 | 86 | Group: X11/Development/Libraries |
0676c3dc | 87 | Requires: %{name} = %{version}-%{release} |
731af772 JB |
88 | # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel) |
89 | Requires: OpenGL-devel | |
90 | Requires: libpng-devel | |
91 | Requires: startup-notification-devel >= 0.7 | |
92 | Requires: xorg-lib-libSM-devel | |
93 | Requires: xorg-lib-libXcomposite-devel | |
94 | Requires: xorg-lib-libXdamage-devel | |
fe9f8047 | 95 | Requires: xorg-lib-libXinerama-devel |
731af772 | 96 | Requires: xorg-lib-libXrandr-devel |
21b9df37 | 97 | |
98 | %description devel | |
99 | Header files for compiz. | |
100 | ||
72931e8e JR |
101 | %description devel -l pl.UTF-8 |
102 | Pliki nagłówkowe dla compiza. | |
21b9df37 | 103 | |
fe9f8047 JB |
104 | %package gconf |
105 | Summary: GConf plugin for Compiz | |
72931e8e | 106 | Summary(pl.UTF-8): Wtyczka GConf dla Compiza |
fe9f8047 JB |
107 | Group: X11/Applications |
108 | Requires: %{name} = %{version}-%{release} | |
109 | ||
110 | %description gconf | |
111 | GConf plugin for Compiz. | |
112 | ||
72931e8e | 113 | %description gconf -l pl.UTF-8 |
fe9f8047 JB |
114 | Wtyczka GConf dla Compiza. |
115 | ||
ab895ea9 | 116 | %package gnome-settings |
fe9f8047 | 117 | Summary: Compiz settings for GNOME control panel |
72931e8e | 118 | Summary(pl.UTF-8): Ustawienia compiza dla panelu sterowania GNOME |
fe9f8047 | 119 | Group: X11/Applications |
ab895ea9 | 120 | Requires: %{name} = %{version}-%{release} |
121 | ||
122 | %description gnome-settings | |
fe9f8047 | 123 | Compiz settings for GNOME control panel. |
ab895ea9 | 124 | |
72931e8e | 125 | %description gnome-settings -l pl.UTF-8 |
fe9f8047 | 126 | Ustawienia compiza dla panelu sterowania GNOME. |
ab895ea9 | 127 | |
fe9f8047 JB |
128 | %package gtk-decorator |
129 | Summary: Window decorator for GTK+ | |
72931e8e | 130 | Summary(pl.UTF-8): Dekorator okien dla GTK+ |
fe9f8047 | 131 | Group: X11/Applications |
0676c3dc JB |
132 | %if %{with gconf} |
133 | Requires(post,postun): GConf2 | |
134 | %endif | |
ab895ea9 | 135 | Requires: %{name} = %{version}-%{release} |
fe9f8047 | 136 | Obsoletes: compiz-gnome-decorator |
ab895ea9 | 137 | |
fe9f8047 JB |
138 | %description gtk-decorator |
139 | Window decorator for GTK+. | |
ab895ea9 | 140 | |
72931e8e | 141 | %description gtk-decorator -l pl.UTF-8 |
fe9f8047 | 142 | Dekorator okien dla GTK+. |
ab895ea9 | 143 | |
144 | %package kde-decorator | |
145 | Summary: Window decorator for KDE | |
72931e8e | 146 | Summary(pl.UTF-8): Dekorator okien dla KDE |
fe9f8047 | 147 | Group: X11/Applications |
ab895ea9 | 148 | Requires: %{name} = %{version}-%{release} |
149 | ||
150 | %description kde-decorator | |
151 | Window decorator for KDE. | |
152 | ||
72931e8e | 153 | %description kde-decorator -l pl.UTF-8 |
ab895ea9 | 154 | Dekorator okien dla KDE. |
155 | ||
29c69110 | 156 | %prep |
fe9f8047 | 157 | %setup -q |
13c75255 | 158 | %patch0 -p1 |
29c69110 | 159 | |
160 | %build | |
fe9f8047 JB |
161 | %{__libtoolize} |
162 | %{__aclocal} | |
163 | %{__autoconf} | |
164 | %{__autoheader} | |
165 | %{__automake} | |
13c75255 | 166 | QTLIB=%{_libdir}; export QTLIB |
29c69110 | 167 | %configure \ |
731af772 | 168 | --disable-static \ |
fe9f8047 | 169 | --enable-librsvg \ |
731af772 | 170 | %{!?with_gconf:--disable-gconf} \ |
fe9f8047 JB |
171 | %{!?with_gnome:--disable-gnome} \ |
172 | %{!?with_gtk:--disable-gtk} \ | |
0676c3dc JB |
173 | %{!?with_kde:--disable-kde} \ |
174 | %{!?with_metacity:--disable-metacity} | |
29c69110 | 175 | |
176 | %{__make} | |
177 | ||
178 | %install | |
179 | rm -rf $RPM_BUILD_ROOT | |
180 | ||
731af772 | 181 | %{__make} install \ |
413e24bf | 182 | desktopfilesdir=%{_datadir}/wm-properties \ |
731af772 JB |
183 | DESTDIR=$RPM_BUILD_ROOT |
184 | ||
0676c3dc | 185 | install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/compiz/pld.png |
e19e2317 | 186 | |
731af772 | 187 | rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la |
29c69110 | 188 | |
75791cac | 189 | %find_lang %{name} |
190 | ||
29c69110 | 191 | %clean |
192 | rm -rf $RPM_BUILD_ROOT | |
193 | ||
0676c3dc JB |
194 | %post -p /sbin/ldconfig |
195 | %postun -p /sbin/ldconfig | |
196 | ||
fe9f8047 | 197 | %post gconf |
0bd1b382 | 198 | %gconf_schema_install compiz.schemas |
199 | ||
fe9f8047 | 200 | %preun gconf |
0bd1b382 | 201 | %gconf_schema_uninstall compiz.schemas |
202 | ||
0676c3dc | 203 | %if %{with gconf} |
d63e78c5 JB |
204 | %post gtk-decorator |
205 | %gconf_schema_install gwd.schemas | |
206 | ||
207 | %preun gtk-decorator | |
208 | %gconf_schema_uninstall gwd.schemas | |
0676c3dc | 209 | %endif |
d63e78c5 | 210 | |
75791cac | 211 | %files -f %{name}.lang |
29c69110 | 212 | %defattr(644,root,root,755) |
fe9f8047 | 213 | %doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO |
ab895ea9 | 214 | %attr(755,root,root) %{_bindir}/compiz |
0676c3dc | 215 | %attr(755,root,root) %{_libdir}/libdecoration.so.*.*.* |
29c69110 | 216 | %dir %{_libdir}/compiz |
217 | %attr(755,root,root) %{_libdir}/compiz/*.so | |
fe9f8047 | 218 | %{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so} |
29c69110 | 219 | %{_datadir}/compiz |
220 | ||
21b9df37 | 221 | %files devel |
222 | %defattr(644,root,root,755) | |
0676c3dc JB |
223 | %attr(755,root,root) %{_libdir}/libdecoration.so |
224 | %{_libdir}/libdecoration.la | |
21b9df37 | 225 | %{_includedir}/compiz |
731af772 | 226 | %{_pkgconfigdir}/compiz.pc |
0676c3dc | 227 | %{_pkgconfigdir}/libdecoration.pc |
ab895ea9 | 228 | |
fe9f8047 JB |
229 | %if %{with gconf} |
230 | %files gconf | |
231 | %defattr(644,root,root,755) | |
232 | %attr(755,root,root) %{_libdir}/compiz/libgconf.so | |
233 | %{_sysconfdir}/gconf/schemas/compiz.schemas | |
234 | %endif | |
235 | ||
ab895ea9 | 236 | %if %{with gnome} |
237 | %files gnome-settings | |
238 | %defattr(644,root,root,755) | |
239 | %attr(755,root,root) %{_libdir}/window-manager-settings/*.so | |
fe9f8047 JB |
240 | %{_datadir}/wm-properties/compiz.desktop |
241 | %endif | |
ab895ea9 | 242 | |
fe9f8047 JB |
243 | %if %{with gtk} |
244 | %files gtk-decorator | |
ab895ea9 | 245 | %defattr(644,root,root,755) |
fe9f8047 | 246 | %attr(755,root,root) %{_bindir}/gtk-window-decorator |
0676c3dc | 247 | %if %{with gconf} |
d63e78c5 | 248 | %{_sysconfdir}/gconf/schemas/gwd.schemas |
ab895ea9 | 249 | %endif |
0676c3dc | 250 | %endif |
ab895ea9 | 251 | |
252 | %if %{with kde} | |
253 | %files kde-decorator | |
254 | %defattr(644,root,root,755) | |
255 | %attr(755,root,root) %{_bindir}/kde-window-decorator | |
256 | %endif |