]>
Commit | Line | Data |
---|---|---|
a043cca3 | 1 | # |
ae132915 | 2 | # Conditional build: |
08ebd211 | 3 | %bcond_with beryl_mesa # beryl-xgl statically linked with own libGL |
ae132915 | 4 | # |
e4316223 | 5 | |
6 | %define _beryl_mesa_version 0.1.99.2 | |
7 | ||
f0960972 | 8 | Summary: OpenGL window and compositing manager |
5e93a4b9 | 9 | Summary(pl.UTF-8): OpenGL-owy zarządca okien i składania |
f0960972 | 10 | Name: beryl-core |
662aeab1 | 11 | Version: 0.2.1 |
e4316223 | 12 | Release: 2 |
ae132915 | 13 | Epoch: 1 |
cb8b5bf3 | 14 | License: GPL v2+ |
f0960972 | 15 | Group: X11 |
ae132915 | 16 | Source0: http://releases.beryl-project.org/%{version}/%{name}-%{version}.tar.bz2 |
662aeab1 | 17 | # Source0-md5: 895fe727d4396f6d51ffaf73cf8460d0 |
e4316223 | 18 | Source1: http://releases.beryl-project.org/%{_beryl_mesa_version}/beryl-mesa-%{_beryl_mesa_version}.tar.bz2 |
19 | # Source1-md5: 387d068091bc5c6fa28f6d754e1296d1 | |
25d9cdf9 JB |
20 | Patch0: %{name}-link.patch |
21 | URL: http://beryl-project.org/ | |
e415f12f | 22 | BuildRequires: GConf2-devel >= 2.0 |
25d9cdf9 | 23 | BuildRequires: OpenGL-GLX-devel |
f0960972 | 24 | BuildRequires: autoconf >= 2.57 |
e415f12f | 25 | BuildRequires: automake >= 1:1.9 |
585ef3ab | 26 | BuildRequires: gettext-tools |
2a6e2aba | 27 | BuildRequires: glib2-devel >= 2.0 |
e415f12f | 28 | BuildRequires: intltool >= 0.35.0 |
f0960972 | 29 | BuildRequires: libpng-devel |
30 | BuildRequires: libtool | |
2a6e2aba | 31 | BuildRequires: pkgconfig |
95424525 | 32 | BuildRequires: sed >= 4.0 |
2a6e2aba JB |
33 | BuildRequires: startup-notification-devel >= 0.7 |
34 | BuildRequires: xorg-lib-libSM-devel | |
35 | BuildRequires: xorg-lib-libXcomposite-devel >= 0.3 | |
f0960972 | 36 | BuildRequires: xorg-lib-libXdamage-devel |
230a7b00 | 37 | BuildRequires: xorg-lib-libXinerama-devel |
f0960972 | 38 | BuildRequires: xorg-lib-libXrandr-devel |
b36e8018 | 39 | BuildRequires: xorg-lib-libXrender-devel >= 0.8.4 |
f0960972 | 40 | BuildRequires: xorg-proto-glproto-devel |
b9bba488 | 41 | BuildRequires: xorg-util-makedepend |
fabab321 | 42 | Requires: xorg-app-xvinfo |
f0960972 | 43 | Provides: compiz |
c60c79aa | 44 | Obsoletes: compiz-quinnstorm |
f0960972 | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
48 | Beryl is an OpenGL compositing manager that use | |
49 | GLX_EXT_texture_from_pixmap for binding redirected top-level windows | |
50 | to texture objects. It has a flexible plug-in system and it is | |
51 | designed to run well on most graphics hardware. | |
52 | ||
53 | This is an enhanced version of compiz, developed mainly by Quinnstorm. | |
54 | Some parts were optimized for speed and there were added few | |
55 | additional plugins and patches, delivering even more eyecandy. | |
56 | ||
0a4e8d7e JR |
57 | %description -l pl.UTF-8 |
58 | Beryl jest OpenGL-owym zarządcą składania, używającym rozszerzenia | |
59 | GLX_EXT_texture_from_pixmap w celu wiązania przekierowanych okien do | |
f0960972 | 60 | tekstur. Posiada elastyczny system wtyczek i jest tak zaprojektowany, |
0a4e8d7e | 61 | by dobrze działać na większości kart graficznych. |
f0960972 | 62 | |
0a4e8d7e JR |
63 | To jest udoskonalona wersja compiza, tworzona głównie przez |
64 | Quinnstorma. Niektóre części zostały zoptymalizowane pod względem | |
65 | prędkości oraz dodano kilka dodatkowych wtyczek i łatek, | |
66 | dostarczających jeszcze więcej świecidełek. | |
f0960972 | 67 | |
68 | %package devel | |
69 | Summary: Header files for beryl | |
5e93a4b9 | 70 | Summary(pl.UTF-8): Pliki nagłówkowe dla beryla |
25d9cdf9 | 71 | Group: X11/Development/Libraries |
ae132915 | 72 | Requires: %{name} = %{epoch}:%{version}-%{release} |
25d9cdf9 JB |
73 | Requires: OpenGL-GLX-devel |
74 | Requires: glib2-devel >= 2.0 | |
f0960972 | 75 | Requires: libpng-devel |
76 | Requires: startup-notification-devel >= 0.7 | |
77 | Requires: xorg-lib-libSM-devel | |
2a6e2aba | 78 | Requires: xorg-lib-libXcomposite-devel >= 0.3 |
f0960972 | 79 | Requires: xorg-lib-libXdamage-devel |
25d9cdf9 | 80 | Requires: xorg-lib-libXinerama-devel |
f0960972 | 81 | Requires: xorg-lib-libXrandr-devel |
b36e8018 | 82 | Requires: xorg-lib-libXrender-devel >= 0.8.4 |
25d9cdf9 | 83 | Requires: xorg-proto-glproto-devel |
c60c79aa | 84 | Obsoletes: compiz-quinnstorm-devel |
f0960972 | 85 | |
86 | %description devel | |
87 | Header files for beryl. | |
88 | ||
0a4e8d7e JR |
89 | %description devel -l pl.UTF-8 |
90 | Pliki nagłówkowe dla beryla. | |
f0960972 | 91 | |
aea575d3 JB |
92 | %package gconf |
93 | Summary: GConf settings plugin for beryl | |
5e93a4b9 | 94 | Summary(pl.UTF-8): Wtyczka ustawień GConf dla beryla |
aea575d3 JB |
95 | Group: Libraries |
96 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
97 | ||
98 | %description gconf | |
99 | GConf settings plugin for beryl. | |
100 | ||
0a4e8d7e JR |
101 | %description gconf -l pl.UTF-8 |
102 | Wtyczka ustawień GConf dla beryla. | |
aea575d3 | 103 | |
f0960972 | 104 | %prep |
9c9c57d1 | 105 | %setup -q %{?with_beryl_mesa: -a1} |
25d9cdf9 JB |
106 | %patch0 -p1 |
107 | ||
82beb1be | 108 | mv -f po/{de_DE,de}.po |
9c9c57d1 | 109 | mv -f po/{hu_HU,hu}.po |
9c9c57d1 RT |
110 | mv -f po/{pt_PT,pt}.po |
111 | mv -f po/{sv_SE,sv}.po | |
82beb1be | 112 | mv -f po/{uk_UA,uk}.po |
9c9c57d1 | 113 | |
82006fe8 | 114 | # NOTE: check the list after any upgrade! |
9c9c57d1 | 115 | cat > po/LINGUAS <<EOF |
e415f12f | 116 | ca |
b342219a | 117 | cs |
82beb1be | 118 | de |
9c9c57d1 | 119 | es |
e415f12f | 120 | es_AR |
9c9c57d1 RT |
121 | fr |
122 | hu | |
123 | it | |
124 | ja | |
125 | ko | |
35e2b8a3 | 126 | nl |
68d444c2 | 127 | pl |
9c9c57d1 RT |
128 | pt_BR |
129 | pt | |
82beb1be | 130 | ru |
9c9c57d1 | 131 | sv |
82beb1be | 132 | uk |
9c9c57d1 RT |
133 | zh_CN |
134 | zh_HK | |
135 | zh_TW | |
136 | EOF | |
f0960972 | 137 | |
e415f12f | 138 | %build |
1c2daae9 | 139 | %{__glib_gettextize} |
ae132915 | 140 | %{__intltoolize} --automake |
e415f12f JB |
141 | %{__libtoolize} |
142 | %{__aclocal} | |
143 | %{__autoconf} | |
144 | %{__autoheader} | |
145 | %{__automake} | |
1c2daae9 | 146 | |
ae132915 | 147 | # bashisms inside |
1c2daae9 | 148 | sed -i -e 's@^#! /bin/sh$@#!/bin/bash@' configure |
f0960972 | 149 | |
150 | %configure \ | |
9c9c57d1 | 151 | %{?with_beryl_mesa:--with-berylmesadir=beryl-mesa} \ |
e4316223 | 152 | %{?with_beryl_mesa:--enable-xgl} \ |
2c006ab6 | 153 | --disable-static \ |
154 | --enable-gconf | |
155 | ||
f0960972 | 156 | %{__make} |
157 | ||
158 | %install | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
161 | %{__make} install \ | |
f0960972 | 162 | DESTDIR=$RPM_BUILD_ROOT |
163 | ||
25d9cdf9 JB |
164 | rm -f $RPM_BUILD_ROOT%{_libdir}/beryl/backends/*.la |
165 | ||
166 | # program removed | |
167 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/beryl-settings-dump.1 | |
168 | ||
1c2daae9 | 169 | %find_lang %{name} |
170 | ||
f0960972 | 171 | %clean |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
a043cca3 | 174 | %post -p /sbin/ldconfig |
175 | %postun -p /sbin/ldconfig | |
176 | ||
1c2daae9 | 177 | %files -f %{name}.lang |
f0960972 | 178 | %defattr(644,root,root,755) |
25d9cdf9 | 179 | %doc AUTHORS README TODO |
82beb1be | 180 | %attr(755,root,root) %{_bindir}/beryl |
82beb1be JB |
181 | %attr(755,root,root) %{_libdir}/libberyldecoration.so.*.*.* |
182 | %attr(755,root,root) %{_libdir}/libberylsettings.so.*.*.* | |
1c2daae9 | 183 | %dir %{_libdir}/beryl |
184 | %dir %{_libdir}/beryl/backends | |
aea575d3 | 185 | %attr(755,root,root) %{_libdir}/beryl/backends/libini.so |
f0960972 | 186 | %{_datadir}/beryl |
25d9cdf9 JB |
187 | %{_mandir}/man1/beryl.1* |
188 | %if %{with beryl_mesa} | |
189 | %attr(755,root,root) %{_bindir}/beryl-xgl | |
190 | %{_mandir}/man1/beryl-xgl.1* | |
191 | %endif | |
f0960972 | 192 | |
193 | %files devel | |
194 | %defattr(644,root,root,755) | |
82beb1be | 195 | %attr(755,root,root) %{_libdir}/libberyldecoration.so |
25d9cdf9 | 196 | %attr(755,root,root) %{_libdir}/libberylsettings.so |
82beb1be | 197 | %{_libdir}/libberyldecoration.la |
25d9cdf9 | 198 | %{_libdir}/libberylsettings.la |
d9c145cc | 199 | %{_includedir}/beryl |
25d9cdf9 JB |
200 | %{_pkgconfigdir}/beryl.pc |
201 | %{_pkgconfigdir}/berylsettings.pc | |
82beb1be | 202 | %{_pkgconfigdir}/libberyldecoration.pc |
a043cca3 | 203 | %{_mandir}/man3/*.3* |
aea575d3 JB |
204 | |
205 | %files gconf | |
206 | %defattr(644,root,root,755) | |
207 | %attr(755,root,root) %{_libdir}/beryl/backends/libgconf.so |