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