From 191e83b60d845a2f1bca42ab62d1e1012696cac2 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Mon, 10 Oct 2022 11:12:00 +0800 Subject: [PATCH] add doc package --- libcloudproviders.spec | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/libcloudproviders.spec b/libcloudproviders.spec index 1c49810..34d0135 100644 --- a/libcloudproviders.spec +++ b/libcloudproviders.spec @@ -1,9 +1,11 @@ +%define anolis_release 2 + %global api_version 0.3 Name: libcloudproviders Summary: Library for integration of cloud storage providers Version: 0.3.1 -Release: 1%{?dist} +Release: %{anolis_release}%{?dist} License: LGPLv3+ URL: https://gitlab.gnome.org/World/libcloudproviders @@ -22,10 +24,17 @@ BuildRequires: pkgconfig(gobject-introspection-1.0) Cross desktop library for desktop integration of cloud storage providers and sync tools. - +%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: Development files for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for @@ -43,12 +52,14 @@ developing applications that use %{name}. %meson_install %files -%doc CHANGELOG README.md %license LICENSE %{_libdir}/%{name}.so.0* %{_libdir}/girepository-1.0/CloudProviders-%{api_version}.typelib - + +%files doc +%doc CHANGELOG README.md + %files devel %{_includedir}/cloudproviders/ @@ -61,5 +72,8 @@ developing applications that use %{name}. %changelog +* Mon Oct 10 2022 mgb01105731 - 0.3.1-2 +- add doc package + * Tue May 10 2022 gaochang - 0.3.1-1 - Init from upstream 0.3.1 -- Gitee