Name: obs-service-set_version Version: 0.6.2 Release: 1 Summary: Set the version in spec License: GPL-2.0-or-later Group: Development/Tools/Building URL: https://github.com/openSUSE/obs-service-set_version Source: https://github.com/openSUSE/obs-service-set_version/archive/%{version}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch # imp has been deprecated since python 3.3 and has been removed in python 3.12 Patch0: https://github.com/openSUSE/obs-service-set_version/pull/86.patch#./0001-Remove-usage-of-deprecated-imp-module-with-importlib.patch BuildRequires: python3-ddt python3-packaging Requires: python3 Recommends: python3-packaging %description It is a service for building.You can quickly install it and update version in spec files. %prep %autosetup -n %{name}-%{version} -p1 %build %check %{__python3} -m unittest discover tests/ %install mkdir -p %{buildroot}%{_prefix}/lib/obs/service install -m 0755 set_version %{buildroot}%{_prefix}/lib/obs/service install -m 0644 set_version.service %{buildroot}%{_prefix}/lib/obs/service %files %defattr(-,root,root) %dir %{_prefix}/lib/obs %{_prefix}/lib/obs/service %changelog * Wed Oct 18 2023 wangkai <13474090681@163.com> - 0.6.2-1 - Update to 0.6.2 * Fri May 12 2023 liyanan - 0.5.14-2 - Handle removed packaging.version.LegacyVersion * Wed Dec 29 2021 wulei - 0.5.14-1 - DESC:package update * Sat Mar 21 2020 openEuler Buildteam - 0.5.10-5 - DESC:modify the spec file,do not need python3-devel and python3dist(packaging) for building * Thu Mar 5 2020 openEuler Buildteam - 0.5.10-4 - DESC:init package