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