obs-service-set_version/obs-service-set_version.spec

50 lines
1.5 KiB
RPMSpec
Raw Normal View History

2020-03-06 16:44:21 +08:00
Name: obs-service-set_version
2021-12-29 10:57:48 +08:00
Version: 0.5.14
Release: 2
2020-03-06 16:44:21 +08:00
Summary: Set the version in spec
2021-12-29 10:57:48 +08:00
License: GPL-2.0-or-later
Group: Development/Tools/Building
2020-03-06 16:44:21 +08:00
URL: https://github.com/openSUSE/obs-service-set_version
Source: https://github.com/openSUSE/obs-service-set_version/archive/%{version}/%{name}-%{version}.tar.gz
2021-12-29 10:57:48 +08:00
BuildRoot: %{_tmppath}/%{name}-%{version}-build
2020-03-06 16:44:21 +08:00
BuildArch: noarch
2021-12-29 10:57:48 +08:00
BuildRequires: python3-ddt python3-flake8 python3-packaging
Requires: python3
Recommends: python3-packaging
2020-03-06 16:44:21 +08:00
%description
It is a service for building.You can quickly install it
and update version in spec files.
%prep
2021-12-29 10:57:48 +08:00
%setup -q
2020-03-06 16:44:21 +08:00
%build
sed -i -e "1 s,#!/usr/bin/python$,#!%{__python3}," set_version
2021-12-29 10:57:48 +08:00
%check
make test PYTHON=%{__python3}
2020-03-06 16:44:21 +08:00
%install
mkdir -p %{buildroot}%{_prefix}/lib/obs/service
install -m 0755 set_version %{buildroot}%{_prefix}/lib/obs/service
2021-12-29 10:57:48 +08:00
install -m 0644 set_version.service %{buildroot}%{_prefix}/lib/obs/service
2020-03-06 16:44:21 +08:00
%files
2021-12-29 10:57:48 +08:00
%defattr(-,root,root)
2020-03-06 16:44:21 +08:00
%dir %{_prefix}/lib/obs
%{_prefix}/lib/obs/service
%changelog
* Mon Nov 14 2022 xu_ping <xuping33@h-partners.com> - 0.5.14-2
- DESC:Modify invalid source0 to be consistent with the source
2021-12-29 10:57:48 +08:00
* 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
2021-12-29 10:57:48 +08:00
2020-03-06 16:44:21 +08:00
* Thu Mar 5 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.10-4
- DESC:init package