]> git.pld-linux.org Git - packages/compiz.git/blob - compiz.spec
- fixed GConf2 deps
[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.0
13 Release:        1
14 License:        GPL or MIT
15 Group:          X11/Applications
16 Source0:        http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
17 # Source0-md5:  7a35a9f52155b945aa195f826d3d607a
18 Source1:        %{name}-pld.png
19 # Source1-md5:  3050dc90fd4e5e990bb5baeb82bd3c8a
20 Patch0:         %{name}-DESTDIR.patch
21 URL:            http://xorg.freedesktop.org/
22 %if %{with gconf} || %{with gtk}
23 BuildRequires:  GConf2-devel >= 2.0
24 %endif
25 BuildRequires:  Mesa-libGL-devel >= 6.5-1.20060411.2
26 BuildRequires:  autoconf >= 2.57
27 BuildRequires:  automake
28 BuildRequires:  cairo-devel >= 1.0
29 BuildRequires:  dbus-devel >= 0.35
30 BuildRequires:  glib2-devel >= 2.0
31 # <sys/inotify.h>
32 BuildRequires:  glibc-devel >= 6:2.4
33 BuildRequires:  glitz-devel
34 BuildRequires:  intltool
35 BuildRequires:  libpng-devel
36 BuildRequires:  librsvg-devel >= 2.14.0
37 BuildRequires:  libtool
38 BuildRequires:  pkgconfig
39 BuildRequires:  startup-notification-devel >= 0.7
40 BuildRequires:  xorg-lib-libSM-devel
41 BuildRequires:  xorg-lib-libXcomposite-devel
42 BuildRequires:  xorg-lib-libXdamage-devel
43 BuildRequires:  xorg-lib-libXinerama-devel
44 BuildRequires:  xorg-lib-libXrandr-devel
45 BuildRequires:  xorg-lib-libXres-devel
46 %if %{with gtk}
47 BuildRequires:  gtk+2-devel >= 2:2.8.0
48 BuildRequires:  libwnck-devel >= 2.14.1-2
49 BuildRequires:  pango-devel >= 1.10.0
50 BuildRequires:  xorg-lib-libXrender-devel >= 0.8.4
51 %if %{with gnome}
52 BuildRequires:  control-center-devel >= 2.0
53 BuildRequires:  gnome-desktop-devel >= 2.0
54 BuildRequires:  gnome-menus-devel
55 %endif
56 %if %{with metacity}
57 BuildRequires:  metacity-devel >= 2.15.21
58 %endif
59 %endif
60 %if %{with kde}
61 BuildRequires:  dbus-qt-devel
62 BuildRequires:  kdelibs-devel
63 BuildRequires:  kdebase-devel
64 BuildRequires:  qt-devel >= 1:3.0
65 %endif
66 Conflicts:      xorg-xserver-xgl < 0.0.20060505
67 Obsoletes:      compiz-opacity
68 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
69
70 %description
71 Compiz is an OpenGL compositing manager that use
72 GLX_EXT_texture_from_pixmap for binding redirected top-level windows
73 to texture objects. It has a flexible plug-in system and it is
74 designed to run well on most graphics hardware.
75
76 %description -l pl.UTF-8
77 Compiz jest OpenGL-owym zarządcą składania, używającym rozszerzenia
78 GLX_EXT_texture_from_pixmap w celu wiązania przekierowanych okien do
79 tekstur. Posiada elastyczny system wtyczek i jest tak zaprojektowany,
80 by dobrze działać na większości kart graficznych.
81
82 %package devel
83 Summary:        Header files for compiz
84 Summary(pl.UTF-8):      Pliki nagłówkowe dla compiza
85 Group:          X11/Development/Libraries
86 Requires:       %{name} = %{version}-%{release}
87 # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
88 Requires:       OpenGL-devel
89 Requires:       libpng-devel
90 Requires:       startup-notification-devel >= 0.7
91 Requires:       xorg-lib-libSM-devel
92 Requires:       xorg-lib-libXcomposite-devel
93 Requires:       xorg-lib-libXdamage-devel
94 Requires:       xorg-lib-libXinerama-devel
95 Requires:       xorg-lib-libXrandr-devel
96
97 %description devel
98 Header files for compiz.
99
100 %description devel -l pl.UTF-8
101 Pliki nagłówkowe dla compiza.
102
103 %package gconf
104 Summary:        GConf plugin for Compiz
105 Summary(pl.UTF-8):      Wtyczka GConf dla Compiza
106 Group:          X11/Applications
107 Requires(post,preun):   GConf2
108 Requires:       %{name} = %{version}-%{release}
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 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/compiz/pld.png
186
187 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
188
189 %find_lang %{name}
190
191 %clean
192 rm -rf $RPM_BUILD_ROOT
193
194 %post   -p /sbin/ldconfig
195 %postun -p /sbin/ldconfig
196
197 %post gconf
198 %gconf_schema_install compiz.schemas
199
200 %preun gconf
201 %gconf_schema_uninstall compiz.schemas
202
203 %if %{with gconf}
204 %post gtk-decorator
205 %gconf_schema_install gwd.schemas
206
207 %preun gtk-decorator
208 %gconf_schema_uninstall gwd.schemas
209 %endif
210
211 %files -f %{name}.lang
212 %defattr(644,root,root,755)
213 %doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO
214 %attr(755,root,root) %{_bindir}/compiz
215 %attr(755,root,root) %{_libdir}/libdecoration.so.*.*.*
216 %dir %{_libdir}/compiz
217 %attr(755,root,root) %{_libdir}/compiz/*.so
218 %{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so}
219 %{_datadir}/compiz
220
221 %files devel
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_libdir}/libdecoration.so
224 %{_libdir}/libdecoration.la
225 %{_includedir}/compiz
226 %{_pkgconfigdir}/compiz.pc
227 %{_pkgconfigdir}/libdecoration.pc
228
229 %if %{with gconf}
230 %files gconf
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_libdir}/compiz/libgconf.so
233 %{_sysconfdir}/gconf/schemas/compiz.schemas
234 %endif
235
236 %if %{with gnome}
237 %files gnome-settings
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_libdir}/window-manager-settings/*.so
240 %{_datadir}/wm-properties/compiz.desktop
241 %endif
242
243 %if %{with gtk}
244 %files gtk-decorator
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_bindir}/gtk-window-decorator
247 %if %{with gconf}
248 %{_sysconfdir}/gconf/schemas/gwd.schemas
249 %endif
250 %endif
251
252 %if %{with kde}
253 %files kde-decorator
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_bindir}/kde-window-decorator
256 %endif
This page took 0.045145 seconds and 4 git commands to generate.