!4 obs-service-set_version升级至0.5.14

Merge pull request !4 from 吴磊磊/openEuler-22.03-LTS-Next
This commit is contained in:
openeuler-ci-bot 2022-01-07 04:44:33 +00:00 committed by Gitee
commit c39cc5fe4a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 18 additions and 11 deletions

Binary file not shown.

View File

@ -1,39 +1,46 @@
Name: obs-service-set_version Name: obs-service-set_version
Version: 0.5.10 Version: 0.5.14
Release: 5 Release: 1
Summary: Set the version in spec Summary: Set the version in spec
License: GPLv2+ License: GPL-2.0-or-later
Group: Development/Tools/Building
URL: https://github.com/openSUSE/obs-service-set_version URL: https://github.com/openSUSE/obs-service-set_version
Source: https://github.com/openSUSE/obs-service-set_version/archive/%{version}/%{name}-%{version}.tar.gz Source: https://github.com/openSUSE/obs-service-set_version/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: sed BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python3
BuildArch: noarch BuildArch: noarch
BuildRequires: python3-ddt python3-flake8 python3-packaging
Requires: python3
Recommends: python3-packaging
%description %description
It is a service for building.You can quickly install it It is a service for building.You can quickly install it
and update version in spec files. and update version in spec files.
%prep %prep
%autosetup %setup -q
%build %build
sed -i -e "1 s,#!/usr/bin/python$,#!%{__python3}," set_version sed -i -e "1 s,#!/usr/bin/python$,#!%{__python3}," set_version
%check
make test PYTHON=%{__python3}
%install %install
mkdir -p %{buildroot}%{_prefix}/lib/obs/service mkdir -p %{buildroot}%{_prefix}/lib/obs/service
install -m 0644 set_version.service %{buildroot}%{_prefix}/lib/obs/service
install -m 0755 set_version %{buildroot}%{_prefix}/lib/obs/service install -m 0755 set_version %{buildroot}%{_prefix}/lib/obs/service
install -m 0644 set_version.service %{buildroot}%{_prefix}/lib/obs/service
%check
%{__python3} -m unittest discover -p data_test* tests/
%files %files
%license debian/copyright %defattr(-,root,root)
%dir %{_prefix}/lib/obs %dir %{_prefix}/lib/obs
%{_prefix}/lib/obs/service %{_prefix}/lib/obs/service
%changelog %changelog
* Wed Dec 29 2021 wulei <wulei80@huawei.com> - 0.5.14-1
- DESC:package update
* Sat Mar 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.10-5 * Sat Mar 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.10-5
- DESC:modify the spec file,do not need python3-devel and python3dist(packaging) for building - DESC:modify the spec file,do not need python3-devel and python3dist(packaging) for building
* Thu Mar 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.10-4 * Thu Mar 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.10-4
- DESC:init package - DESC:init package