rebuilt for python 3.8.5

This commit is contained in:
maminjie 2020-09-11 19:50:51 +08:00
parent b8f90a9e36
commit efec4728d7

View File

@ -1,17 +1,14 @@
Name: osc Name: osc
Version: 0.169.1 Version: 0.169.1
Release: 1 Release: 2
Summary: The Command Line Interface to work with an Open Build Service Summary: The Command Line Interface to work with an Open Build Service
License: GPLv2+ License: GPLv2+
Url: https://github.com/openSUSE/osc Url: https://github.com/openSUSE/osc
Source: https://github.com/openSUSE/osc/archive/%{version}.tar.gz Source: https://github.com/openSUSE/osc/archive/%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: python2-devel python2-rpm python2-urlgrabber BuildRequires: python3-devel python3-rpm python3-urlgrabber
Requires: python2-rpm m2crypto python2-lxml python2-urlgrabber Requires: python3-rpm python3-m2crypto python3-lxml python3-urlgrabber
Requires: m2crypto
Requires: python2-lxml
Requires: python2-urlgrabber
Conflicts: obs-build < 20180816 Conflicts: obs-build < 20180816
@ -34,17 +31,18 @@ iconv -f ISO8859-1 -t UTF-8 -o TODO.new TODO
mv TODO.new TODO mv TODO.new TODO
%build %build
%py2_build %py3_build
%install %install
%py2_install %py3_install
ln -s osc-wrapper.py %{buildroot}%{_bindir}/osc ln -s osc-wrapper.py %{buildroot}%{_bindir}/osc
install -d %{buildroot}%{_localstatedir}/lib/osc-plugins mkdir -p %{buildroot}%{_localstatedir}/lib/osc-plugins
install -d %{buildroot}%{_prefix}/lib/obs/service mkdir -p %{buildroot}%{_prefix}/lib/obs/service
install -d %{buildroot}%{_prefix}/lib/osc-plugins mkdir -p %{buildroot}%{_prefix}/lib/osc-plugins
install -d %{buildroot}%{_rpmconfigdir}/macros.d/ mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d/
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
install -Dm644 dist/complete.csh %{buildroot}%{_sysconfdir}/profile.d/osc.csh install -Dm644 dist/complete.csh %{buildroot}%{_sysconfdir}/profile.d/osc.csh
install -Dm644 dist/complete.sh %{buildroot}%{_datadir}/bash-completion/completions/osc install -Dm644 dist/complete.sh %{buildroot}%{_datadir}/bash-completion/completions/osc
@ -59,7 +57,7 @@ EOF
%doc AUTHORS README TODO NEWS %doc AUTHORS README TODO NEWS
%license COPYING %license COPYING
%{_bindir}/osc* %{_bindir}/osc*
%{python2_sitelib}/* %{python3_sitelib}/osc*
%{_sysconfdir}/profile.d/osc.csh %{_sysconfdir}/profile.d/osc.csh
%{_datadir}/bash-completion/completions/osc %{_datadir}/bash-completion/completions/osc
%dir %{_localstatedir}/lib/osc-plugins %dir %{_localstatedir}/lib/osc-plugins
@ -73,6 +71,9 @@ EOF
%{_mandir}/man1/osc.* %{_mandir}/man1/osc.*
%changelog %changelog
* Fri Sep 11 2020 maminjie <maminjie1@huawei.com> - 0.169.1-2
- Rebuilt for Python 3.8.5
* Wed Aug 05 2020 yaokai <yaokai13@huawei.com> - 0.169.1-1 * Wed Aug 05 2020 yaokai <yaokai13@huawei.com> - 0.169.1-1
- Upgrade to 0.169.1 to fix CVE-2019-3681 - Upgrade to 0.169.1 to fix CVE-2019-3681