]>
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 |
5a612fd2 | 8 | Version: 40.1 |
88f3ab1e | 9 | Release: 1 |
ef2022b0 | 10 | License: LGPL v2+ |
39416a2d | 11 | Group: X11/Applications |
7af78106 | 12 | Source0: https://download.gnome.org/sources/gnome-desktop/40/%{name}-%{version}.tar.xz |
5a612fd2 | 13 | # Source0-md5: 7c1bbf39197e9809ad82b8563cfc172e |
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 | |
7b4050d0 MB |
51 | Obsoletes: gnome-desktop-libs |
52 | Obsoletes: gnome-desktop3 | |
53 | Obsoletes: gnome-desktop3-libs | |
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 |
7b4050d0 | 81 | Obsoletes: gnome-desktop3-devel |
39416a2d | 82 | |
83 | %description devel | |
5d84d6e6 | 84 | GNOME desktop header files. |
a79e7959 | 85 | |
f8781591 | 86 | %description devel -l pl.UTF-8 |
7b4050d0 | 87 | Pliki nagłówkowe biblioteki GNOME desktop. |
39416a2d | 88 | |
b33a78af | 89 | %package apidocs |
90 | Summary: gnome-desktop API documentation | |
5b16d880 | 91 | Summary(pl.UTF-8): Dokumentacja API gnome-desktop |
b33a78af | 92 | Group: Documentation |
93 | Requires: gtk-doc-common | |
7b4050d0 | 94 | Obsoletes: gnome-desktop3-apidocs |
8688ea66 | 95 | BuildArch: noarch |
b33a78af | 96 | |
97 | %description apidocs | |
98 | gnome-desktop API documentation. | |
99 | ||
f8781591 | 100 | %description apidocs -l pl.UTF-8 |
b33a78af | 101 | Dokumentacja API gnome-desktop. |
102 | ||
39416a2d | 103 | %prep |
104 | %setup -q | |
a477735f | 105 | |
39416a2d | 106 | %build |
22b8704d JB |
107 | %meson build \ |
108 | --default-library=shared \ | |
109 | -Dgnome_distributor="PLD Linux Distribution" \ | |
69c404c9 | 110 | %{?with_apidocs:-Dgtk_doc=true} |
22b8704d JB |
111 | |
112 | %ninja_build -C build | |
39416a2d | 113 | |
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
2bbf3d66 | 116 | |
22b8704d | 117 | %ninja_install -C build |
e2506272 | 118 | |
ada8038c | 119 | %find_lang %{name} --with-gnome --all-name |
39416a2d | 120 | |
121 | %clean | |
b7c2ac46 | 122 | rm -rf $RPM_BUILD_ROOT |
39416a2d | 123 | |
85dc4c99 ER |
124 | %post -p /sbin/ldconfig |
125 | %postun -p /sbin/ldconfig | |
39416a2d | 126 | |
127 | %files -f %{name}.lang | |
128 | %defattr(644,root,root,755) | |
7af78106 | 129 | %doc AUTHORS NEWS README.md |
7b4050d0 | 130 | %attr(755,root,root) %{_libdir}/libgnome-desktop-3.so.*.*.* |
d7053aa2 | 131 | %attr(755,root,root) %ghost %{_libdir}/libgnome-desktop-3.so.19 |
7af78106 JB |
132 | %dir %{_libexecdir}/gnome-desktop-debug |
133 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/gnome-rr-debug | |
134 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-desktop-thumbnail | |
135 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-idle-monitor | |
136 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-languages | |
137 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-pnp-ids | |
138 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-wall-clock | |
139 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-xkb-info | |
7b4050d0 | 140 | %{_datadir}/gnome/gnome-version.xml |
7b4050d0 | 141 | %{_libdir}/girepository-1.0/GnomeDesktop-3.0.typelib |
5d84d6e6 | 142 | |
39416a2d | 143 | %files devel |
144 | %defattr(644,root,root,755) | |
7b4050d0 MB |
145 | %attr(755,root,root) %{_libdir}/libgnome-desktop-3.so |
146 | %{_includedir}/gnome-desktop-3.0 | |
147 | %{_pkgconfigdir}/gnome-desktop-3.0.pc | |
148 | %{_datadir}/gir-1.0/GnomeDesktop-3.0.gir | |
39416a2d | 149 | |
69c404c9 | 150 | %if %{with apidocs} |
b33a78af | 151 | %files apidocs |
152 | %defattr(644,root,root,755) | |
7b4050d0 | 153 | %{_gtkdocdir}/gnome-desktop3 |
69c404c9 | 154 | %endif |