diff --git a/python-simpleline.spec b/python-simpleline.spec index 993ea0fc1d020a07221b0cc93877d99628879495..96a234819e96f60df71969d44ebac8109b1186a8 100644 --- a/python-simpleline.spec +++ b/python-simpleline.spec @@ -1,10 +1,12 @@ +%define anolis_release .0.1 + %global srcname simpleline Name: python-%{srcname} Summary: A Python library for creating text UI Url: https://github.com/rhinstaller/python-%{srcname} Version: 1.1.1 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} # This tarball was created from upstream git: # git clone https://github.com/rhinstaller/python-simpleline # cd python-simpleline && make archive @@ -39,6 +41,14 @@ and tools (e.g. serial console) so that every new line is appended to the bottom of the screen. Printed lines are never rewritten! +%package -n python3-%{srcname}-doc +Summary: Documents for %{name} +Requires: python3-%{srcname} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description -n python3-%{srcname}-doc +Doc pages for %{name}. + %prep %setup -q -n %{srcname}-%{version} @@ -55,10 +65,15 @@ make test %files -n python3-%{srcname} -f python-%{srcname}.lang %license COPYING -%doc ChangeLog README.md %{python3_sitelib}/* +%files -n python3-%{srcname}-doc +%doc ChangeLog README.md + %changelog +* Wed Jul 20 2022 DengXiewei - 1.1.1-2.0.1 +- Add doc sub package + * Tue Aug 11 2020 Jiri Konecny - 1.1.1-2 - Fix file extension of gating.yaml