From eafe04a56d5e8bdbcd485302e08d1b27c76e89ea Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Mon, 24 Oct 2022 16:24:31 +0800 Subject: [PATCH] optimise spec file & add doc package --- libmbim.spec | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/libmbim.spec b/libmbim.spec index 9fa67c6..de49233 100644 --- a/libmbim.spec +++ b/libmbim.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Name: libmbim Version: 1.26.2 @@ -21,11 +21,18 @@ BuildRequires: python3 This package contains the libraries that make it easier to use MBIM functionality from applications that use glib. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. %package devel Summary: Header files for adding MBIM support to applications that use glib -Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: glib2-devel%{?_isa} +Requires: %{name} = %{version}-%{release} +Requires: glib2-devel %description devel This package contains the header and pkg-config files for developing @@ -33,7 +40,7 @@ applications using MBIM functionality from applications that use glib. %package utils Summary: Utilities to use the MBIM protocol from the command line -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} License: GPLv2+ %description utils @@ -54,6 +61,7 @@ functionality from the command line. find %{buildroot}%{_datadir}/gtk-doc |xargs touch --reference configure.ac find %{buildroot} -type f -name "*.la" -delete +%generate_compatibility_deps %check make check @@ -63,9 +71,13 @@ make check %files +%dir %{abidir} %license COPYING.LIB -%doc NEWS AUTHORS README %{_libdir}/libmbim-glib.so.4* +%{abidir}/libmbim-glib*.dump + +%files doc +%doc NEWS AUTHORS README %files devel %{_includedir}/libmbim-glib/ @@ -77,11 +89,16 @@ make check %license COPYING %{_bindir}/mbimcli %{_bindir}/mbim-network +%{abidir}/mbimcli-option.list +%{abidir}/mbim-network-option.list %{_datadir}/bash-completion %{_libexecdir}/mbim-proxy %{_mandir}/man1/mbim* %changelog +* Mon Oct 24 2022 mgb01105731 - 1.26.2-2 +- optimise spec file & add doc package + * Tue Mar 08 2022 Jacob Wang - 1.26.2-1 - Initial version from upstream 1.26.2 -- Gitee