forked from rpm-software-management/rpmlint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add python-module-def check to SpecCheck
This patch adds a new warning when detecting the use of python_module macro definition in the spec file. It's included by default in python-rpm-macros so every modern distro should have this module defined. This macro was added by py2pack by default in new packages, but now it's removed: openSUSE/py2pack#166
- Loading branch information
Showing
4 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
%{?!python_module:%define python_module() python-%{**} python3-%{**}} | ||
|
||
Name: python-module-def | ||
Version: 1.0 | ||
Release: 0 | ||
Summary: python-module-def warning | ||
License: MIT | ||
URL: https://www.example.com | ||
Source: Source.tar.gz | ||
BuildRequires: gcc | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | ||
|
||
%description | ||
A test specfile with python setup.py test that is deprecated. | ||
|
||
%prep | ||
%setup -q | ||
|
||
%build | ||
%configure | ||
%make_build | ||
|
||
%install | ||
%make_install | ||
|
||
%check | ||
%pytest | ||
|
||
%post | ||
%postun | ||
|
||
%files | ||
%license COPYING | ||
%doc ChangeLog README | ||
|
||
%changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters