14
0

- Adapt for new singlespec style

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykickstart?expand=0&rev=5
This commit is contained in:
2021-01-31 00:09:14 +00:00
committed by Git OBS Bridge
parent e771b83e14
commit bf90049292
2 changed files with 36 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jan 31 00:07:23 UTC 2021 - Neal Gompa <ngompa13@gmail.com>
- Adapt for new singlespec style
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Dec 20 17:45:46 UTC 2020 - Neal Gompa <ngompa13@gmail.com> Sun Dec 20 17:45:46 UTC 2020 - Neal Gompa <ngompa13@gmail.com>

View File

@@ -66,11 +66,33 @@ and a writer to generate kickstart files.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %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 %check
%python_expand PYTHONPATH=.. $python -m unittest discover -v %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} %files %{python_files}
%license COPYING %license COPYING
%doc README.rst %doc README.rst
@@ -80,7 +102,14 @@ and a writer to generate kickstart files.
%doc docs/kickstart-docs.txt %doc docs/kickstart-docs.txt
%{python_sitelib}/%{mod_name}/ %{python_sitelib}/%{mod_name}/
%{python_sitelib}/%{mod_name}-* %{python_sitelib}/%{mod_name}-*
%python3_only %{_bindir}/* %python_alternative %{_bindir}/ksflatten
%python3_only %{_mandir}/man1/* %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 %changelog