]> git.pld-linux.org Git - packages/compiz.git/blame - compiz.spec
- 0.5.2
[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
29c69110 66BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67
68%description
12a6c4d1 69Compiz is a compositing window manager that uses 3D graphics
70acceleration via OpenGL. It provides various new graphical effects
71and features on any desktop environment, including Gnome and KDE.
29c69110 72
72931e8e 73%description -l pl.UTF-8
12a6c4d1 74Compiz jest menedżerem okien obsługującym składanie, który używa
75akceleracji grafiki 3D przez OpenGL-a. Umożliwia on uzyskanie nowych
76efektów graficznych i możliwości w dowolnym środowisku, nie
77wyłączając Gnome i KDE.
19a8ce89 78
21b9df37 79%package devel
80Summary: Header files for compiz
5e30f66d 81Summary(pl.UTF-8): Pliki nagłówkowe dla compiza
fe9f8047 82Group: X11/Development/Libraries
0676c3dc 83Requires: %{name} = %{version}-%{release}
731af772
JB
84# (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
85Requires: OpenGL-devel
86Requires: libpng-devel
87Requires: startup-notification-devel >= 0.7
88Requires: xorg-lib-libSM-devel
89Requires: xorg-lib-libXcomposite-devel
90Requires: xorg-lib-libXdamage-devel
fe9f8047 91Requires: xorg-lib-libXinerama-devel
731af772 92Requires: xorg-lib-libXrandr-devel
21b9df37 93
94%description devel
95Header files for compiz.
96
72931e8e
JR
97%description devel -l pl.UTF-8
98Pliki nagłówkowe dla compiza.
21b9df37 99
fe9f8047
JB
100%package gconf
101Summary: GConf plugin for Compiz
5e30f66d 102Summary(pl.UTF-8): Wtyczka GConf dla Compiza
fe9f8047 103Group: X11/Applications
7e55e8c0 104Requires(post,preun): GConf2
fe9f8047
JB
105Requires: %{name} = %{version}-%{release}
106
107%description gconf
108GConf plugin for Compiz.
109
72931e8e 110%description gconf -l pl.UTF-8
fe9f8047
JB
111Wtyczka GConf dla Compiza.
112
ab895ea9 113%package gnome-settings
fe9f8047 114Summary: Compiz settings for GNOME control panel
5e30f66d 115Summary(pl.UTF-8): Ustawienia compiza dla panelu sterowania GNOME
fe9f8047 116Group: X11/Applications
ab895ea9 117Requires: %{name} = %{version}-%{release}
118
119%description gnome-settings
fe9f8047 120Compiz settings for GNOME control panel.
ab895ea9 121
72931e8e 122%description gnome-settings -l pl.UTF-8
fe9f8047 123Ustawienia compiza dla panelu sterowania GNOME.
ab895ea9 124
fe9f8047
JB
125%package gtk-decorator
126Summary: Window decorator for GTK+
5e30f66d 127Summary(pl.UTF-8): Dekorator okien dla GTK+
fe9f8047 128Group: X11/Applications
0676c3dc 129%if %{with gconf}
7e55e8c0 130Requires(post,preun): GConf2
0676c3dc 131%endif
ab895ea9 132Requires: %{name} = %{version}-%{release}
fe9f8047 133Obsoletes: compiz-gnome-decorator
ab895ea9 134
fe9f8047
JB
135%description gtk-decorator
136Window decorator for GTK+.
ab895ea9 137
72931e8e 138%description gtk-decorator -l pl.UTF-8
fe9f8047 139Dekorator okien dla GTK+.
ab895ea9 140
141%package kde-decorator
142Summary: Window decorator for KDE
5e30f66d 143Summary(pl.UTF-8): Dekorator okien dla KDE
fe9f8047 144Group: X11/Applications
ab895ea9 145Requires: %{name} = %{version}-%{release}
146
147%description kde-decorator
148Window decorator for KDE.
149
72931e8e 150%description kde-decorator -l pl.UTF-8
ab895ea9 151Dekorator okien dla KDE.
152
29c69110 153%prep
fe9f8047 154%setup -q
12a6c4d1 155#%patch0 -p1
29c69110 156
157%build
fe9f8047
JB
158%{__libtoolize}
159%{__aclocal}
160%{__autoconf}
161%{__autoheader}
162%{__automake}
13c75255 163QTLIB=%{_libdir}; export QTLIB
29c69110 164%configure \
731af772 165 --disable-static \
fe9f8047 166 --enable-librsvg \
731af772 167 %{!?with_gconf:--disable-gconf} \
fe9f8047
JB
168 %{!?with_gnome:--disable-gnome} \
169 %{!?with_gtk:--disable-gtk} \
0676c3dc
JB
170 %{!?with_kde:--disable-kde} \
171 %{!?with_metacity:--disable-metacity}
29c69110 172
173%{__make}
174
175%install
176rm -rf $RPM_BUILD_ROOT
177
731af772 178%{__make} install \
413e24bf 179 desktopfilesdir=%{_datadir}/wm-properties \
731af772
JB
180 DESTDIR=$RPM_BUILD_ROOT
181
182rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
29c69110 183
75791cac 184%find_lang %{name}
185
29c69110 186%clean
187rm -rf $RPM_BUILD_ROOT
188
0676c3dc
JB
189%post -p /sbin/ldconfig
190%postun -p /sbin/ldconfig
191
12a6c4d1 192%if %{with gconf}
fe9f8047 193%post gconf
12a6c4d1 194%gconf_schema_install
0bd1b382 195
fe9f8047 196%preun gconf
12a6c4d1 197%gconf_schema_uninstall
0bd1b382 198
12a6c4d1 199%if %{with gtk}
d63e78c5
JB
200%post gtk-decorator
201%gconf_schema_install gwd.schemas
202
203%preun gtk-decorator
204%gconf_schema_uninstall gwd.schemas
0676c3dc 205%endif
12a6c4d1 206%endif
d63e78c5 207
75791cac 208%files -f %{name}.lang
29c69110 209%defattr(644,root,root,755)
fe9f8047 210%doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO
ab895ea9 211%attr(755,root,root) %{_bindir}/compiz
0676c3dc 212%attr(755,root,root) %{_libdir}/libdecoration.so.*.*.*
29c69110 213%dir %{_libdir}/compiz
214%attr(755,root,root) %{_libdir}/compiz/*.so
fe9f8047 215%{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so}
29c69110 216%{_datadir}/compiz
12a6c4d1 217%{?with_gconf:%exclude %{_datadir}/compiz/gconf.xml}
29c69110 218
21b9df37 219%files devel
220%defattr(644,root,root,755)
0676c3dc
JB
221%attr(755,root,root) %{_libdir}/libdecoration.so
222%{_libdir}/libdecoration.la
21b9df37 223%{_includedir}/compiz
12a6c4d1 224%{_pkgconfigdir}/*.pc
ab895ea9 225
fe9f8047
JB
226%if %{with gconf}
227%files gconf
228%defattr(644,root,root,755)
229%attr(755,root,root) %{_libdir}/compiz/libgconf.so
12a6c4d1 230%{_sysconfdir}/gconf/schemas/compiz-*.schemas
231%{_datadir}/compiz/gconf.xml
fe9f8047
JB
232%endif
233
ab895ea9 234%if %{with gnome}
235%files gnome-settings
236%defattr(644,root,root,755)
237%attr(755,root,root) %{_libdir}/window-manager-settings/*.so
fe9f8047 238%endif
ab895ea9 239
fe9f8047
JB
240%if %{with gtk}
241%files gtk-decorator
ab895ea9 242%defattr(644,root,root,755)
fe9f8047 243%attr(755,root,root) %{_bindir}/gtk-window-decorator
0676c3dc 244%if %{with gconf}
d63e78c5 245%{_sysconfdir}/gconf/schemas/gwd.schemas
ab895ea9 246%endif
0676c3dc 247%endif
ab895ea9 248
249%if %{with kde}
250%files kde-decorator
251%defattr(644,root,root,755)
252%attr(755,root,root) %{_bindir}/kde-window-decorator
253%endif
This page took 0.246921 seconds and 4 git commands to generate.