]> git.pld-linux.org Git - packages/compiz.git/blame - compiz.spec
- move %{_libdir}/compiz from main package to -libs
[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
8d5e4a77 13Release: 3
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
dd50dedb 80%package libs
81Summary: Compiz libraries
82Summary(pl.UTF-8): Biblioteki compiza
83Group: X11/Applications
84
85%description libs
86Compiz libraries.
87
88%description libs -l pl.UTF-8
89Biblioteki Compiza.
90
21b9df37 91%package devel
92Summary: Header files for compiz
5e30f66d 93Summary(pl.UTF-8): Pliki nagłówkowe dla compiza
fe9f8047 94Group: X11/Development/Libraries
dd50dedb 95Requires: %{name}-libs = %{version}-%{release}
731af772
JB
96# (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
97Requires: OpenGL-devel
98Requires: libpng-devel
99Requires: startup-notification-devel >= 0.7
100Requires: xorg-lib-libSM-devel
101Requires: xorg-lib-libXcomposite-devel
102Requires: xorg-lib-libXdamage-devel
fe9f8047 103Requires: xorg-lib-libXinerama-devel
731af772 104Requires: xorg-lib-libXrandr-devel
8070223d 105Obsoletes: beryl-core-devel
21b9df37 106
107%description devel
108Header files for compiz.
109
72931e8e
JR
110%description devel -l pl.UTF-8
111Pliki nagłówkowe dla compiza.
21b9df37 112
fe9f8047
JB
113%package gconf
114Summary: GConf plugin for Compiz
5e30f66d 115Summary(pl.UTF-8): Wtyczka GConf dla Compiza
fe9f8047 116Group: X11/Applications
7e55e8c0 117Requires(post,preun): GConf2
fe9f8047 118Requires: %{name} = %{version}-%{release}
8070223d 119Obsoletes: beryl-core-gconf
fe9f8047
JB
120
121%description gconf
122GConf plugin for Compiz.
123
72931e8e 124%description gconf -l pl.UTF-8
fe9f8047
JB
125Wtyczka GConf dla Compiza.
126
ab895ea9 127%package gnome-settings
fe9f8047 128Summary: Compiz settings for GNOME control panel
5e30f66d 129Summary(pl.UTF-8): Ustawienia compiza dla panelu sterowania GNOME
fe9f8047 130Group: X11/Applications
ab895ea9 131Requires: %{name} = %{version}-%{release}
132
133%description gnome-settings
fe9f8047 134Compiz settings for GNOME control panel.
ab895ea9 135
72931e8e 136%description gnome-settings -l pl.UTF-8
fe9f8047 137Ustawienia compiza dla panelu sterowania GNOME.
ab895ea9 138
fe9f8047
JB
139%package gtk-decorator
140Summary: Window decorator for GTK+
5e30f66d 141Summary(pl.UTF-8): Dekorator okien dla GTK+
fe9f8047 142Group: X11/Applications
0676c3dc 143%if %{with gconf}
7e55e8c0 144Requires(post,preun): GConf2
0676c3dc 145%endif
ab895ea9 146Requires: %{name} = %{version}-%{release}
fe9f8047 147Obsoletes: compiz-gnome-decorator
ab895ea9 148
fe9f8047
JB
149%description gtk-decorator
150Window decorator for GTK+.
ab895ea9 151
72931e8e 152%description gtk-decorator -l pl.UTF-8
fe9f8047 153Dekorator okien dla GTK+.
ab895ea9 154
155%package kde-decorator
156Summary: Window decorator for KDE
5e30f66d 157Summary(pl.UTF-8): Dekorator okien dla KDE
fe9f8047 158Group: X11/Applications
ab895ea9 159Requires: %{name} = %{version}-%{release}
160
161%description kde-decorator
162Window decorator for KDE.
163
72931e8e 164%description kde-decorator -l pl.UTF-8
ab895ea9 165Dekorator okien dla KDE.
166
29c69110 167%prep
fe9f8047 168%setup -q
e21b831c 169%patch0 -p1
29c69110 170
171%build
af0dc2ff 172%{__intltoolize}
fe9f8047
JB
173%{__libtoolize}
174%{__aclocal}
175%{__autoconf}
176%{__autoheader}
177%{__automake}
13c75255 178QTLIB=%{_libdir}; export QTLIB
29c69110 179%configure \
731af772 180 --disable-static \
fe9f8047 181 --enable-librsvg \
731af772 182 %{!?with_gconf:--disable-gconf} \
fe9f8047
JB
183 %{!?with_gnome:--disable-gnome} \
184 %{!?with_gtk:--disable-gtk} \
0676c3dc
JB
185 %{!?with_kde:--disable-kde} \
186 %{!?with_metacity:--disable-metacity}
29c69110 187
188%{__make}
189
190%install
191rm -rf $RPM_BUILD_ROOT
192
731af772 193%{__make} install \
413e24bf 194 desktopfilesdir=%{_datadir}/wm-properties \
731af772
JB
195 DESTDIR=$RPM_BUILD_ROOT
196
197rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
29c69110 198
75791cac 199%find_lang %{name}
200
29c69110 201%clean
202rm -rf $RPM_BUILD_ROOT
203
0676c3dc
JB
204%post -p /sbin/ldconfig
205%postun -p /sbin/ldconfig
206
fe9f8047 207%post gconf
12a6c4d1 208%gconf_schema_install
0bd1b382 209
fe9f8047 210%preun gconf
12a6c4d1 211%gconf_schema_uninstall
0bd1b382 212
e21b831c 213%if %{with gconf}
d63e78c5
JB
214%post gtk-decorator
215%gconf_schema_install gwd.schemas
216
217%preun gtk-decorator
218%gconf_schema_uninstall gwd.schemas
0676c3dc 219%endif
d63e78c5 220
75791cac 221%files -f %{name}.lang
29c69110 222%defattr(644,root,root,755)
fe9f8047 223%doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO
ab895ea9 224%attr(755,root,root) %{_bindir}/compiz
29c69110 225%attr(755,root,root) %{_libdir}/compiz/*.so
fe9f8047 226%{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so}
29c69110 227%{_datadir}/compiz
12a6c4d1 228%{?with_gconf:%exclude %{_datadir}/compiz/gconf.xml}
29c69110 229
dd50dedb 230%files libs
231%defattr(644,root,root,755)
232%attr(755,root,root) %{_libdir}/libdecoration.so.*.*.*
8d5e4a77 233%dir %{_libdir}/compiz
dd50dedb 234
21b9df37 235%files devel
236%defattr(644,root,root,755)
0676c3dc
JB
237%attr(755,root,root) %{_libdir}/libdecoration.so
238%{_libdir}/libdecoration.la
21b9df37 239%{_includedir}/compiz
e21b831c
JB
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
ab895ea9 245
fe9f8047
JB
246%if %{with gconf}
247%files gconf
248%defattr(644,root,root,755)
249%attr(755,root,root) %{_libdir}/compiz/libgconf.so
12a6c4d1 250%{_sysconfdir}/gconf/schemas/compiz-*.schemas
251%{_datadir}/compiz/gconf.xml
e21b831c
JB
252# what for?
253%{_pkgconfigdir}/compiz-gconf.pc
fe9f8047
JB
254%endif
255
ab895ea9 256%if %{with gnome}
257%files gnome-settings
258%defattr(644,root,root,755)
259%attr(755,root,root) %{_libdir}/window-manager-settings/*.so
fe9f8047 260%endif
ab895ea9 261
fe9f8047
JB
262%if %{with gtk}
263%files gtk-decorator
ab895ea9 264%defattr(644,root,root,755)
fe9f8047 265%attr(755,root,root) %{_bindir}/gtk-window-decorator
0676c3dc 266%if %{with gconf}
d63e78c5 267%{_sysconfdir}/gconf/schemas/gwd.schemas
ab895ea9 268%endif
0676c3dc 269%endif
ab895ea9 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.096947 seconds and 4 git commands to generate.