diff --git a/glib2.spec b/glib2.spec index 4cd535e04aa937e4d25167d6b4c9809a80e45480..668436abf18091f7e0741107e78d0859f95d87c4 100644 --- a/glib2.spec +++ b/glib2.spec @@ -1,6 +1,6 @@ Name: glib2 Version: 2.72.2 -Release: 4 +Release: 5 Summary: The core library that forms the basis for projects such as GTK+ and GNOME License: LGPLv2+ URL: http://www.gtk.org @@ -83,17 +83,31 @@ from GTK, so it can be used by software other than GNOME and has been developed in parallel ever since. %package devel -Summary: Development and test files for the GLib library +Summary: Development for the GLib library Requires: %{name} = %{version}-%{release} Requires: gdb-headless +%description devel +Development for the GLib library. + +%package static +Summary: glib static +Requires: %{name}-devel = %{version}-%{release} Provides: %{name}-static = %{version}-%{release} -Provides: %{name}-tests = %{version}-%{release} Obsoletes: %{name}-static < %{version}-%{release} + +%description static +The %{name}-static subpackage contains libraries for %{name}. + +%package tests +Summary: Tests for the glib2 package +Requires: %{name}-devel = %{version}-%{release} +Provides: %{name}-tests = %{version}-%{release} Obsoletes: %{name}-tests < %{version}-%{release} -%description devel -Development and test files for the GLib library. +%description tests +The glib2-tests package contains tests that can be used to verify +the functionality of the installed package. %ifnarch i686 %package help @@ -192,11 +206,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %{_libdir}/lib*.so %{_libdir}/glib-2.0 %{_libdir}/pkgconfig/* -%{_libdir}/*.a %{_includedir}/* -%{_libexecdir}/installed-tests -%exclude %{_libexecdir}/installed-tests/glib/cert-tests -%exclude %{_libexecdir}/installed-tests/glib/tls-certificate %{_datadir}/aclocal/* %{_datadir}/glib-2.0/* @@ -204,8 +214,6 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %{_datadir}/gdb/auto-load/%{_libdir}/*-gdb.py %{_datadir}/gettext/ %{_datadir}/systemtap/ -%{_datadir}/installed-tests -%exclude %{_datadir}/installed-tests/glib/tls-certificate.test %{_bindir}/glib-genmarshal %{_bindir}/glib-gettextize @@ -217,6 +225,17 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %{_bindir}/gresource %attr (0755, root, root) %{_bindir}/gtester-report +%files static +%{_libdir}/*.a + +%files tests +%{_libexecdir}/installed-tests +%exclude %{_libexecdir}/installed-tests/glib/cert-tests +%exclude %{_libexecdir}/installed-tests/glib/tls-certificate + +%{_datadir}/installed-tests +%exclude %{_datadir}/installed-tests/glib/tls-certificate.test + %ifnarch i686 %files help %defattr(-,root,root) @@ -225,6 +244,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : %endif %changelog +* Wed Nov 9 2022 hanhuihui - 2.72.2-5 +- separate the test and static package from devel package + * Sat Oct 15 2022 hanhuihui - 2.72.2-4 - backport some patches from community