]>
Commit | Line | Data |
---|---|---|
b57b30be JB |
1 | # |
2 | # Conditional build: | |
4c32563a JB |
3 | %bcond_without vulkan # Vulkan support |
4 | %bcond_without static_libs # static library | |
b57b30be | 5 | |
87da567d | 6 | Summary: Metacity window manager |
b07a4285 | 7 | Summary(pl.UTF-8): Zarządca okien Metacity |
87da567d | 8 | Name: metacity |
479107de | 9 | Version: 3.46.1 |
b57b30be | 10 | Release: 1 |
6d305f97 | 11 | Epoch: 2 |
bc1fce32 | 12 | License: GPL v2+ |
87da567d | 13 | Group: X11/Window Managers |
479107de JB |
14 | Source0: https://download.gnome.org/sources/metacity/3.46/%{name}-%{version}.tar.xz |
15 | # Source0-md5: bf9146d9fde0157c59041c8c17f57b23 | |
b57b30be JB |
16 | URL: https://wiki.gnome.org/Projects/Metacity |
17 | %if %{with vulkan} | |
18 | BuildRequires: Vulkan-Headers | |
19 | BuildRequires: Vulkan-Loader-devel | |
20 | %endif | |
b2d7ea4e | 21 | BuildRequires: autoconf >= 2.50 |
b57b30be | 22 | BuildRequires: automake >= 1:1.14 |
4c32563a | 23 | BuildRequires: gettext-tools >= 0.19.6 |
c069976a | 24 | BuildRequires: glib2-devel >= 1:2.67.3 |
f641de3d | 25 | BuildRequires: gsettings-desktop-schemas-devel >= 3.3.0 |
b475a8ce | 26 | BuildRequires: gtk+3-devel >= 3.24.6 |
f641de3d JB |
27 | BuildRequires: libcanberra-gtk3-devel |
28 | BuildRequires: libgtop-devel >= 2.0 | |
8bee0b20 | 29 | BuildRequires: libtool >= 2:2 |
f641de3d | 30 | BuildRequires: pango-devel >= 1:1.2.0 |
bc1fce32 | 31 | BuildRequires: pkgconfig |
4f26cd94 | 32 | BuildRequires: rpmbuild(macros) >= 1.197 |
b2d7ea4e | 33 | BuildRequires: startup-notification-devel >= 0.8 |
dd045fe8 | 34 | BuildRequires: tar >= 1:1.22 |
479107de | 35 | BuildRequires: xorg-lib-libICE-devel |
921fc781 | 36 | BuildRequires: xorg-lib-libSM-devel |
f641de3d JB |
37 | BuildRequires: xorg-lib-libX11-devel |
38 | BuildRequires: xorg-lib-libXcomposite-devel >= 0.3 | |
39 | BuildRequires: xorg-lib-libXcursor-devel | |
fbbdbb74 | 40 | BuildRequires: xorg-lib-libXdamage-devel |
f641de3d | 41 | BuildRequires: xorg-lib-libXext-devel |
fbbdbb74 | 42 | BuildRequires: xorg-lib-libXfixes-devel |
f641de3d | 43 | BuildRequires: xorg-lib-libXinerama-devel |
b475a8ce | 44 | BuildRequires: xorg-lib-libXpresent-devel |
f641de3d JB |
45 | BuildRequires: xorg-lib-libXrandr-devel |
46 | BuildRequires: xorg-lib-libXrender-devel | |
479107de | 47 | BuildRequires: xorg-lib-libXres-devel >= 1.2 |
dd045fe8 | 48 | BuildRequires: xz >= 1:4.999.7 |
c069976a | 49 | Requires(post,postun): glib2 >= 1:2.67.3 |
c648154c | 50 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
da01ae5c | 51 | Requires: filesystem >= 3.0-20 |
f641de3d | 52 | Requires: gsettings-desktop-schemas >= 3.3.0 |
8272e77e | 53 | Requires: xorg-lib-libXcomposite >= 0.3 |
479107de | 54 | Requires: xorg-lib-libXres >= 1.2 |
85844305 | 55 | Requires: zenity |
a2f9ad66 | 56 | Provides: gdm-wm = 3.2.1-1 |
fbbdbb74 | 57 | Provides: gnome-wm |
c069976a JB |
58 | Obsoletes: metacity-themes-Adwaita < 2:3.24 |
59 | Obsoletes: metacity-themes-AgingGorilla < 2:3.24 | |
60 | Obsoletes: metacity-themes-Atlanta < 2:3.24 | |
61 | Obsoletes: metacity-themes-Bright < 2:3.24 | |
62 | Obsoletes: metacity-themes-Crux < 2:3.24 | |
63 | Obsoletes: metacity-themes-Esco < 2:3.24 | |
64 | Obsoletes: metacity-themes-HighContrast < 2:3.24 | |
65 | Obsoletes: metacity-themes-Metabox < 2:3.24 | |
66 | Obsoletes: metacity-themes-Simple < 2:3.24 | |
87da567d | 67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
68 | ||
3e775fb8 | 69 | %description |
fbbdbb74 | 70 | Metacity is a simple window manager that integrates nicely with GNOME. |
3e775fb8 | 71 | |
20cdb13d | 72 | %description -l pl.UTF-8 |
fbbdbb74 | 73 | Metacity jest prostym zarządcą okien ładnie integrującym się z GNOME. |
f5c269f2 | 74 | |
64890753 | 75 | %package libs |
76 | Summary: Metacity - libraries | |
b07a4285 | 77 | Summary(pl.UTF-8): Metacity - biblioteki |
64890753 | 78 | Group: X11/Libraries |
c069976a | 79 | Requires: glib2 >= 1:2.67.3 |
b475a8ce | 80 | Requires: gtk+3 >= 3.24.6 |
f641de3d | 81 | Requires: pango >= 1:1.2.0 |
7b7119a3 | 82 | Conflicts: metacity <= 2.6.3-4 |
64890753 | 83 | |
84 | %description libs | |
85 | This package contains libraries for Metacity window manager. | |
86 | ||
20cdb13d JR |
87 | %description libs -l pl.UTF-8 |
88 | Pakiet zawierający biblioteki zarządcy okien Metacity. | |
64890753 | 89 | |
ec0e4853 | 90 | %package devel |
64890753 | 91 | Summary: Metacity - header files |
b07a4285 | 92 | Summary(pl.UTF-8): Metacity - pliki nagłówkowe |
ec0e4853 | 93 | Group: X11/Development/Libraries |
c648154c | 94 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
c069976a | 95 | Requires: glib2-devel >= 1:2.67.3 |
b475a8ce | 96 | Requires: gtk+3-devel >= 3.24.6 |
ec0e4853 | 97 | |
98 | %description devel | |
64890753 | 99 | This package contains header files for Metacity window manager. |
ec0e4853 | 100 | |
20cdb13d JR |
101 | %description devel -l pl.UTF-8 |
102 | Pakiet zawierający pliki nagłówkowe zarządcy okien Metacity. | |
ec0e4853 | 103 | |
6268e2de | 104 | %package static |
64890753 | 105 | Summary: Static Metacity library |
b07a4285 | 106 | Summary(pl.UTF-8): Statyczna biblioteka Metacity |
daa3cd9f | 107 | Group: X11/Development/Libraries |
c648154c | 108 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
27b6a9a0 | 109 | |
6268e2de | 110 | %description static |
64890753 | 111 | Static version of Metacity library. |
27b6a9a0 | 112 | |
20cdb13d | 113 | %description static -l pl.UTF-8 |
64890753 | 114 | Statyczna wersja biblioteki Metacity. |
6268e2de | 115 | |
3e775fb8 | 116 | %prep |
117 | %setup -q | |
d88b4f9b | 118 | |
3e775fb8 | 119 | %build |
adac94c5 | 120 | %{__libtoolize} |
d6208c57 | 121 | %{__aclocal} |
efd80e8f | 122 | %{__autoconf} |
921fc781 | 123 | %{__autoheader} |
efd80e8f | 124 | %{__automake} |
f6995a4b | 125 | %configure \ |
f641de3d | 126 | ZENITY=/usr/bin/zenity \ |
b57b30be | 127 | --disable-silent-rules \ |
4c32563a | 128 | %{?with_static_libs:--enable-static} \ |
b57b30be JB |
129 | %{!?with_vulkan:--disable-vulkan} |
130 | ||
f5c269f2 | 131 | %{__make} |
3e775fb8 | 132 | |
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
3e775fb8 | 135 | |
87da567d | 136 | %{__make} install \ |
8272e77e | 137 | DESTDIR=$RPM_BUILD_ROOT |
3e775fb8 | 138 | |
fbbdbb74 | 139 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmetacity.la |
a24b0d49 | 140 | |
f641de3d | 141 | # "metacity" gettext domain, "creating-metacity-themes" help |
a08f3266 | 142 | %find_lang %{name} --with-gnome --all-name |
3e775fb8 | 143 | |
d6f8f681 JB |
144 | %clean |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
7b917c18 | 147 | %post |
1e123a24 | 148 | %glib_compile_schemas |
7b917c18 | 149 | |
1e123a24 JR |
150 | %postun |
151 | %glib_compile_schemas | |
4f26cd94 | 152 | |
1b588999 | 153 | %post libs -p /sbin/ldconfig |
154 | %postun libs -p /sbin/ldconfig | |
bb127988 | 155 | |
87da567d | 156 | %files -f %{name}.lang |
157 | %defattr(644,root,root,755) | |
4c32563a | 158 | %doc AUTHORS NEWS README rationales.txt |
f0d2ab67 MB |
159 | %attr(755,root,root) %{_bindir}/metacity |
160 | %attr(755,root,root) %{_bindir}/metacity-message | |
161 | %attr(755,root,root) %{_bindir}/metacity-theme-viewer | |
4c32563a | 162 | %{_datadir}/glib-2.0/schemas/org.gnome.metacity.enums.xml |
1e123a24 | 163 | %{_datadir}/glib-2.0/schemas/org.gnome.metacity.gschema.xml |
fbbdbb74 MB |
164 | %{_datadir}/glib-2.0/schemas/org.gnome.metacity.keybindings.gschema.xml |
165 | %{_datadir}/glib-2.0/schemas/org.gnome.metacity.theme.gschema.xml | |
3bd51faa | 166 | # package keybindings dir, not to pull optional gnome-control-center dependency |
d103d5a7 | 167 | %dir %{_datadir}/gnome-control-center |
3bd51faa | 168 | %dir %{_datadir}/gnome-control-center/keybindings |
f641de3d | 169 | %{_datadir}/gnome-control-center/keybindings/50-metacity-*.xml |
f641de3d | 170 | %{_desktopdir}/metacity.desktop |
b2d7ea4e | 171 | %{_mandir}/man1/metacity*.1* |
bc1c51e3 | 172 | |
64890753 | 173 | %files libs |
174 | %defattr(644,root,root,755) | |
fbbdbb74 | 175 | %attr(755,root,root) %{_libdir}/libmetacity.so.*.*.* |
4c32563a | 176 | %attr(755,root,root) %ghost %{_libdir}/libmetacity.so.3 |
64890753 | 177 | |
ec0e4853 | 178 | %files devel |
179 | %defattr(644,root,root,755) | |
2dc874c7 | 180 | %doc ChangeLog HACKING doc/dialogs.txt |
fbbdbb74 | 181 | %attr(755,root,root) %{_libdir}/libmetacity.so |
f641de3d | 182 | %{_includedir}/metacity |
fbbdbb74 | 183 | %{_pkgconfigdir}/libmetacity.pc |
6268e2de | 184 | |
4c32563a | 185 | %if %{with static_libs} |
6268e2de | 186 | %files static |
187 | %defattr(644,root,root,755) | |
fbbdbb74 | 188 | %{_libdir}/libmetacity.a |
4c32563a | 189 | %endif |