]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | %bcond_without gtk3 # legacy libgnome-desktop-3.0 | |
5 | %bcond_without gtk4 # libgnome-*-4 libraries | |
6 | ||
7 | Summary: gnome-desktop library | |
8 | Summary(pl.UTF-8): Biblioteka gnome-desktop | |
9 | Name: gnome-desktop | |
10 | Version: 44.0 | |
11 | Release: 1 | |
12 | License: LGPL v2+ | |
13 | Group: X11/Applications | |
14 | Source0: https://download.gnome.org/sources/gnome-desktop/44/%{name}-%{version}.tar.xz | |
15 | # Source0-md5: 1f0b7281e462d6dfc8d3888fdaafd2ba | |
16 | URL: https://www.gnome.org/ | |
17 | BuildRequires: docbook-dtd412-xml | |
18 | BuildRequires: fontconfig-devel | |
19 | BuildRequires: gdk-pixbuf2-devel >= 2.36.5 | |
20 | BuildRequires: gettext-tools | |
21 | BuildRequires: glib2-devel >= 1:2.54.0 | |
22 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
23 | BuildRequires: gsettings-desktop-schemas-devel >= 3.27.0 | |
24 | %if %{with gtk3} | |
25 | BuildRequires: gtk+3-devel >= 3.4.0 | |
26 | %endif | |
27 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.14} | |
28 | %if %{with gtk4} | |
29 | BuildRequires: gtk4-devel >= 4.4.0 | |
30 | %endif | |
31 | BuildRequires: iso-codes | |
32 | %ifnarch alpha ia64 m68k sh4 sparc sparcv9 sparc64 | |
33 | BuildRequires: libseccomp-devel | |
34 | %endif | |
35 | BuildRequires: libxkbregistry-devel | |
36 | BuildRequires: meson >= 0.56.2 | |
37 | BuildRequires: ninja >= 1.5 | |
38 | BuildRequires: pkgconfig | |
39 | BuildRequires: rpm-build >= 4.6 | |
40 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
41 | BuildRequires: rpmbuild(macros) >= 1.752 | |
42 | BuildRequires: systemd-devel >= 1:209 | |
43 | BuildRequires: tar >= 1:1.22 | |
44 | BuildRequires: udev-devel | |
45 | BuildRequires: xkeyboard-config | |
46 | BuildRequires: xorg-lib-libXext-devel >= 1.1 | |
47 | BuildRequires: xorg-lib-libXrandr-devel >= 1.3 | |
48 | BuildRequires: xz | |
49 | BuildRequires: yelp-tools | |
50 | Requires: gdk-pixbuf2 >= 2.36.5 | |
51 | Requires: glib2 >= 1:2.54.0 | |
52 | Requires: gsettings-desktop-schemas >= 3.27.0 | |
53 | Requires: gtk+3 >= 3.4.0 | |
54 | Requires: iso-codes | |
55 | Requires: xkeyboard-config | |
56 | Requires: xorg-lib-libXext >= 1.1 | |
57 | Requires: xorg-lib-libXrandr >= 1.3 | |
58 | Obsoletes: gnome-desktop-libs < 3.0.0 | |
59 | Obsoletes: gnome-desktop3 < 3.0.0 | |
60 | Obsoletes: gnome-desktop3-libs < 3.0.0 | |
61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
62 | ||
63 | %description | |
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. | |
68 | ||
69 | This package contains gnome-desktop library. | |
70 | ||
71 | %description -l pl.UTF-8 | |
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. | |
77 | ||
78 | Pakiet ten zawiera bibliotekę gnome-desktop. | |
79 | ||
80 | %package devel | |
81 | Summary: GNOME desktop includes | |
82 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GNOME desktop | |
83 | Group: X11/Development/Libraries | |
84 | Requires: %{name} = %{version}-%{release} | |
85 | Requires: glib2-devel >= 1:2.54.0 | |
86 | Requires: gsettings-desktop-schemas-devel >= 3.27.0 | |
87 | Requires: gtk+3-devel >= 3.4.0 | |
88 | Obsoletes: gnome-desktop-static < 3.2.0 | |
89 | Obsoletes: gnome-desktop3-devel < 3.0.0 | |
90 | Obsoletes: gnome-desktop3-static < 3.0.0 | |
91 | ||
92 | %description devel | |
93 | GNOME desktop header files. | |
94 | ||
95 | %description devel -l pl.UTF-8 | |
96 | Pliki nagłówkowe biblioteki GNOME desktop. | |
97 | ||
98 | %package apidocs | |
99 | Summary: gnome-desktop API documentation | |
100 | Summary(pl.UTF-8): Dokumentacja API gnome-desktop | |
101 | Group: Documentation | |
102 | Requires: gtk-doc-common | |
103 | Obsoletes: gnome-desktop3-apidocs < 3.0.0 | |
104 | BuildArch: noarch | |
105 | ||
106 | %description apidocs | |
107 | gnome-desktop API documentation. | |
108 | ||
109 | %description apidocs -l pl.UTF-8 | |
110 | Dokumentacja API gnome-desktop. | |
111 | ||
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 | ||
146 | %prep | |
147 | %setup -q | |
148 | ||
149 | %build | |
150 | %meson build \ | |
151 | --default-library=shared \ | |
152 | %{!?with_gtk4:-Dbuild_gtk4=false} \ | |
153 | %{?with_apidocs:-Dgtk_doc=true} \ | |
154 | %{!?with_gtk3:-Dlegacy_library=false} | |
155 | ||
156 | %ninja_build -C build | |
157 | ||
158 | %install | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
161 | %ninja_install -C build | |
162 | ||
163 | %find_lang %{name} --with-gnome --all-name | |
164 | ||
165 | %clean | |
166 | rm -rf $RPM_BUILD_ROOT | |
167 | ||
168 | %post -p /sbin/ldconfig | |
169 | %postun -p /sbin/ldconfig | |
170 | ||
171 | %post -n gnome-desktop4 -p /sbin/ldconfig | |
172 | %postun -n gnome-desktop4 -p /sbin/ldconfig | |
173 | ||
174 | %files -f %{name}.lang | |
175 | %defattr(644,root,root,755) | |
176 | %doc AUTHORS NEWS README.md | |
177 | %attr(755,root,root) %{_libdir}/libgnome-desktop-3.so.*.*.* | |
178 | %attr(755,root,root) %ghost %{_libdir}/libgnome-desktop-3.so.20 | |
179 | %dir %{_libexecdir}/gnome-desktop-debug | |
180 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/gnome-rr-debug | |
181 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-desktop-thumbnail | |
182 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-idle-monitor | |
183 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-languages | |
184 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-pnp-ids | |
185 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-wall-clock | |
186 | %attr(755,root,root) %{_libexecdir}/gnome-desktop-debug/test-xkb-info | |
187 | %{_libdir}/girepository-1.0/GnomeDesktop-3.0.typelib | |
188 | ||
189 | %files devel | |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_libdir}/libgnome-desktop-3.so | |
192 | %{_datadir}/gir-1.0/GnomeDesktop-3.0.gir | |
193 | %{_includedir}/gnome-desktop-3.0 | |
194 | %{_pkgconfigdir}/gnome-desktop-3.0.pc | |
195 | ||
196 | %if %{with apidocs} | |
197 | %files apidocs | |
198 | %defattr(644,root,root,755) | |
199 | %{_gtkdocdir}/gnome-desktop3 | |
200 | %endif | |
201 | ||
202 | %if %{with gtk4} | |
203 | %files -n gnome-desktop4 | |
204 | %defattr(644,root,root,755) | |
205 | %{_libdir}/girepository-1.0/GnomeBG-4.0.typelib | |
206 | %{_libdir}/girepository-1.0/GnomeDesktop-4.0.typelib | |
207 | %{_libdir}/girepository-1.0/GnomeRR-4.0.typelib | |
208 | %attr(755,root,root) %{_libdir}/libgnome-bg-4.so.*.*.* | |
209 | %attr(755,root,root) %ghost %{_libdir}/libgnome-bg-4.so.2 | |
210 | %attr(755,root,root) %{_libdir}/libgnome-desktop-4.so.*.*.* | |
211 | %attr(755,root,root) %ghost %{_libdir}/libgnome-desktop-4.so.2 | |
212 | %attr(755,root,root) %{_libdir}/libgnome-rr-4.so.*.*.* | |
213 | %attr(755,root,root) %ghost %{_libdir}/libgnome-rr-4.so.2 | |
214 | ||
215 | %files -n gnome-desktop4-devel | |
216 | %defattr(644,root,root,755) | |
217 | %attr(755,root,root) %{_libdir}/libgnome-bg-4.so | |
218 | %attr(755,root,root) %{_libdir}/libgnome-desktop-4.so | |
219 | %attr(755,root,root) %{_libdir}/libgnome-rr-4.so | |
220 | %{_datadir}/gir-1.0/GnomeBG-4.0.gir | |
221 | %{_datadir}/gir-1.0/GnomeDesktop-4.0.gir | |
222 | %{_datadir}/gir-1.0/GnomeRR-4.0.gir | |
223 | %{_includedir}/gnome-desktop-4.0 | |
224 | %{_pkgconfigdir}/gnome-bg-4.pc | |
225 | %{_pkgconfigdir}/gnome-desktop-4.pc | |
226 | %{_pkgconfigdir}/gnome-rr-4.pc | |
227 | %endif |