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