Accepting request 962641 from GNOME:Factory
OBS-URL: https://build.opensuse.org/request/show/962641 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glib2?expand=0&rev=249
This commit is contained in:
commit
25bfec23b1
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>doc</package>
|
||||||
|
</multibuild>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ab3d176f3115dcc4e5d02db795984e04e4f4b48d836252e23e8c468e9d423c33
|
|
||||||
size 4824296
|
|
3
glib-2.70.5.tar.xz
Normal file
3
glib-2.70.5.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f70bf76ebcc84e0705722f038be8e2f9a58d17e1a700810c635fcc18b8974b7e
|
||||||
|
size 4822784
|
@ -1,3 +1,24 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 17 14:56:29 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Update to version 2.70.5:
|
||||||
|
+ g_time_zone_new_offset() assertion failure if offset >= 25
|
||||||
|
hours.
|
||||||
|
+ glib: fix buffer overflow in g_canonicalize_filename().
|
||||||
|
+ gtimezone: Fix assertion failure when called with a huge
|
||||||
|
offset.
|
||||||
|
+ Updated translations.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 28 18:15:50 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- Split gtk-docs from -devel package, these are not needed
|
||||||
|
during building projects using glib2
|
||||||
|
- Use _multibuild as the meson buildprocess is very awkward
|
||||||
|
regarding the documentation - builds single-jobs only and
|
||||||
|
twice (again during %install). This way the rest of distribution
|
||||||
|
waiting for glib2-devel to be available is not blocked by this
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 11 13:37:10 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
|
Fri Feb 11 13:37:10 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
74
glib2.spec
74
glib2.spec
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package glib2
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
@ -17,9 +17,20 @@
|
|||||||
|
|
||||||
|
|
||||||
%bcond_without systemtap
|
%bcond_without systemtap
|
||||||
%bcond_without gtk_doc
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
Name: glib2
|
%if "%{flavor}" == "doc"
|
||||||
Version: 2.70.4
|
%global psuffix -doc
|
||||||
|
%else
|
||||||
|
%global psuffix %{nil}
|
||||||
|
%endif
|
||||||
|
%define libver 2_0-0
|
||||||
|
%define libgio libgio-%{libver}
|
||||||
|
%define libglib libglib-%{libver}
|
||||||
|
%define libgmodule libgmodule-%{libver}
|
||||||
|
%define libgobject libgobject-%{libver}
|
||||||
|
%define libgthread libgthread-%{libver}
|
||||||
|
Name: glib2%{psuffix}
|
||||||
|
Version: 2.70.5
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: General-Purpose Utility Library
|
Summary: General-Purpose Utility Library
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
@ -47,7 +58,10 @@ Patch2: glib2-suppress-schema-deprecated-path-warning.patch
|
|||||||
Patch3: glib2-dbus-socket-path.patch
|
Patch3: glib2-dbus-socket-path.patch
|
||||||
# PATCH-FIX-OPENSUSE glib2-gdbus-codegen-version.patch olaf@aepfle.de -- Remove version string from files generated by gdbus-codegen
|
# PATCH-FIX-OPENSUSE glib2-gdbus-codegen-version.patch olaf@aepfle.de -- Remove version string from files generated by gdbus-codegen
|
||||||
Patch4: glib2-gdbus-codegen-version.patch
|
Patch4: glib2-gdbus-codegen-version.patch
|
||||||
|
%if "%{flavor}" == "doc"
|
||||||
|
# Split-provides
|
||||||
|
Provides: glib2-devel:%{_datadir}/gtk-doc/html/gobject/index.html
|
||||||
|
%endif
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -65,9 +79,8 @@ BuildRequires: pkgconfig(libffi) >= 3.0.0
|
|||||||
BuildRequires: pkgconfig(libpcre) >= 8.31
|
BuildRequires: pkgconfig(libpcre) >= 8.31
|
||||||
BuildRequires: pkgconfig(mount) >= 2.28
|
BuildRequires: pkgconfig(mount) >= 2.28
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
# gtk-doc requires glib2-devel, but we will only be building this here; break up a cycle
|
%if "%{flavor}" == "doc"
|
||||||
#!BuildIgnore: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
%if %{with gtk_doc}
|
|
||||||
BuildRequires: gtk-doc >= 1.32
|
BuildRequires: gtk-doc >= 1.32
|
||||||
%endif
|
%endif
|
||||||
%if %{with systemtap}
|
%if %{with systemtap}
|
||||||
@ -80,12 +93,9 @@ GLib is a general-purpose utility library, which provides many useful
|
|||||||
data types, macros, type conversions, string utilities, file utilities,
|
data types, macros, type conversions, string utilities, file utilities,
|
||||||
a main loop abstraction, and so on.
|
a main loop abstraction, and so on.
|
||||||
|
|
||||||
%define libver 2_0-0
|
%if %{with doc}
|
||||||
%define libgio libgio-%{libver}
|
This package provides the documentation for the GLib library.
|
||||||
%define libglib libglib-%{libver}
|
%endif
|
||||||
%define libgmodule libgmodule-%{libver}
|
|
||||||
%define libgobject libgobject-%{libver}
|
|
||||||
%define libgthread libgthread-%{libver}
|
|
||||||
|
|
||||||
%package tools
|
%package tools
|
||||||
Summary: Tools from glib2, a general-purpose utility library
|
Summary: Tools from glib2, a general-purpose utility library
|
||||||
@ -269,7 +279,7 @@ sed -i "s/1.32.1/1.32/" docs/reference/meson.build
|
|||||||
--default-library=both \
|
--default-library=both \
|
||||||
-Dselinux=enabled \
|
-Dselinux=enabled \
|
||||||
-Dman=true \
|
-Dman=true \
|
||||||
%if %{with gtk_doc}
|
%if "%{flavor}" == "doc"
|
||||||
-Dgtk_doc=true \
|
-Dgtk_doc=true \
|
||||||
%endif
|
%endif
|
||||||
%if %{with systemtap}
|
%if %{with systemtap}
|
||||||
@ -285,7 +295,9 @@ sed -i "s/1.32.1/1.32/" docs/reference/meson.build
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
|
%if "%{flavor}" == "doc"
|
||||||
|
find %{buildroot}/%{_prefix} -not -path "*%{_datadir}/gtk-doc/*" -delete || :
|
||||||
|
%else
|
||||||
%find_lang glib20 %{?no_lang_C}
|
%find_lang glib20 %{?no_lang_C}
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||||
install -D -m0644 glib2.sh %{buildroot}%{_sysconfdir}/profile.d/zzz-glib2.sh
|
install -D -m0644 glib2.sh %{buildroot}%{_sysconfdir}/profile.d/zzz-glib2.sh
|
||||||
@ -316,7 +328,7 @@ mkdir -p %{buildroot}%{_datadir}/gtk-doc/html
|
|||||||
%fdupes %{buildroot}/%{_prefix}
|
%fdupes %{buildroot}/%{_prefix}
|
||||||
|
|
||||||
# Too many users complain about schemas compiled with wrong permissions
|
# Too many users complain about schemas compiled with wrong permissions
|
||||||
# when in fact the system just honours there umask setting
|
# when in fact the system just honours their umask setting
|
||||||
# subshell restores umask for paranoia mode
|
# subshell restores umask for paranoia mode
|
||||||
%define compile_schemas \
|
%define compile_schemas \
|
||||||
(umask 022 && %{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas)
|
(umask 022 && %{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas)
|
||||||
@ -340,6 +352,7 @@ do mimeapps="%{_localstatedir}/cache/gio-2.0/$ENV-mimeapps.list" &&
|
|||||||
[Default Applications]
|
[Default Applications]
|
||||||
EOF
|
EOF
|
||||||
done
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
### FIXME ### Figure out how to run the "stable tests" only ref info from upstream.
|
### FIXME ### Figure out how to run the "stable tests" only ref info from upstream.
|
||||||
@ -353,6 +366,13 @@ done
|
|||||||
%postun -n %{libgio} -p %{ldconfig}
|
%postun -n %{libgio} -p %{ldconfig}
|
||||||
%postun -n %{libgmodule} -p %{ldconfig}
|
%postun -n %{libgmodule} -p %{ldconfig}
|
||||||
|
|
||||||
|
%if "%{flavor}" == "doc"
|
||||||
|
%files
|
||||||
|
%{_datadir}/gtk-doc/html/gio
|
||||||
|
%{_datadir}/gtk-doc/html/glib
|
||||||
|
%{_datadir}/gtk-doc/html/gobject
|
||||||
|
%else
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_bindir}/gapplication
|
%{_bindir}/gapplication
|
||||||
@ -459,11 +479,6 @@ done
|
|||||||
%dir %{_libdir}/glib-2.0/
|
%dir %{_libdir}/glib-2.0/
|
||||||
%{_libdir}/glib-2.0/include/
|
%{_libdir}/glib-2.0/include/
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%if %{with gtk_doc}
|
|
||||||
%{_datadir}/gtk-doc/html/gio
|
|
||||||
%{_datadir}/gtk-doc/html/glib
|
|
||||||
%{_datadir}/gtk-doc/html/gobject
|
|
||||||
%endif
|
|
||||||
%{_datadir}/gdb/auto-load/%{_libdir}/*-gdb.py
|
%{_datadir}/gdb/auto-load/%{_libdir}/*-gdb.py
|
||||||
%if %{with systemtap}
|
%if %{with systemtap}
|
||||||
%dir %{_datadir}/systemtap
|
%dir %{_datadir}/systemtap
|
||||||
@ -474,15 +489,15 @@ done
|
|||||||
%{_datadir}/systemtap/tapset/*/libgobject-*.so.*.stp
|
%{_datadir}/systemtap/tapset/*/libgobject-*.so.*.stp
|
||||||
%endif
|
%endif
|
||||||
%{_rpmmacrodir}/macros.glib2
|
%{_rpmmacrodir}/macros.glib2
|
||||||
# Own these directories to not avoid breakages throughout the project
|
|
||||||
%dir %{_datadir}/gtk-doc
|
|
||||||
%dir %{_datadir}/gtk-doc/html
|
|
||||||
# Own these directories to avoid build requirement on gdb
|
# Own these directories to avoid build requirement on gdb
|
||||||
# only for directories ownership
|
# only for directories ownership
|
||||||
%dir %{_datadir}/gdb
|
%dir %{_datadir}/gdb
|
||||||
%dir %{_datadir}/gdb/auto-load
|
%dir %{_datadir}/gdb/auto-load
|
||||||
%dir %{_datadir}/gdb/auto-load%{_prefix}
|
%dir %{_datadir}/gdb/auto-load%{_prefix}
|
||||||
%dir %{_datadir}/gdb/auto-load%{_libdir}
|
%dir %{_datadir}/gdb/auto-load%{_libdir}
|
||||||
|
# Own these directories to not avoid breakages throughout the project
|
||||||
|
%dir %{_datadir}/gtk-doc
|
||||||
|
%dir %{_datadir}/gtk-doc/html
|
||||||
|
|
||||||
%files devel-static
|
%files devel-static
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -491,14 +506,13 @@ done
|
|||||||
%files lang -f glib20.lang
|
%files lang -f glib20.lang
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
|
||||||
%define testdir %{_libexecdir}/installed-tests/glib
|
|
||||||
|
|
||||||
%files tests-devel
|
%files tests-devel
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_libexecdir}/installed-tests
|
%{_libexecdir}/installed-tests
|
||||||
%attr(0444 - -) %{testdir}/x-content/win32-software/autorun.exe
|
%attr(0444 - -) %{_libexecdir}/installed-tests/glib/x-content/win32-software/autorun.exe
|
||||||
%attr(0755 - -) %{testdir}/taptestrunner.py
|
%attr(0755 - -) %{_libexecdir}/installed-tests/glib/taptestrunner.py
|
||||||
%attr(0755 - -) %{testdir}/x-content/unix-software/autorun.sh
|
%attr(0755 - -) %{_libexecdir}/installed-tests/glib/x-content/unix-software/autorun.sh
|
||||||
%{_datadir}/installed-tests
|
%{_datadir}/installed-tests
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user