diff options
| -rw-r--r-- | python-rpmautospec.spec | 12 | 
1 files changed, 8 insertions, 4 deletions
diff --git a/python-rpmautospec.spec b/python-rpmautospec.spec index 7b501c3..d9842a9 100644 --- a/python-rpmautospec.spec +++ b/python-rpmautospec.spec @@ -2,10 +2,11 @@  %bcond_without xdist  %global srcname rpmautospec +%global run_check 0  Name:           python-rpmautospec  Version:        0.3.5 -Release:        %autorelease +Release:        1  Summary:        Package and CLI tool to generate release fields and changelogs  License:        MIT @@ -15,7 +16,7 @@ Source0:        https://releases.pagure.org/fedora-infra/rpmautospec/rpmautospec  BuildArch:      noarch  BuildRequires:  git  # the langpacks are needed for tests -BuildRequires:  glibc-langpack-zh +BuildRequires:  glibc-langpack-de  BuildRequires:  glibc-langpack-en  BuildRequires:  python3-devel >= 3.6.0  BuildRequires:  python3-setuptools @@ -116,20 +117,23 @@ mkdir -p  %{buildroot}%{_prefix}/lib/koji-builder-plugins/  install -m 0644 koji_plugins/rpmautospec_builder.py \      %{buildroot}%{_prefix}/lib/koji-builder-plugins/ -%py_byte_compile %{python3} %{buildroot}%{_prefix}/lib/koji-builder-plugins/ +%py_byte_compile %{__python3} %{buildroot}%{_prefix}/lib/koji-builder-plugins/  # RPM macros  mkdir -p %{buildroot}%{rpmmacrodir}  install -m 644  rpm/macros.d/macros.rpmautospec %{buildroot}%{rpmmacrodir}/ +# check need run as non-root  %check +%if 0%{?run_check}  PYTHONPATH="%{buildroot}%{python3_sitelib}" \  %{__python3} -m pytest \  %if %{with xdist}  --numprocesses=auto  %endif +%endif  %changelog -* Mon Mar 27 lichaoran <pkwarcraft@hotmail.com> - 0.3.5-1 +* Mon Mar 27 2023 lichaoran <pkwarcraft@hotmail.com> - 0.3.5-1  - initial package  | 
