forked from pool/python-pykickstart
* Do some workflow maintenance * Add RHEL 10 handler to master branch * Add Fedora 41 support * Update kickstart-docs.rst * Add missing rhsm and syspurpose commands - update to 3.47: * displaymode: Update description to describe behavior * network: Move new options to Fedora 39 - update to 3.46: * Add conflict test between ostree sources * Fix missing seen check for output generation * Add new ostreecontainer command * Check the conflicting commands automatically (vponcova) * Fix tests for conflicting commands (vponcova) * Add conflicting commands support (bcl) * Fix handling of package section arguments in older versions - update to 3.45: * Don't allow to use --sdboot and --extlinux together * tests: add bootloader sdboot option (jeremy.linton) * bootloader: Add systemd-boot support with --sdboot * Add %changelog section to pykickstart.spec.in (jkonecny) * Do not request sign for rc-release Makefile target (jkonecny) * Do not require SPECFILE for rc-release (jkonecny) * Add missing docs copy to scratch Makefile (jkonecny) * Add support for Fedora 39 (vslavik) - Update to version 3.34 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykickstart?expand=0&rev=11
108 lines
3.5 KiB
RPMSpec
108 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package python-pykickstart
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2020 Neal Gompa <ngompa13@gmail.com>.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global mod_name pykickstart
|
|
|
|
# Python 2 isn't supported...
|
|
%global skip_python2 1
|
|
|
|
Name: python-%{mod_name}
|
|
Version: 3.53
|
|
Release: 0
|
|
Summary: Python module for parsing and writing kickstart files
|
|
Group: Development/Libraries/Python
|
|
License: GPL-2.0-only AND MIT
|
|
URL: http://fedoraproject.org/wiki/pykickstart
|
|
Source0: https://github.com/pykickstart/pykickstart/releases/download/r%{version}/%{mod_name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: gettext
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-requests
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
Pykickstart is a Python library consisting of a data representation
|
|
of kickstart files, a parser to read files into that representation,
|
|
and a writer to generate kickstart files.
|
|
|
|
%prep
|
|
%autosetup -n %{mod_name}-%{version} -p1
|
|
|
|
%build
|
|
# Build all the translations and such
|
|
%make_build PYTHON=%{__python3}
|
|
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/ksflatten
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/ksflatten.1
|
|
%python_clone -a %{buildroot}%{_bindir}/ksshell
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/ksshell.1
|
|
%python_clone -a %{buildroot}%{_bindir}/ksvalidator
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/ksvalidator.1
|
|
%python_clone -a %{buildroot}%{_bindir}/ksverdiff
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/ksverdiff.1
|
|
|
|
%check
|
|
%python_expand PYTHONPATH=.. $python -m unittest discover -v
|
|
|
|
%post
|
|
%python_install_alternative ksflatten ksflatten.1%{?ext_man}
|
|
%python_install_alternative ksshell ksshell.1%{?ext_man}
|
|
%python_install_alternative ksvalidator ksvalidator.1%{?ext_man}
|
|
%python_install_alternative ksverdiff ksverdiff.1%{?ext_man}
|
|
|
|
%postun
|
|
%python_uninstall_alternative ksflatten ksflatten.1%{?ext_man}
|
|
%python_uninstall_alternative ksshell ksshell.1%{?ext_man}
|
|
%python_uninstall_alternative ksvalidator ksvalidator.1%{?ext_man}
|
|
%python_uninstall_alternative ksverdiff ksverdiff.1%{?ext_man}
|
|
|
|
%files %{python_files}
|
|
%license COPYING
|
|
%doc README.rst
|
|
%doc data/kickstart.vim
|
|
%doc docs/2to3
|
|
%doc docs/programmers-guide
|
|
%doc docs/kickstart-docs.txt
|
|
%{python_sitelib}/%{mod_name}/
|
|
%{python_sitelib}/%{mod_name}-*
|
|
%python_alternative %{_bindir}/ksflatten
|
|
%python_alternative %{_mandir}/man1/ksflatten.1%{?ext_man}
|
|
%python_alternative %{_bindir}/ksshell
|
|
%python_alternative %{_mandir}/man1/ksshell.1%{?ext_man}
|
|
%python_alternative %{_bindir}/ksvalidator
|
|
%python_alternative %{_mandir}/man1/ksvalidator.1%{?ext_man}
|
|
%python_alternative %{_bindir}/ksverdiff
|
|
%python_alternative %{_mandir}/man1/ksverdiff.1%{?ext_man}
|
|
|
|
%changelog
|