!20 Upgrade to 1.3.1
From: @chen-jan Reviewed-by: @wang--ge Signed-off-by: @wang--ge
This commit is contained in:
commit
1dad041d26
BIN
0.175.0.tar.gz
BIN
0.175.0.tar.gz
Binary file not shown.
BIN
1.3.1.tar.gz
Normal file
BIN
1.3.1.tar.gz
Normal file
Binary file not shown.
64
osc.spec
64
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 <<EOF
|
||||
%%obs_srcsvc_dir %{_prefix}/lib/obs/service
|
||||
%%osc_plugin_dir %{_prefix}/lib/osc-plugins
|
||||
EOF
|
||||
# install man page
|
||||
install -Dm0644 osc.1 %{buildroot}%{_mandir}/man1/osc.1
|
||||
|
||||
%check
|
||||
python3 setup.py test
|
||||
|
||||
%files
|
||||
%doc AUTHORS README TODO NEWS
|
||||
%doc AUTHORS README.md NEWS
|
||||
%license COPYING
|
||||
%{_bindir}/osc*
|
||||
%{python3_sitelib}/osc*
|
||||
@ -73,6 +96,9 @@ EOF
|
||||
%{_mandir}/man1/osc.*
|
||||
|
||||
%changelog
|
||||
* Thu Aug 31 2023 chenchen <chen_aka_jan@163.com> - 1.3.1-1
|
||||
- Upgrade to 1.3.1
|
||||
|
||||
* Wed Apr 27 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 0.175.0-1
|
||||
- Upgrade to 0.175.0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user