]>
Commit | Line | Data |
---|---|---|
64890753 | 1 | # |
2e3ea8a6 JB |
2 | # TODO: |
3 | # - something with %{_datadir}/themes/Theme dirs (some belong to gnome-themes, | |
4 | # some don't belong anywhere...) | |
64890753 | 5 | # - metacity requires itself (links with installed libmetacity-private |
6 | # instead of linking with built one?) | |
7 | # | |
f5f16985 JR |
8 | # |
9 | # Conditional build: | |
10 | %bcond_with gnome2 # build with support for GNOME2 wm-properties | |
11 | # | |
87da567d | 12 | Summary: Metacity window manager |
b07a4285 | 13 | Summary(pl.UTF-8): Zarządca okien Metacity |
87da567d | 14 | Name: metacity |
1e123a24 | 15 | Version: 2.34.13 |
f96d82cd | 16 | Release: 2 |
6d305f97 | 17 | Epoch: 2 |
bc1fce32 | 18 | License: GPL v2+ |
87da567d | 19 | Group: X11/Window Managers |
dd045fe8 | 20 | Source0: http://ftp.gnome.org/pub/GNOME/sources/metacity/2.34/%{name}-%{version}.tar.xz |
1e123a24 | 21 | # Source0-md5: 6d89b71672d4fa49fc87f83d610d0ef6 |
b2d7ea4e | 22 | BuildRequires: autoconf >= 2.50 |
770322ba | 23 | BuildRequires: automake >= 1.11.1 |
7ae0160e | 24 | BuildRequires: gettext-tools |
770322ba | 25 | BuildRequires: glib2-devel >= 2.6.0 |
2661a933 | 26 | BuildRequires: gnome-doc-utils >= 0.9.0 |
9412d5db | 27 | BuildRequires: gtk+2-devel >= 2:2.20.0 |
a08f3266 | 28 | BuildRequires: intltool >= 0.40.0 |
2661a933 MB |
29 | BuildRequires: libcanberra-gtk-devel |
30 | BuildRequires: libgtop-devel | |
e45b6961 | 31 | BuildRequires: libtool |
770322ba | 32 | BuildRequires: pango-devel >= 1.2.0 |
bc1fce32 | 33 | BuildRequires: pkgconfig |
4f26cd94 | 34 | BuildRequires: rpmbuild(macros) >= 1.197 |
b2d7ea4e | 35 | BuildRequires: startup-notification-devel >= 0.8 |
dd045fe8 | 36 | BuildRequires: tar >= 1:1.22 |
921fc781 | 37 | BuildRequires: xorg-lib-libSM-devel |
85844305 PZ |
38 | # do we want to patch it? |
39 | BuildRequires: zenity | |
dd045fe8 | 40 | BuildRequires: xz >= 1:4.999.7 |
1e123a24 | 41 | Requires(post,postun): glib2 >= 1:2.26.0 |
c648154c MK |
42 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
43 | Requires: metacity-theme-base = %{epoch}:%{version}-%{release} | |
85844305 | 44 | Requires: zenity |
0106e2c1 | 45 | Provides: gnome-wm |
a2f9ad66 | 46 | Provides: gdm-wm = 3.2.1-1 |
d88b4f9b | 47 | # sr@Latn vs. sr@latin |
6c041752 | 48 | Conflicts: filesystem < 3.0-20 |
d88b4f9b | 49 | Conflicts: glibc-misc < 6:2.7 |
87da567d | 50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
3e775fb8 | 52 | %description |
7b917c18 AM |
53 | Metacity is a simple window manager that integrates nicely with |
54 | GNOME2. | |
3e775fb8 | 55 | |
20cdb13d JR |
56 | %description -l pl.UTF-8 |
57 | Metacity jest prostym zarządcą okien ładnie integrującym się z GNOME2. | |
f5c269f2 | 58 | |
64890753 | 59 | %package libs |
60 | Summary: Metacity - libraries | |
b07a4285 | 61 | Summary(pl.UTF-8): Metacity - biblioteki |
64890753 | 62 | Group: X11/Libraries |
7b7119a3 | 63 | Conflicts: metacity <= 2.6.3-4 |
64890753 | 64 | |
65 | %description libs | |
66 | This package contains libraries for Metacity window manager. | |
67 | ||
20cdb13d JR |
68 | %description libs -l pl.UTF-8 |
69 | Pakiet zawierający biblioteki zarządcy okien Metacity. | |
64890753 | 70 | |
ec0e4853 | 71 | %package devel |
64890753 | 72 | Summary: Metacity - header files |
b07a4285 | 73 | Summary(pl.UTF-8): Metacity - pliki nagłówkowe |
ec0e4853 | 74 | Group: X11/Development/Libraries |
c648154c | 75 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
da5ed010 | 76 | Requires: gtk+2-devel >= 2:2.20.0 |
ec0e4853 | 77 | |
78 | %description devel | |
64890753 | 79 | This package contains header files for Metacity window manager. |
ec0e4853 | 80 | |
20cdb13d JR |
81 | %description devel -l pl.UTF-8 |
82 | Pakiet zawierający pliki nagłówkowe zarządcy okien Metacity. | |
ec0e4853 | 83 | |
6268e2de | 84 | %package static |
64890753 | 85 | Summary: Static Metacity library |
b07a4285 | 86 | Summary(pl.UTF-8): Statyczna biblioteka Metacity |
daa3cd9f | 87 | Group: X11/Development/Libraries |
c648154c | 88 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
27b6a9a0 | 89 | |
6268e2de | 90 | %description static |
64890753 | 91 | Static version of Metacity library. |
27b6a9a0 | 92 | |
20cdb13d | 93 | %description static -l pl.UTF-8 |
64890753 | 94 | Statyczna wersja biblioteki Metacity. |
6268e2de | 95 | |
2e3ea8a6 | 96 | %package themes-AgingGorilla |
64890753 | 97 | Summary: AgingGorilla theme for Metacity |
b07a4285 | 98 | Summary(pl.UTF-8): Motyw AgingGorilla dla Metacity |
eba44d1d | 99 | Group: Themes/GTK+ |
c648154c MK |
100 | Requires: %{name} = %{epoch}:%{version}-%{release} |
101 | Provides: metacity-theme-base = %{epoch}:%{version}-%{release} | |
bc1c51e3 | 102 | |
103 | %description themes-AgingGorilla | |
64890753 | 104 | AgingGorilla theme for Metacity. |
bc1c51e3 | 105 | |
20cdb13d | 106 | %description themes-AgingGorilla -l pl.UTF-8 |
64890753 | 107 | Motyw AgingGorilla dla Metacity. |
bc1c51e3 | 108 | |
2e3ea8a6 | 109 | %package themes-Atlanta |
64890753 | 110 | Summary: Atlanta theme for Metacity |
b07a4285 | 111 | Summary(pl.UTF-8): Motyw Atlanta dla Metacity |
eba44d1d | 112 | Group: Themes/GTK+ |
c648154c MK |
113 | Requires: %{name} = %{epoch}:%{version}-%{release} |
114 | Provides: metacity-theme-base = %{epoch}:%{version}-%{release} | |
bc1c51e3 | 115 | |
116 | %description themes-Atlanta | |
64890753 | 117 | Atlanta theme for Metacity. |
bc1c51e3 | 118 | |
20cdb13d | 119 | %description themes-Atlanta -l pl.UTF-8 |
64890753 | 120 | Motyw Atlanta dla Metacity. |
bc1c51e3 | 121 | |
2e3ea8a6 | 122 | %package themes-Bright |
64890753 | 123 | Summary: Bright theme for Metacity |
b07a4285 | 124 | Summary(pl.UTF-8): Motyw Bright dla Metacity |
eba44d1d | 125 | Group: Themes/GTK+ |
c648154c MK |
126 | Requires: %{name} = %{epoch}:%{version}-%{release} |
127 | Provides: metacity-theme-base = %{epoch}:%{version}-%{release} | |
bc1c51e3 | 128 | |
129 | %description themes-Bright | |
64890753 | 130 | Bright theme for Metacity. |
bc1c51e3 | 131 | |
20cdb13d | 132 | %description themes-Bright -l pl.UTF-8 |
64890753 | 133 | Motyw Bright dla Metacity. |
bc1c51e3 | 134 | |
2e3ea8a6 | 135 | %package themes-Crux |
64890753 | 136 | Summary: Crux theme for Metacity |
b07a4285 | 137 | Summary(pl.UTF-8): Motyw Crux dla Metacity |
eba44d1d | 138 | Group: Themes/GTK+ |
c648154c MK |
139 | Requires: %{name} = %{epoch}:%{version}-%{release} |
140 | Provides: metacity-theme-base = %{epoch}:%{version}-%{release} | |
bc1c51e3 | 141 | |
142 | %description themes-Crux | |
64890753 | 143 | Crux theme for Metacity. |
bc1c51e3 | 144 | |
20cdb13d | 145 | %description themes-Crux -l pl.UTF-8 |
64890753 | 146 | Motyw Crux dla Metacity. |
bc1c51e3 | 147 | |
2e3ea8a6 | 148 | %package themes-Esco |
64890753 | 149 | Summary: Esco theme for Metacity |
b07a4285 | 150 | Summary(pl.UTF-8): Motyw Esco dla Metacity |
eba44d1d | 151 | Group: Themes/GTK+ |
c648154c MK |
152 | Requires: %{name} = %{epoch}:%{version}-%{release} |
153 | Provides: metacity-theme-base = %{epoch}:%{version}-%{release} | |
bc1c51e3 | 154 | |
155 | %description themes-Esco | |
64890753 | 156 | Esco theme for Metacity. |
bc1c51e3 | 157 | |
20cdb13d | 158 | %description themes-Esco -l pl.UTF-8 |
64890753 | 159 | Motyw Esco dla Metacity. |
bc1c51e3 | 160 | |
2e3ea8a6 | 161 | %package themes-Metabox |
64890753 | 162 | Summary: Metabox theme for Metacity |
b07a4285 | 163 | Summary(pl.UTF-8): Motyw Metabox dla Metacity |
eba44d1d | 164 | Group: Themes/GTK+ |
c648154c MK |
165 | Requires: %{name} = %{epoch}:%{version}-%{release} |
166 | Provides: metacity-theme-base = %{epoch}:%{version}-%{release} | |
bc1c51e3 | 167 | |
168 | %description themes-Metabox | |
64890753 | 169 | Metabox theme for Metacity. |
bc1c51e3 | 170 | |
20cdb13d | 171 | %description themes-Metabox -l pl.UTF-8 |
64890753 | 172 | Motyw Metabox dla Metacity. |
bc1c51e3 | 173 | |
2e3ea8a6 | 174 | %package themes-Simple |
64890753 | 175 | Summary: Simple theme for Metacity |
b07a4285 | 176 | Summary(pl.UTF-8): Motyw Simple dla Metacity |
eba44d1d | 177 | Group: Themes/GTK+ |
c648154c MK |
178 | Requires: %{name} = %{epoch}:%{version}-%{release} |
179 | Provides: metacity-theme-base = %{epoch}:%{version}-%{release} | |
bc1c51e3 | 180 | |
181 | %description themes-Simple | |
64890753 | 182 | Simple theme for Metacity. |
bc1c51e3 | 183 | |
20cdb13d | 184 | %description themes-Simple -l pl.UTF-8 |
64890753 | 185 | Motyw Simple dla Metacity. |
bc1c51e3 | 186 | |
3e775fb8 | 187 | %prep |
188 | %setup -q | |
d88b4f9b | 189 | |
3e775fb8 | 190 | %build |
5605282c | 191 | %{__intltoolize} |
adac94c5 | 192 | %{__libtoolize} |
d6208c57 | 193 | %{__aclocal} |
efd80e8f | 194 | %{__autoconf} |
921fc781 | 195 | %{__autoheader} |
efd80e8f | 196 | %{__automake} |
f6995a4b | 197 | %configure \ |
f3b23e2c | 198 | --disable-schemas-install \ |
199 | --enable-compositor | |
f5c269f2 | 200 | %{__make} |
3e775fb8 | 201 | |
202 | %install | |
203 | rm -rf $RPM_BUILD_ROOT | |
0cae1353 | 204 | install -d $RPM_BUILD_ROOT%{_datadir}/xml/metacity |
3e775fb8 | 205 | |
87da567d | 206 | %{__make} install \ |
bcd55d18 | 207 | DESTDIR=$RPM_BUILD_ROOT \ |
84ce6ed8 | 208 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
3e775fb8 | 209 | |
e1b6c80d | 210 | install doc/metacity-theme.dtd $RPM_BUILD_ROOT%{_datadir}/xml/metacity |
3e775fb8 | 211 | |
03f5fb27 | 212 | %{!?with_gnome2:%{__rm} $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties/metacity-wm.desktop} |
f5f16985 | 213 | |
a24b0d49 AF |
214 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmetacity-private.la |
215 | ||
a08f3266 | 216 | %find_lang %{name} --with-gnome --all-name |
3e775fb8 | 217 | |
d6f8f681 JB |
218 | %clean |
219 | rm -rf $RPM_BUILD_ROOT | |
220 | ||
7b917c18 | 221 | %post |
1e123a24 | 222 | %glib_compile_schemas |
7b917c18 | 223 | |
1e123a24 JR |
224 | %postun |
225 | %glib_compile_schemas | |
4f26cd94 | 226 | |
1b588999 | 227 | %post libs -p /sbin/ldconfig |
228 | %postun libs -p /sbin/ldconfig | |
bb127988 | 229 | |
87da567d | 230 | %files -f %{name}.lang |
231 | %defattr(644,root,root,755) | |
2dc874c7 | 232 | %doc AUTHORS NEWS README rationales.txt doc/theme-format.txt |
f0d2ab67 MB |
233 | %attr(755,root,root) %{_bindir}/metacity |
234 | %attr(755,root,root) %{_bindir}/metacity-message | |
235 | %attr(755,root,root) %{_bindir}/metacity-theme-viewer | |
236 | %attr(755,root,root) %{_bindir}/metacity-window-demo | |
1e123a24 JR |
237 | %{_datadir}/GConf/gsettings/metacity-schemas.convert |
238 | %{_datadir}/glib-2.0/schemas/org.gnome.metacity.gschema.xml | |
7b917c18 | 239 | %{_datadir}/%{name} |
6c041752 | 240 | %{_desktopdir}/metacity.desktop |
07f8b94d | 241 | %{_datadir}/gnome-control-center/keybindings/*.xml |
f5f16985 | 242 | %{?with_gnome2:%{_datadir}/gnome/wm-properties/metacity-wm.desktop} |
2e3ea8a6 | 243 | %{_datadir}/xml/metacity |
b2d7ea4e | 244 | %{_mandir}/man1/metacity*.1* |
bc1c51e3 | 245 | |
246 | %files themes-AgingGorilla | |
247 | %defattr(644,root,root,755) | |
880d7399 | 248 | %{_datadir}/themes/AgingGorilla |
bc1c51e3 | 249 | |
250 | %files themes-Atlanta | |
251 | %defattr(644,root,root,755) | |
880d7399 | 252 | %{_datadir}/themes/Atlanta |
bc1c51e3 | 253 | |
254 | %files themes-Bright | |
255 | %defattr(644,root,root,755) | |
880d7399 | 256 | %{_datadir}/themes/Bright |
bc1c51e3 | 257 | |
258 | %files themes-Crux | |
259 | %defattr(644,root,root,755) | |
880d7399 | 260 | %{_datadir}/themes/Crux |
bc1c51e3 | 261 | |
262 | %files themes-Esco | |
263 | %defattr(644,root,root,755) | |
880d7399 | 264 | %{_datadir}/themes/Esco |
bc1c51e3 | 265 | |
266 | %files themes-Metabox | |
267 | %defattr(644,root,root,755) | |
880d7399 | 268 | %{_datadir}/themes/Metabox |
bc1c51e3 | 269 | |
270 | %files themes-Simple | |
271 | %defattr(644,root,root,755) | |
880d7399 | 272 | %{_datadir}/themes/Simple |
ec0e4853 | 273 | |
64890753 | 274 | %files libs |
275 | %defattr(644,root,root,755) | |
f0d2ab67 | 276 | %attr(755,root,root) %{_libdir}/libmetacity-private.so.*.*.* |
921fc781 | 277 | %attr(755,root,root) %ghost %{_libdir}/libmetacity-private.so.0 |
64890753 | 278 | |
ec0e4853 | 279 | %files devel |
280 | %defattr(644,root,root,755) | |
2dc874c7 | 281 | %doc ChangeLog HACKING doc/dialogs.txt |
f0d2ab67 | 282 | %attr(755,root,root) %{_libdir}/libmetacity-private.so |
f0d2ab67 MB |
283 | %{_includedir}/metacity-1 |
284 | %{_pkgconfigdir}/libmetacity-private.pc | |
6268e2de | 285 | |
286 | %files static | |
287 | %defattr(644,root,root,755) | |
f0d2ab67 | 288 | %{_libdir}/libmetacity-private.a |