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