init the package

This commit is contained in:
Grooooot 2020-03-06 16:44:21 +08:00
parent 3cdc21b61e
commit cbe9b35e22
2 changed files with 37 additions and 0 deletions

Binary file not shown.

View 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