]>
Commit | Line | Data |
---|---|---|
69c404c9 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
9fcab692 JB |
4 | %bcond_without gtk3 # legacy libgnome-desktop-3.0 |
5 | %bcond_without gtk4 # libgnome-*-4 libraries | |
69c404c9 | 6 | |
7b4050d0 MB |
7 | Summary: gnome-desktop library |
8 | Summary(pl.UTF-8): Biblioteka gnome-desktop | |
39416a2d | 9 | Name: gnome-desktop |
9fcab692 | 10 | Version: 42.0 |
88f3ab1e | 11 | Release: 1 |
ef2022b0 | 12 | License: LGPL v2+ |
39416a2d | 13 | Group: X11/Applications |
9fcab692 JB |
14 | Source0: https://download.gnome.org/sources/gnome-desktop/42/%{name}-%{version}.tar.xz |
15 | # Source0-md5: 8a8e35df8e37538b375993a22264c300 | |
b939d895 | 16 | URL: https://www.gnome.org/ |
6a7aec71 | 17 | BuildRequires: docbook-dtd412-xml |
69c404c9 | 18 | BuildRequires: fontconfig-devel |
42f57261 | 19 | BuildRequires: gdk-pixbuf2-devel >= 2.36.5 |
c1c6697b | 20 | BuildRequires: gettext-tools |
5c141838 | 21 | BuildRequires: glib2-devel >= 1:2.54.0 |
7b4050d0 | 22 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
22b8704d | 23 | BuildRequires: gsettings-desktop-schemas-devel >= 3.27.0 |
9fcab692 | 24 | %if %{with gtk3} |
ba3eaba3 | 25 | BuildRequires: gtk+3-devel >= 3.4.0 |
9fcab692 | 26 | %endif |
69c404c9 | 27 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.14} |
9fcab692 JB |
28 | %if %{with gtk4} |
29 | BuildRequires: gtk4-devel >= 4.4.0 | |
30 | %endif | |
8c334cf7 | 31 | BuildRequires: iso-codes |
7af78106 | 32 | %ifnarch alpha ia64 m68k sh4 sparc sparcv9 sparc64 |
5c141838 | 33 | BuildRequires: libseccomp-devel |
1dcc5bf0 | 34 | %endif |
7af78106 | 35 | BuildRequires: libxkbregistry-devel |
9fcab692 | 36 | BuildRequires: meson >= 0.56.2 |
9f33fc61 | 37 | BuildRequires: ninja >= 1.5 |
8d23132e | 38 | BuildRequires: pkgconfig |
7af78106 | 39 | BuildRequires: rpm-build >= 4.6 |
a477735f | 40 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
40432a99 | 41 | BuildRequires: rpmbuild(macros) >= 1.752 |
d7053aa2 | 42 | BuildRequires: systemd-devel >= 1:209 |
82c10b9f | 43 | BuildRequires: tar >= 1:1.22 |
a04979ae | 44 | BuildRequires: udev-devel |
8c334cf7 | 45 | BuildRequires: xkeyboard-config |
5e20210b | 46 | BuildRequires: xorg-lib-libXext-devel >= 1.1 |
ba3eaba3 | 47 | BuildRequires: xorg-lib-libXrandr-devel >= 1.3 |
82c10b9f | 48 | BuildRequires: xz |
6dea12b7 | 49 | BuildRequires: yelp-tools |
42f57261 | 50 | Requires: gdk-pixbuf2 >= 2.36.5 |
5c141838 | 51 | Requires: glib2 >= 1:2.54.0 |
22b8704d | 52 | Requires: gsettings-desktop-schemas >= 3.27.0 |
ba3eaba3 | 53 | Requires: gtk+3 >= 3.4.0 |
a3c7d4df JB |
54 | Requires: iso-codes |
55 | Requires: xkeyboard-config | |
cc7148bb JB |
56 | Requires: xorg-lib-libXext >= 1.1 |
57 | Requires: xorg-lib-libXrandr >= 1.3 | |
dbe86deb JB |
58 | Obsoletes: gnome-desktop-libs < 3.0.0 |
59 | Obsoletes: gnome-desktop3 < 3.0.0 | |
60 | Obsoletes: gnome-desktop3-libs < 3.0.0 | |
1596f461 | 61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39416a2d | 62 | |
39416a2d | 63 | %description |
172334a8 MB |
64 | GNOME (GNU Network Object Model Environment) is a user-friendly set of |
65 | applications and desktop tools to be used in conjunction with a window | |
66 | manager for the X Window System. GNOME is similar in purpose and scope | |
67 | to CDE and KDE, but GNOME is based completely on free software. | |
39416a2d | 68 | |
7b4050d0 | 69 | This package contains gnome-desktop library. |
39416a2d | 70 | |
f8781591 | 71 | %description -l pl.UTF-8 |
172334a8 MB |
72 | GNOME (GNU Network Object Model Environment) jest zestawem przyjaznych |
73 | dla użytkownika programów i narzędzi biurkowych, których używa się | |
74 | wraz z zarządcą okien systemu X Window. GNOME przypomina wyglądem i | |
75 | zakresem funkcjonalności CDE i KDE, jednak GNOME opiera się w całości | |
76 | na wolnym oprogramowaniu. | |
75fd44a6 | 77 | |
f8781591 | 78 | Pakiet ten zawiera bibliotekę gnome-desktop. |
75fd44a6 | 79 | |
39416a2d | 80 | %package devel |
5d84d6e6 | 81 | Summary: GNOME desktop includes |
7b4050d0 | 82 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNOME desktop |
c7e8dd7f | 83 | Group: X11/Development/Libraries |
7b4050d0 | 84 | Requires: %{name} = %{version}-%{release} |
5c141838 | 85 | Requires: glib2-devel >= 1:2.54.0 |
22b8704d | 86 | Requires: gsettings-desktop-schemas-devel >= 3.27.0 |
ba3eaba3 | 87 | Requires: gtk+3-devel >= 3.4.0 |
dbe86deb JB |
88 | Obsoletes: gnome-desktop-static < 3.2.0 |
89 | Obsoletes: gnome-desktop3-devel < 3.0.0 | |
90 | Obsoletes: gnome-desktop3-static < 3.0.0 | |
39416a2d | 91 | |
92 | %description devel | |
5d84d6e6 | 93 | GNOME desktop header files. |
a79e7959 | 94 | |
f8781591 | 95 | %description devel -l pl.UTF-8 |
7b4050d0 | 96 | Pliki nagłówkowe biblioteki GNOME desktop. |
39416a2d | 97 | |
b33a78af | 98 | %package apidocs |
99 | Summary: gnome-desktop API documentation | |
5b16d880 | 100 | Summary(pl.UTF-8): Dokumentacja API gnome-desktop |
b33a78af | 101 | Group: Documentation |
102 | Requires: gtk-doc-common | |
dbe86deb | 103 | Obsoletes: gnome-desktop3-apidocs < 3.0.0 |
8688ea66 | 104 | BuildArch: noarch |
b33a78af | 105 | |
106 | %description apidocs | |
107 | gnome-desktop API documentation. | |
108 | ||
f8781591 | 109 | %description apidocs -l pl.UTF-8 |
b33a78af | 110 | Dokumentacja API gnome-desktop. |
111 | ||
9fcab692 JB |
112 | %package -n gnome-desktop4 |
113 | Summary: gnome-desktop 4 libraries | |
114 | Summary(pl.UTF-8): Biblioteki gnome-desktop 4 | |
115 | Group: Libraries | |
116 | ||
117 | %description -n gnome-desktop4 | |
118 | GNOME (GNU Network Object Model Environment) is a user-friendly set of | |
119 | applications and desktop tools to be used in conjunction with a window | |
120 | manager for the X Window System. GNOME is similar in purpose and scope | |
121 | to CDE and KDE, but GNOME is based completely on free software. | |
122 | ||
123 | This package contains gnome-desktop 4 libraries. | |
124 | ||
125 | %description -n gnome-desktop4 -l pl.UTF-8 | |
126 | GNOME (GNU Network Object Model Environment) jest zestawem przyjaznych | |
127 | dla użytkownika programów i narzędzi biurkowych, których używa się | |
128 | wraz z zarządcą okien systemu X Window. GNOME przypomina wyglądem i | |
129 | zakresem funkcjonalności CDE i KDE, jednak GNOME opiera się w całości | |
130 | na wolnym oprogramowaniu. | |
131 | ||
132 | Pakiet ten zawiera biblioteki gnome-desktop 4. | |
133 | ||
134 | %package -n gnome-desktop4-devel | |
135 | Summary: GNOME desktop 4 includes | |
136 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek GNOME desktop 4 | |
137 | Group: Development/Libraries | |
138 | Requires: gnome-desktop4 = %{version}-%{release} | |
139 | ||
140 | %description -n gnome-desktop4-devel | |
141 | GNOME desktop 4 includes. | |
142 | ||
143 | %description -n gnome-desktop4-devel -l pl.UTF-8 | |
144 | Pliki nagłówkowe bibliotek GNOME desktop 4. | |
145 | ||
39416a2d | 146 | %prep |
147 | %setup -q | |
a477735f | 148 | |
39416a2d | 149 | %build |
22b8704d JB |
150 | %meson build \ |
151 | --default-library=shared \ | |
9fcab692 | 152 | %{!?with_gtk4:-Dbuild_gtk4=false} \ |
22b8704d | 153 | -Dgnome_distributor="PLD Linux Distribution" \ |
9fcab692 JB |
154 | %{?with_apidocs:-Dgtk_doc=true} \ |
155 | %{!?with_gtk3:-Dlegacy_library=false} | |
22b8704d JB |
156 | |
157 | %ninja_build -C build | |
39416a2d | 158 | |
159 | %install | |
160 | rm -rf $RPM_BUILD_ROOT | |
2bbf3d66 | 161 | |
22b8704d | 162 | %ninja_install -C build |
e2506272 | 163 | |
ada8038c | 164 | %find_lang %{name} --with-gnome --all-name |
39416a2d | 165 | |
166 | %clean | |
b7c2ac46 | 167 | rm -rf $RPM_BUILD_ROOT |
39416a2d | 168 | |
85dc4c99 ER |
169 | %post -p /sbin/ldconfig |
170 | %postun -p /sbin/ldconfig | |
39416a2d | 171 | |
172 | %files -f %{name}.lang | |
173 | %defattr(644,root,root,755) | |
7af78106 | 174 | %doc AUTHORS NEWS README.md |
7b4050d0 | 175 | %attr(755,root,root) %{_libdir}/libgnome-desktop-3.so.*.*.* |
d7053aa2 | 176 | %attr(755,root,root) %ghost %{_libdir}/libgnome-desktop-3.so.19 |
7af78106 JB |
177 | %dir %{_libexecdir}/gnome-desktop-debug |
178 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/gnome-rr-debug | |
179 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-desktop-thumbnail | |
180 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-idle-monitor | |
181 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-languages | |
182 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-pnp-ids | |
183 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-wall-clock | |
184 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-xkb-info | |
7b4050d0 | 185 | %{_datadir}/gnome/gnome-version.xml |
7b4050d0 | 186 | %{_libdir}/girepository-1.0/GnomeDesktop-3.0.typelib |
5d84d6e6 | 187 | |
39416a2d | 188 | %files devel |
189 | %defattr(644,root,root,755) | |
7b4050d0 | 190 | %attr(755,root,root) %{_libdir}/libgnome-desktop-3.so |
9fcab692 | 191 | %{_datadir}/gir-1.0/GnomeDesktop-3.0.gir |
7b4050d0 MB |
192 | %{_includedir}/gnome-desktop-3.0 |
193 | %{_pkgconfigdir}/gnome-desktop-3.0.pc | |
39416a2d | 194 | |
69c404c9 | 195 | %if %{with apidocs} |
b33a78af | 196 | %files apidocs |
197 | %defattr(644,root,root,755) | |
7b4050d0 | 198 | %{_gtkdocdir}/gnome-desktop3 |
69c404c9 | 199 | %endif |
9fcab692 JB |
200 | |
201 | %if %{with gtk4} | |
202 | %files -n gnome-desktop4 | |
203 | %defattr(644,root,root,755) | |
204 | %{_libdir}/girepository-1.0/GnomeBG-4.0.typelib | |
205 | %{_libdir}/girepository-1.0/GnomeDesktop-4.0.typelib | |
206 | %{_libdir}/girepository-1.0/GnomeRR-4.0.typelib | |
207 | %attr(755,root,root) %{_libdir}/libgnome-bg-4.so.1.2.1 | |
208 | %attr(755,root,root) %ghost %{_libdir}/libgnome-bg-4.so.1 | |
209 | %attr(755,root,root) %{_libdir}/libgnome-desktop-4.so.1.2.1 | |
210 | %attr(755,root,root) %ghost %{_libdir}/libgnome-desktop-4.so.1 | |
211 | %attr(755,root,root) %{_libdir}/libgnome-rr-4.so.1.2.1 | |
212 | %attr(755,root,root) %ghost %{_libdir}/libgnome-rr-4.so.1 | |
213 | ||
214 | %files -n gnome-desktop4-devel | |
215 | %defattr(644,root,root,755) | |
216 | %attr(755,root,root) %{_libdir}/libgnome-bg-4.so | |
217 | %attr(755,root,root) %{_libdir}/libgnome-desktop-4.so | |
218 | %attr(755,root,root) %{_libdir}/libgnome-rr-4.so | |
219 | %{_datadir}/gir-1.0/GnomeBG-4.0.gir | |
220 | %{_datadir}/gir-1.0/GnomeDesktop-4.0.gir | |
221 | %{_datadir}/gir-1.0/GnomeRR-4.0.gir | |
222 | %{_includedir}/gnome-desktop-4.0 | |
223 | %{_pkgconfigdir}/gnome-bg-4.pc | |
224 | %{_pkgconfigdir}/gnome-desktop-4.pc | |
225 | %{_pkgconfigdir}/gnome-rr-4.pc | |
226 | %endif |