]> git.pld-linux.org Git - packages/compiz.git/blob - compiz.spec
- versioned intltool BR
[packages/compiz.git] / compiz.spec
1 #
2 # Conditional build:
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
7 %bcond_without  kde             # kde-window-decorator
8 #
9 Summary:        OpenGL window and compositing manager
10 Summary(pl.UTF-8):      OpenGL-owy zarządca okien i składania
11 Name:           compiz
12 Version:        0.5.4
13 Release:        1
14 License:        GPL or MIT
15 Group:          X11/Applications
16 Source0:        http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz
17 # Source0-md5:  04f88b85c15e02b4bd11cb9c2706707f
18 Patch0:         %{name}-DESTDIR.patch
19 URL:            http://xorg.freedesktop.org/
20 %if %{with gconf} || %{with gtk}
21 BuildRequires:  GConf2-devel >= 2.0
22 %endif
23 BuildRequires:  Mesa-libGL-devel >= 6.5-1.20060411.2
24 BuildRequires:  autoconf >= 2.57
25 BuildRequires:  automake
26 BuildRequires:  cairo-devel >= 1.0
27 BuildRequires:  dbus-devel >= 0.35
28 BuildRequires:  glib2-devel >= 2.0
29 # <sys/inotify.h>
30 BuildRequires:  glibc-devel >= 6:2.4
31 BuildRequires:  intltool >= 0.23
32 BuildRequires:  libfuse-devel >= 2.2
33 BuildRequires:  libpng-devel
34 BuildRequires:  librsvg-devel >= 1:2.14.0
35 BuildRequires:  libtool
36 BuildRequires:  libxcb-devel
37 BuildRequires:  pkgconfig
38 BuildRequires:  startup-notification-devel >= 0.7
39 BuildRequires:  xorg-lib-libSM-devel
40 BuildRequires:  xorg-lib-libXcomposite-devel
41 BuildRequires:  xorg-lib-libXdamage-devel
42 BuildRequires:  xorg-lib-libXinerama-devel
43 BuildRequires:  xorg-lib-libXrandr-devel
44 BuildRequires:  xorg-lib-libXres-devel
45 %if %{with gtk}
46 BuildRequires:  gtk+2-devel >= 2:2.8.0
47 BuildRequires:  libwnck-devel >= 2.18.1
48 BuildRequires:  pango-devel >= 1.10.0
49 BuildRequires:  xorg-lib-libXrender-devel >= 0.9.3
50 %if %{with gnome}
51 BuildRequires:  control-center-devel >= 2.0
52 BuildRequires:  gnome-desktop-devel >= 2.0
53 BuildRequires:  gnome-menus-devel
54 %endif
55 %if %{with metacity}
56 BuildRequires:  metacity-devel >= 2.17.0
57 %endif
58 %endif
59 %if %{with kde}
60 BuildRequires:  dbus-qt-devel
61 BuildRequires:  kdelibs-devel
62 BuildRequires:  kdebase-devel
63 BuildRequires:  qt-devel >= 1:3.0
64 %endif
65 Requires:       %{name}-libs = %{version}-%{release}
66 Obsoletes:      beryl-core
67 Obsoletes:      compiz-opacity
68 Conflicts:      xorg-xserver-xgl < 0.0.20060505
69 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70
71 %description
72 Compiz is a compositing window manager that uses 3D graphics
73 acceleration via OpenGL. It provides various new graphical effects
74 and features on any desktop environment, including Gnome and KDE.
75
76 %description -l pl.UTF-8
77 Compiz jest menedżerem okien obsługującym składanie, który używa
78 akceleracji grafiki 3D przez OpenGL-a. Umożliwia on uzyskanie nowych
79 efektów graficznych i możliwości w dowolnym środowisku, nie
80 wyłączając Gnome i KDE.
81
82 %package libs
83 Summary:        Compiz libraries
84 Summary(pl.UTF-8):      Biblioteki compiza
85 Group:          X11/Applications
86 Conflicts:      compiz < 0.5.2-2
87
88 %description libs
89 Compiz libraries.
90
91 %description libs -l pl.UTF-8
92 Biblioteki Compiza.
93
94 %package devel
95 Summary:        Header files for compiz
96 Summary(pl.UTF-8):      Pliki nagłówkowe dla compiza
97 Group:          X11/Development/Libraries
98 Requires:       %{name}-libs = %{version}-%{release}
99 # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
100 Requires:       OpenGL-devel
101 Requires:       libpng-devel
102 Requires:       startup-notification-devel >= 0.7
103 Requires:       xorg-lib-libSM-devel
104 Requires:       xorg-lib-libXcomposite-devel
105 Requires:       xorg-lib-libXdamage-devel
106 Requires:       xorg-lib-libXinerama-devel
107 Requires:       xorg-lib-libXrandr-devel
108 Obsoletes:      beryl-core-devel
109
110 %description devel
111 Header files for compiz.
112
113 %description devel -l pl.UTF-8
114 Pliki nagłówkowe dla compiza.
115
116 %package fuse
117 Summary:        FUSE plugin for Compiz
118 Summary(pl.UTF-8):      Wtyczka FUSE dla Compiza
119 Group:          X11/Applications
120 Requires:       %{name} = %{version}-%{release}
121
122 %description fuse
123 FUSE plugin for Compiz (userspace file system).
124
125 %description fuse -l pl.UTF-8
126 Wtyczka FUSE dla Compiza (system plików w przestrzeni użytkownika).
127
128 %package gconf
129 Summary:        GConf plugin for Compiz
130 Summary(pl.UTF-8):      Wtyczka GConf dla Compiza
131 Group:          X11/Applications
132 Requires(post,preun):   GConf2
133 Requires:       %{name} = %{version}-%{release}
134 Obsoletes:      beryl-core-gconf
135
136 %description gconf
137 GConf plugin for Compiz (GConf control backend).
138
139 %description gconf -l pl.UTF-8
140 Wtyczka GConf dla Compiza (backend sterujący oparty na GConfie).
141
142 %package gnome-settings
143 Summary:        Compiz settings for GNOME control panel
144 Summary(pl.UTF-8):      Ustawienia compiza dla panelu sterowania GNOME
145 Group:          X11/Applications
146 Requires:       %{name} = %{version}-%{release}
147
148 %description gnome-settings
149 Compiz settings for GNOME control panel.
150
151 %description gnome-settings -l pl.UTF-8
152 Ustawienia compiza dla panelu sterowania GNOME.
153
154 %package gtk-decorator
155 Summary:        Window decorator for GTK+
156 Summary(pl.UTF-8):      Dekorator okien dla GTK+
157 Group:          X11/Applications
158 %if %{with gconf}
159 Requires(post,preun):   GConf2
160 %endif
161 Requires:       %{name} = %{version}-%{release}
162 Obsoletes:      compiz-gnome-decorator
163
164 %description gtk-decorator
165 Window decorator for GTK+.
166
167 %description gtk-decorator -l pl.UTF-8
168 Dekorator okien dla GTK+.
169
170 %package kde-decorator
171 Summary:        Window decorator for KDE
172 Summary(pl.UTF-8):      Dekorator okien dla KDE
173 Group:          X11/Applications
174 Requires:       %{name} = %{version}-%{release}
175
176 %description kde-decorator
177 Window decorator for KDE.
178
179 %description kde-decorator -l pl.UTF-8
180 Dekorator okien dla KDE.
181
182 %prep
183 %setup -q
184 %patch0 -p1
185
186 %build
187 %{__intltoolize}
188 %{__libtoolize}
189 %{__aclocal}
190 %{__autoconf}
191 %{__autoheader}
192 %{__automake}
193 QTLIB=%{_libdir}; export QTLIB
194 %configure \
195         --disable-static \
196         --enable-librsvg \
197         %{!?with_gconf:--disable-gconf} \
198         %{!?with_gnome:--disable-gnome} \
199         %{!?with_gtk:--disable-gtk} \
200         %{!?with_kde:--disable-kde} \
201         %{!?with_metacity:--disable-metacity}
202
203 %{__make}
204
205 %install
206 rm -rf $RPM_BUILD_ROOT
207
208 %{__make} install \
209         desktopfilesdir=%{_datadir}/wm-properties \
210         DESTDIR=$RPM_BUILD_ROOT
211
212 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
213
214 %find_lang %{name}
215
216 %clean
217 rm -rf $RPM_BUILD_ROOT
218
219 %post   libs -p /sbin/ldconfig
220 %postun libs -p /sbin/ldconfig
221
222 %post gconf
223 %gconf_schema_install
224
225 %preun gconf
226 %gconf_schema_uninstall
227
228 %if %{with gconf}
229 %post gtk-decorator
230 %gconf_schema_install gwd.schemas
231
232 %preun gtk-decorator
233 %gconf_schema_uninstall gwd.schemas
234 %endif
235
236 %files -f %{name}.lang
237 %defattr(644,root,root,755)
238 %doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO
239 %attr(755,root,root) %{_bindir}/compiz
240 %attr(755,root,root) %{_libdir}/compiz/*.so
241 %exclude %{_libdir}/compiz/libfs.so
242 %{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so}
243 %{_datadir}/compiz
244 %{?with_gconf:%exclude %{_datadir}/compiz/gconf.xml}
245
246 %files libs
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/libdecoration.so.*.*.*
249 %dir %{_libdir}/compiz
250
251 %files devel
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/libdecoration.so
254 %{_libdir}/libdecoration.la
255 %{_includedir}/compiz
256 %{_pkgconfigdir}/compiz.pc
257 %{_pkgconfigdir}/libdecoration.pc
258 # what is the purpose of these files? development or runtime?
259 %{_pkgconfigdir}/compiz-cube.pc
260 %{_pkgconfigdir}/compiz-scale.pc
261
262 %files fuse
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_libdir}/compiz/libfs.so
265
266 %if %{with gconf}
267 %files gconf
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_libdir}/compiz/libgconf.so
270 %{_sysconfdir}/gconf/schemas/compiz-*.schemas
271 %{_datadir}/compiz/gconf.xml
272 # what for?
273 %{_pkgconfigdir}/compiz-gconf.pc
274 %endif
275
276 %if %{with gnome}
277 %files gnome-settings
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_libdir}/window-manager-settings/libcompiz.so
280 %endif
281
282 %if %{with gtk}
283 %files gtk-decorator
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_bindir}/gtk-window-decorator
286 %if %{with gconf}
287 %{_sysconfdir}/gconf/schemas/gwd.schemas
288 %endif
289 %endif
290
291 %if %{with kde}
292 %files kde-decorator
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_bindir}/kde-window-decorator
295 %endif
This page took 0.058099 seconds and 4 git commands to generate.