separate the test and static package from devel package

This commit is contained in:
han_hui_hui 2022-11-09 11:20:02 +00:00
parent 25c84d5f22
commit 6697f3bad5

View File

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