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