init the package
This commit is contained in:
parent
3cdc21b61e
commit
cbe9b35e22
BIN
obs-service-set_version-0.5.10.tar.gz
Normal file
BIN
obs-service-set_version-0.5.10.tar.gz
Normal file
Binary file not shown.
37
obs-service-set_version.spec
Normal file
37
obs-service-set_version.spec
Normal file
@ -0,0 +1,37 @@
|
||||
Name: obs-service-set_version
|
||||
Version: 0.5.10
|
||||
Release: 4
|
||||
Summary: Set the version in spec
|
||||
License: GPLv2+
|
||||
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 python3dist(packaging) python3-devel
|
||||
Requires: python3
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
It is a service for building.You can quickly install it
|
||||
and update version in spec files.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
sed -i -e "1 s,#!/usr/bin/python$,#!%{__python3}," set_version
|
||||
|
||||
%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 tests/
|
||||
|
||||
%files
|
||||
%license debian/copyright
|
||||
%dir %{_prefix}/lib/obs
|
||||
%{_prefix}/lib/obs/service
|
||||
|
||||
%changelog
|
||||
* 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