38 lines
1.0 KiB
RPMSpec
38 lines
1.0 KiB
RPMSpec
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
|