]> git.pld-linux.org Git - packages/compiz.git/blob - compiz.spec
- updated to 0.3.6
[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):    OpenGL-owy zarz±dca okien i sk³adania
11 Name:           compiz
12 Version:        0.3.6
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:  260b03fc9ae62ff1ad4e8c5e92d56180
18 Source1:        %{name}-pld.png
19 # Source1-md5:  3050dc90fd4e5e990bb5baeb82bd3c8a
20 URL:            http://xorg.freedesktop.org/
21 %if %{with gconf} || %{with gtk}
22 BuildRequires:  GConf2-devel >= 2.0
23 %endif
24 BuildRequires:  Mesa-libGL-devel >= 6.5-1.20060411.2
25 BuildRequires:  autoconf >= 2.57
26 BuildRequires:  automake
27 BuildRequires:  cairo-devel >= 1.0
28 BuildRequires:  dbus-devel >= 0.35
29 BuildRequires:  glib2-devel >= 2.0
30 # <sys/inotify.h>
31 BuildRequires:  glibc-devel >= 6:2.4
32 BuildRequires:  glitz-devel
33 BuildRequires:  intltool
34 BuildRequires:  libpng-devel
35 BuildRequires:  librsvg-devel >= 2.14.0
36 BuildRequires:  libtool
37 BuildRequires:  pkgconfig
38 BuildRequires:  startup-notification-devel >= 0.7
39 BuildRequires:  xorg-lib-libSM-devel
40 BuildRequires:  xorg-lib-libXcomposite-devel
41 BuildRequires:  xorg-lib-libXdamage-devel
42 BuildRequires:  xorg-lib-libXinerama-devel
43 BuildRequires:  xorg-lib-libXrandr-devel
44 BuildRequires:  xorg-lib-libXres-devel
45 %if %{with gtk}
46 BuildRequires:  gtk+2-devel >= 2:2.8.0
47 BuildRequires:  libwnck-devel >= 2.14.1-2
48 BuildRequires:  pango-devel >= 1.10.0
49 BuildRequires:  xorg-lib-libXrender-devel >= 0.8.4
50 %if %{with gnome}
51 BuildRequires:  control-center-devel >= 2.0
52 BuildRequires:  gnome-desktop-devel >= 2.0
53 BuildRequires:  gnome-menus-devel
54 %endif
55 %if %{with metacity}
56 BuildRequires:  metacity-devel >= 2.15.21
57 %endif
58 %endif
59 %if %{with kde}
60 BuildRequires:  dbus-qt-devel
61 BuildRequires:  kdelibs-devel
62 BuildRequires:  qt-devel >= 3.0
63 %endif
64 Requires(post,preun):   GConf2
65 Conflicts:      xorg-xserver-xgl < 0.0.20060505
66 Obsoletes:      compiz-opacity
67 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68
69 %description
70 Compiz is an OpenGL compositing manager that use
71 GLX_EXT_texture_from_pixmap for binding redirected top-level windows
72 to texture objects. It has a flexible plug-in system and it is
73 designed to run well on most graphics hardware.
74
75 %description -l pl
76 Compiz jest OpenGL-owym zarz±dc± sk³adania, u¿ywaj±cym rozszerzenia
77 GLX_EXT_texture_from_pixmap w celu wi±zania przekierowanych okien do
78 tekstur. Posiada elastyczny system wtyczek i jest tak zaprojektowany,
79 by dobrze dzia³aæ na wiêkszo¶ci kart graficznych.
80
81 %package devel
82 Summary:        Header files for compiz
83 Summary(pl):    Pliki nag³ówkowe dla compiza
84 Group:          X11/Development/Libraries
85 Requires:       %{name} = %{version}-%{release}
86 # (by compiz.pc; header requires only: OpenGL-devel, startup-notification-devel, damageproto, xextproto, libX11-devel)
87 Requires:       OpenGL-devel
88 Requires:       libpng-devel
89 Requires:       startup-notification-devel >= 0.7
90 Requires:       xorg-lib-libSM-devel
91 Requires:       xorg-lib-libXcomposite-devel
92 Requires:       xorg-lib-libXdamage-devel
93 Requires:       xorg-lib-libXinerama-devel
94 Requires:       xorg-lib-libXrandr-devel
95
96 %description devel
97 Header files for compiz.
98
99 %description devel -l pl
100 Pliki nag³ówkowe dla compiza.
101
102 %package gconf
103 Summary:        GConf plugin for Compiz
104 Summary(pl):    Wtyczka GConf dla Compiza
105 Group:          X11/Applications
106 Requires:       %{name} = %{version}-%{release}
107
108 %description gconf
109 GConf plugin for Compiz.
110
111 %description gconf -l pl
112 Wtyczka GConf dla Compiza.
113
114 %package gnome-settings
115 Summary:        Compiz settings for GNOME control panel
116 Summary(pl):    Ustawienia compiza dla panelu sterowania GNOME
117 Group:          X11/Applications
118 Requires:       %{name} = %{version}-%{release}
119
120 %description gnome-settings
121 Compiz settings for GNOME control panel.
122
123 %description gnome-settings -l pl
124 Ustawienia compiza dla panelu sterowania GNOME.
125
126 %package gtk-decorator
127 Summary:        Window decorator for GTK+
128 Summary(pl):    Dekorator okien dla GTK+
129 Group:          X11/Applications
130 %if %{with gconf}
131 Requires(post,postun):  GConf2
132 %endif
133 Requires:       %{name} = %{version}-%{release}
134 Obsoletes:      compiz-gnome-decorator
135
136 %description gtk-decorator
137 Window decorator for GTK+.
138
139 %description gtk-decorator -l pl
140 Dekorator okien dla GTK+.
141
142 %package kde-decorator
143 Summary:        Window decorator for KDE
144 Summary(pl):    Dekorator okien dla KDE
145 Group:          X11/Applications
146 Requires:       %{name} = %{version}-%{release}
147
148 %description kde-decorator
149 Window decorator for KDE.
150
151 %description kde-decorator -l pl
152 Dekorator okien dla KDE.
153
154 %prep
155 %setup -q
156
157 %build
158 %{__libtoolize}
159 %{__aclocal}
160 %{__autoconf}
161 %{__autoheader}
162 %{__automake}
163 %configure \
164         --disable-static \
165         --enable-librsvg \
166         %{!?with_gconf:--disable-gconf} \
167         %{!?with_gnome:--disable-gnome} \
168         %{!?with_gtk:--disable-gtk} \
169         %{!?with_kde:--disable-kde} \
170         %{!?with_metacity:--disable-metacity}
171
172 %{__make}
173
174 %install
175 rm -rf $RPM_BUILD_ROOT
176
177 %{__make} install \
178         desktopfilesdir=%{_datadir}/wm-properties \
179         DESTDIR=$RPM_BUILD_ROOT
180
181 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/compiz/pld.png
182
183 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.la
184
185 %find_lang %{name}
186
187 %clean
188 rm -rf $RPM_BUILD_ROOT
189
190 %post   -p /sbin/ldconfig
191 %postun -p /sbin/ldconfig
192
193 %post gconf
194 %gconf_schema_install compiz.schemas
195
196 %preun gconf
197 %gconf_schema_uninstall compiz.schemas
198
199 %if %{with gconf}
200 %post gtk-decorator
201 %gconf_schema_install gwd.schemas
202
203 %preun gtk-decorator
204 %gconf_schema_uninstall gwd.schemas
205 %endif
206
207 %files -f %{name}.lang
208 %defattr(644,root,root,755)
209 %doc AUTHORS COPYING COPYING.MIT ChangeLog NEWS README TODO
210 %attr(755,root,root) %{_bindir}/compiz
211 %attr(755,root,root) %{_libdir}/libdecoration.so.*.*.*
212 %dir %{_libdir}/compiz
213 %attr(755,root,root) %{_libdir}/compiz/*.so
214 %{?with_gconf:%exclude %{_libdir}/compiz/libgconf.so}
215 %{_datadir}/compiz
216
217 %files devel
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/libdecoration.so
220 %{_libdir}/libdecoration.la
221 %{_includedir}/compiz
222 %{_pkgconfigdir}/compiz.pc
223 %{_pkgconfigdir}/libdecoration.pc
224
225 %if %{with gconf}
226 %files gconf
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/compiz/libgconf.so
229 %{_sysconfdir}/gconf/schemas/compiz.schemas
230 %endif
231
232 %if %{with gnome}
233 %files gnome-settings
234 %defattr(644,root,root,755)
235 %attr(755,root,root) %{_libdir}/window-manager-settings/*.so
236 %{_datadir}/wm-properties/compiz.desktop
237 %endif
238
239 %if %{with gtk}
240 %files gtk-decorator
241 %defattr(644,root,root,755)
242 %attr(755,root,root) %{_bindir}/gtk-window-decorator
243 %if %{with gconf}
244 %{_sysconfdir}/gconf/schemas/gwd.schemas
245 %endif
246 %endif
247
248 %if %{with kde}
249 %files kde-decorator
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_bindir}/kde-window-decorator
252 %endif
This page took 0.268137 seconds and 4 git commands to generate.