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