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