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