package update
(cherry picked from commit bc0ca3544df3089a79181f8e7102ac4307177604)
This commit is contained in:
parent
a5b46f58dc
commit
e48b7304ec
Binary file not shown.
BIN
obs-service-set_version-0.5.14.tar.gz
Normal file
BIN
obs-service-set_version-0.5.14.tar.gz
Normal file
Binary file not shown.
@ -1,39 +1,46 @@
|
||||
Name: obs-service-set_version
|
||||
Version: 0.5.10
|
||||
Release: 5
|
||||
Version: 0.5.14
|
||||
Release: 1
|
||||
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
|
||||
Source: https://github.com/openSUSE/obs-service-set_version/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
BuildRequires: sed
|
||||
Requires: python3
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-ddt python3-flake8 python3-packaging
|
||||
Requires: python3
|
||||
Recommends: python3-packaging
|
||||
|
||||
%description
|
||||
It is a service for building.You can quickly install it
|
||||
and update version in spec files.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
sed -i -e "1 s,#!/usr/bin/python$,#!%{__python3}," set_version
|
||||
|
||||
%check
|
||||
make test PYTHON=%{__python3}
|
||||
|
||||
%install
|
||||
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
|
||||
|
||||
%check
|
||||
%{__python3} -m unittest discover -p data_test* tests/
|
||||
install -m 0644 set_version.service %{buildroot}%{_prefix}/lib/obs/service
|
||||
|
||||
%files
|
||||
%license debian/copyright
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}/lib/obs
|
||||
%{_prefix}/lib/obs/service
|
||||
|
||||
%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
|
||||
- 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
|
||||
- DESC:init package
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user