From 4b5b7f36617ea2fc57e196ec3e8328af3ed094cf842b619794e558fc06d30bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 20 May 2020 12:46:55 +0000 Subject: [PATCH] Accepting request 807720 from home:Pharaoh_Atem:SUSE_LiveCDTools Initial package for openSUSE OBS-URL: https://build.opensuse.org/request/show/807720 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykickstart?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + pykickstart-3.25.tar.gz | 3 ++ python-pykickstart.changes | 23 ++++++++++ python-pykickstart.spec | 88 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 138 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pykickstart-3.25.tar.gz create mode 100644 python-pykickstart.changes create mode 100644 python-pykickstart.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pykickstart-3.25.tar.gz b/pykickstart-3.25.tar.gz new file mode 100644 index 0000000..597844f --- /dev/null +++ b/pykickstart-3.25.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eeeba87ec8d98488ae02203b75a12021f4992b683d7324e7722e5ef1e4eb4b4a +size 694551 diff --git a/python-pykickstart.changes b/python-pykickstart.changes new file mode 100644 index 0000000..94955d1 --- /dev/null +++ b/python-pykickstart.changes @@ -0,0 +1,23 @@ +------------------------------------------------------------------- +Wed May 20 12:38:46 UTC 2020 - Neal Gompa + +- Drop unused nose and coverage test dependencies +- Drop unused Sphinx dependency for docs + +------------------------------------------------------------------- +Mon Apr 20 14:11:36 UTC 2020 - Neal Gompa + +- Sync disable for running tests in package builds from Fedora + +------------------------------------------------------------------- +Mon Apr 20 13:25:03 UTC 2020 - Neal Gompa + +- Update to version 3.25 + + Add Fedora 33 support + + Add Fedora 32 support + + Drop Python 2 compatibility + +------------------------------------------------------------------- +Sat Mar 2 23:50:05 UTC 2019 - Neal Gompa + +- Initial packaging for openSUSE diff --git a/python-pykickstart.spec b/python-pykickstart.spec new file mode 100644 index 0000000..a09d9a2 --- /dev/null +++ b/python-pykickstart.spec @@ -0,0 +1,88 @@ +# +# spec file for package python-pykickstart +# +# Copyright (c) 2020 Neal Gompa . +# +# 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.25 +Release: 0 +Summary: Python module for parsing and writing kickstart files +Group: Development/Libraries/Python +License: GPL-2.0 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: fdupes +BuildRequires: gettext +BuildRequires: python-rpm-macros +BuildRequires: %{python_module ordered-set} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} + +Requires: python-ordered-set +Requires: python-requests +Requires: python-six + +%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} + + +%check +%python_expand PYTHONPATH=.. $python -m unittest discover -v + + +%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}-* +%python3_only %{_bindir}/* +%python3_only %{_mandir}/man1/* + +%changelog