diff --git a/0.175.0.tar.gz b/0.175.0.tar.gz deleted file mode 100644 index d504ffdbb516ef1c621e484317b230d5ca637a6b..0000000000000000000000000000000000000000 Binary files a/0.175.0.tar.gz and /dev/null differ diff --git a/1.3.1.tar.gz b/1.3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a13b57b15e4de204c98b1ca729533d88e6248be5 Binary files /dev/null and b/1.3.1.tar.gz differ diff --git a/osc.spec b/osc.spec index 335ef528e5bfa49f5b6f9f721a9e1f8243324fac..885e2f1c7c3bc71e9eaf8f4dc88af4a331c4cc8d 100644 --- a/osc.spec +++ b/osc.spec @@ -1,5 +1,10 @@ +%global obsrel 372.1 +%global osc_plugin_dir %{_prefix}/lib/osc-plugins +%global obsroot %{_prefix}/lib/obs +%global obs_srcsvc_dir %{obsroot}/service + Name: osc -Version: 0.175.0 +Version: 1.3.1 Release: 1 Summary: The Command Line Interface to work with an Open Build Service License: GPLv2+ @@ -7,7 +12,9 @@ Url: https://github.com/openSUSE/osc Source: https://github.com/openSUSE/osc/archive/%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel python3-distro python3-rpm python3-setuptools diffstat -Requires: python3-distro python3-rpm python3-m2crypto python3-lxml vim +BuildRequires: python3-cryptography python3-urllib3 python3-argparse-manpage +Requires: python3-distro python3-rpm python3-lxml vim +Requires: python3-urllib3 python3-progressbar2 Recommends: obs-build Recommends: obs-service-source_validator Conflicts: obs-build < 20191205 @@ -27,35 +34,51 @@ This package contains some man help files for %{name}. %prep %autosetup -p1 -n osc-%{version} -iconv -f ISO8859-1 -t UTF-8 -o TODO.new TODO -mv TODO.new TODO - %build %py3_build +cat << EOF > macros.osc +%%osc_plugin_dir %{osc_plugin_dir} +EOF + +# build man page +PYTHONPATH=. argparse-manpage \ + --output=osc.1 \ + --format=single-commands-section \ + --module=osc.commandline \ + --function=get_parser \ + --project-name=osc \ + --prog=osc \ + --description="OpenSUSE Commander" \ + --author="Contributors to the osc project. See the project's GIT history for the complete list." \ + --url="https://github.com/openSUSE/osc/" + %install %py3_install -ln -s osc-wrapper.py %{buildroot}%{_bindir}/osc - mkdir -p %{buildroot}%{_localstatedir}/lib/osc-plugins -mkdir -p %{buildroot}%{_prefix}/lib/obs/service -mkdir -p %{buildroot}%{_prefix}/lib/osc-plugins +install -Dm0644 contrib/complete.csh %{buildroot}%{_sysconfdir}/profile.d/osc.csh +install -Dm0644 contrib/complete.sh %{buildroot}%{_datadir}/bash-completion/completions/osc +install -Dm0755 contrib/osc.complete %{buildroot}%{_datadir}/osc/complete +install -Dm0644 contrib/osc.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/osc.fish + +mkdir -p %{buildroot}%{obs_srcsvc_dir} + +mkdir -p %{buildroot}%{osc_plugin_dir} + 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 -install -Dm755 dist/osc.complete %{buildroot}%{_datadir}/osc/complete -install -Dm0644 osc.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/osc.fish +# install rpm macros +install -Dm0644 macros.osc %{buildroot}%{_rpmmacrodir}/macros.osc -cat > %{buildroot}%{_rpmconfigdir}/macros.d/macros.osc < - 1.3.1-1 +- Upgrade to 1.3.1 + * Wed Apr 27 2022 xigaoxinyan - 0.175.0-1 - Upgrade to 0.175.0