|
 |
05b7913 |
|
|
 |
05b7913 |
%global service set_version
|
|
 |
05b7913 |
|
|
 |
05b7913 |
Name: obs-service-%{service}
|
|
 |
1061cfe |
Version: 0.5.12
|
|
 |
1061cfe |
Release: 1%{?dist}
|
|
 |
05b7913 |
Summary: An OBS source service: Update spec file version
|
|
 |
05b7913 |
License: GPLv2+
|
|
 |
05b7913 |
URL: https://github.com/openSUSE/obs-service-%{service}
|
|
 |
05b7913 |
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
 |
05b7913 |
BuildRequires: sed
|
|
 |
05b7913 |
BuildRequires: python3-devel
|
|
 |
05b7913 |
BuildRequires: python3dist(ddt)
|
|
 |
05b7913 |
BuildRequires: python3dist(packaging)
|
|
 |
05b7913 |
Recommends: python3dist(packaging)
|
|
 |
05b7913 |
Requires: python3
|
|
 |
05b7913 |
BuildArch: noarch
|
|
 |
05b7913 |
|
|
 |
05b7913 |
%description
|
|
 |
05b7913 |
This is a source service for openSUSE Build Service.
|
|
 |
05b7913 |
|
|
 |
05b7913 |
Very simply script to update the version in .spec or .dsc files according to
|
|
 |
05b7913 |
a given version or to the existing files.
|
|
 |
05b7913 |
|
|
 |
05b7913 |
%prep
|
|
 |
05b7913 |
%autosetup
|
|
 |
05b7913 |
|
|
 |
05b7913 |
%build
|
|
 |
05b7913 |
sed -i -e "1 s,#!/usr/bin/python$,#!%{__python3}," set_version
|
|
 |
05b7913 |
|
|
 |
05b7913 |
%install
|
|
 |
05b7913 |
mkdir -p %{buildroot}%{_prefix}/lib/obs/service
|
|
 |
05b7913 |
install -m 0755 set_version %{buildroot}%{_prefix}/lib/obs/service
|
|
 |
05b7913 |
install -m 0644 set_version.service %{buildroot}%{_prefix}/lib/obs/service
|
|
 |
05b7913 |
|
|
 |
05b7913 |
%check
|
|
 |
05b7913 |
%{__python3} -m unittest discover tests/
|
|
 |
05b7913 |
|
|
 |
05b7913 |
%files
|
|
 |
05b7913 |
# In lieu of a proper license file: https://github.com/openSUSE/obs-service-set_version/issues/57
|
|
 |
05b7913 |
%license debian/copyright
|
|
 |
05b7913 |
%dir %{_prefix}/lib/obs
|
|
 |
05b7913 |
%{_prefix}/lib/obs/service
|
|
 |
05b7913 |
|
|
 |
05b7913 |
%changelog
|
|
 |
1061cfe |
* Mon Nov 18 2019 Neal Gompa <ngompa13@gmail.com> - 0.5.12-1
|
|
 |
1061cfe |
- Update to 0.5.12
|
|
 |
1061cfe |
|
|
 |
65db955 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.10-3
|
|
 |
65db955 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
65db955 |
|
|
 |
e3da78c |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.10-2
|
|
 |
e3da78c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
e3da78c |
|
|
 |
05b7913 |
* Tue Oct 02 2018 Neal Gompa <ngompa13@gmail.com> - 0.5.10-1
|
|
 |
05b7913 |
- Update to 0.5.10
|
|
 |
05b7913 |
- Run unit tests
|
|
 |
05b7913 |
- Set sed properly as a build dependency
|
|
 |
05b7913 |
|
|
 |
05b7913 |
* Sat Mar 24 2018 Neal Gompa <ngompa13@gmail.com> - 0.5.8-1
|
|
 |
05b7913 |
- Initial packaging
|
|
 |
05b7913 |
|