]> git.pld-linux.org Git - packages/compiz.git/blob - compiz.spec
- move %{_libdir}/compiz from main package to -libs
[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:        3
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 %{__intltoolize}
173 %{__libtoolize}
174 %{__aclocal}
175 %{__autoconf}
176 %{__autoheader}
177 %{__automake}
178 QTLIB=%{_libdir}; export QTLIB
179 %configure \
180         --disable-static \
181         --enable-librsvg \
182         %{!?with_gconf:--disable-gconf} \
183         %{!?with_gnome:--disable-gnome} \
184         %{!?with_gtk:--disable-gtk} \
185         %{!?with_kde:--disable-kde} \
186         %{!?with_metacity:--disable-metacity}
187
188 %{__make}
189
190 %install
191 rm -rf $RPM_BUILD_ROOT
192
193 %{__make} install \
194         desktopfilesdir=%{_datadir}/wm-properties \
195         DESTDIR=$RPM_BUILD_ROOT
196
197 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
198
199 %find_lang %{name}
200
201 %clean
202 rm -rf $RPM_BUILD_ROOT
203
204 %post   -p /sbin/ldconfig
205 %postun -p /sbin/ldconfig
206
207 %post gconf
208 %gconf_schema_install
209
210 %preun gconf
211 %gconf_schema_uninstall
212
213 %if %{with gconf}
214 %post gtk-decorator
215 %gconf_schema_install gwd.schemas
216
217 %preun gtk-decorator
218 %gconf_schema_uninstall gwd.schemas
219 %endif
220
221 %files -f %{name}.lang
222 %defattr(644,root,root,755)
223 %doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO
224 %attr(755,root,root) %{_bindir}/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 %dir %{_libdir}/compiz
234
235 %files devel
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/libdecoration.so
238 %{_libdir}/libdecoration.la
239 %{_includedir}/compiz
240 %{_pkgconfigdir}/compiz.pc
241 %{_pkgconfigdir}/libdecoration.pc
242 # what is the purpose of these files? development or runtime?
243 %{_pkgconfigdir}/compiz-cube.pc
244 %{_pkgconfigdir}/compiz-scale.pc
245
246 %if %{with gconf}
247 %files gconf
248 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_libdir}/compiz/libgconf.so
250 %{_sysconfdir}/gconf/schemas/compiz-*.schemas
251 %{_datadir}/compiz/gconf.xml
252 # what for?
253 %{_pkgconfigdir}/compiz-gconf.pc
254 %endif
255
256 %if %{with gnome}
257 %files gnome-settings
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{_libdir}/window-manager-settings/*.so
260 %endif
261
262 %if %{with gtk}
263 %files gtk-decorator
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_bindir}/gtk-window-decorator
266 %if %{with gconf}
267 %{_sysconfdir}/gconf/schemas/gwd.schemas
268 %endif
269 %endif
270
271 %if %{with kde}
272 %files kde-decorator
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_bindir}/kde-window-decorator
275 %endif
This page took 0.051358 seconds and 4 git commands to generate.