diff --git a/pykickstart.spec b/pykickstart.spec new file mode 100644 index 0000000000000000000000000000000000000000..1d6706b0a6586b0917071ccb5e75d75f8c7dc1ed --- /dev/null +++ b/pykickstart.spec @@ -0,0 +1,75 @@ +# Disable tests by default because they fail to run inside mock builds +# at the moment, but can run locally. To build and run tests, do: +# rpmbuild -ba --with runtests pykickstart.spec +%bcond_with runtests +%define anolis_release 1 + +Name: pykickstart +Version: 3.37 +Release: %{anolis_release}%{?dist} +Summary: Python utilities for manipulating kickstart files. + +License: GPLv2 and MIT +URL: https://github.com/pykickstart/pykickstart/ +Source0: https://github.com/pykickstart/pykickstart/archive/refs/tags/r3.37.tar.gz + +BuildArch: noarch + +BuildRequires: gettext +BuildRequires: python3-devel +BuildRequires: python3-requests +BuildRequires: python3-setuptools +BuildRequires: make +# The coverage and sphinx required when building with runtests +%if %{with runtests} +BuildRequires: python3-coverage +BuildRequires: python3-sphinx +%endif + +Requires: python3-kickstart = %{version}-%{release} + +%description +python module for parsing and writing kickstart configs. + +%package -n python3-kickstart +Summary: Python 3 library for manipulating kickstart files. +Requires: python3-requests + +%description -n python3-kickstart +Python 3 library for manipulating kickstart files. The binaries are found in +the pykickstart package. + +%prep +%autosetup -n %{name}-r%{version} -p1 + +%build +make PYTHON=%{__python3} + +%install +make PYTHON=%{__python3} DESTDIR=%{buildroot} install + +%check +%if %{with runtests} +make PYTHON=%{__python3} test +%endif + +%files +%license COPYING +%doc README.rst data/kickstart.vim +%{_bindir}/ksvalidator +%{_bindir}/ksflatten +%{_bindir}/ksverdiff +%{_bindir}/ksshell +%{_mandir}/man1/ksflatten.1.gz +%{_mandir}/man1/ksshell.1.gz +%{_mandir}/man1/ksvalidator.1.gz +%{_mandir}/man1/ksverdiff.1.gz + +%files -n python3-kickstart +%doc docs/2to3 docs/programmers-guide docs/kickstart-docs.rst +%{python3_sitelib}/pykickstart +%{python3_sitelib}/pykickstart*.egg-info + +%changelog +* Wed Apr 13 2022 happy_orange 3.37-1 +- Init package from upstream v3.37 diff --git a/r3.37.tar.gz b/r3.37.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f533b7fede7d98141679c51c8a28d98a64ab1338 Binary files /dev/null and b/r3.37.tar.gz differ