forked from pool/obs-service-replace_using_package_version
* Bump version: 0.0.10 → 0.0.11 * Fix shebang of service to /usr/bin/python3 * Bump version: 0.0.9 → 0.0.10 * Unrestrict dev dependencies * Add support for replacing package versions by capability * Bump actions/setup-python from 5.2.0 to 5.3.0 * Bump actions/setup-python from 5.1.1 to 5.2.0 * Bump actions/setup-python from 5.1.0 to 5.1.1 * Bump actions/setup-python from 5.0.0 to 5.1.0 * Bump Gr1N/setup-poetry from 8 to 9 * Bump actions/cache from 3 to 4 * Whitespace cleanup * Add instructions to update new releases in OBS * How to cut a new release OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/obs-service-replace_using_package_version?expand=0&rev=25
63 lines
1.9 KiB
RPMSpec
63 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package obs-service-replace_using_package_version
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define service replace_using_package_version
|
|
|
|
Name: obs-service-%{service}
|
|
Version: 0.0.11
|
|
Release: 0
|
|
Summary: An OBS service: Replaces a regex with the version value of a package
|
|
License: GPL-3.0-or-later
|
|
Group: Development/Tools/Building
|
|
URL: https://github.com/openSUSE/obs-service-%{service}
|
|
Source0: %{service}.py
|
|
Source1: %{service}.service
|
|
Source2: LICENSE
|
|
BuildRequires: sed
|
|
Requires: python3-docopt
|
|
Requires: python3-rpm
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
This service replaces a given regex with the version value of
|
|
a given package. Can be used to align the version of you package or image
|
|
to the version of another package.
|
|
|
|
%prep
|
|
cp %{S:0} .
|
|
cp %{S:1} .
|
|
cp %{S:2} .
|
|
|
|
%build
|
|
# intentionally blank - nothing to do
|
|
|
|
%install
|
|
|
|
install -D -m 755 %{service}.py %{buildroot}%{_prefix}/lib/obs/service/%{service}
|
|
install -D -m 644 %{service}.service %{buildroot}%{_prefix}/lib/obs/service/%{service}.service
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%dir %{_prefix}/lib/obs
|
|
%dir %{_prefix}/lib/obs/service
|
|
%{_prefix}/lib/obs/service
|
|
%license LICENSE
|
|
|
|
%changelog
|