Daniel Garcia Moreno
313da60e3b
SpecCheck: Add python_sitelib glob check
2022-10-27 11:00:29 +02:00
Daniel Garcia Moreno
4e88e427bf
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:
https://github.com/openSUSE/py2pack/pull/166
2022-10-25 12:21:45 +02:00
Daniel Garcia Moreno
c8b87d6863
Add python-setup-test check to SpecCheck
...
This patch adds a new warning when detecting the use of
"setup.py test" in the check section.
Fixes : #677 .
2022-09-28 20:50:22 +02:00
Torbjörn Lönnemark
84d70576a9
Add test for shell var detection in rpm-buildroot-usage
2022-06-23 20:33:37 +02:00
Martin Liska
09b35e8f20
Support %autochangelog in %changelog.
...
Fixes #725 .
2021-10-11 07:36:09 +02:00
Martin Liska
80d4375f17
Fix %changelog in one spec file.
...
rpm package in Leap 15 fails to parse the spec file due to:
error: %changelog entries must start with *
2020-09-28 19:59:10 -04:00
Kristyna Streitova
f6de07414b
Remove broken-syntax-in-scriptlet-requires check
...
This check is outdated since the mentioned bug in rpm was fixed in
rpm 4.7.1 (see https://bugzilla.redhat.com/show_bug.cgi?id=1053075 ).
2020-07-24 15:54:42 +02:00
thisisshub
a77923124e
Add tests in test_speccheck
...
This commit contains tests added in the test_speccheck,
- test_check_prereq_use
- test_check_patch_fuzz_is_changed
2020-07-22 08:23:37 +02:00
thisisshub
c3954a5c89
Add test in test_speccheck, modified SpecCheck.py
...
This commit contains,
1. Refactored check in SpecCheck.py
2. Source-rpms in test/source
3. Tests in test_speccheck which are named with test_check_*
4. Specfile in test/spec listed as,
- %autopatch-not-in-prep.spec
- %autosetup-not-in-prep.spec
- broken-syntax-in-scriptlet-requires.spec
- buildarch-instead-of-exclusivearch-tag.spec
- buildprereq-use.spec
- comparison-operator-in-deptoken.spec
- configure-without-libdir-spec.spec
- deprecated-grep.spec
- depscript-without-disabling-depgen.spec
- forbidden-controlchar-found.spec
- hardcoded-library-path.spec
- hardcoded-packager-tag.spec
- hardcoded-path-in-buildroot-tag.spec
- hardcoded-prefix-tag.spec
- %ifarch-applied-patch.spec
- invalid-url.spec
- libdir-macro-in-noarch-package.spec
- lib-package-without-%mklibname.spec
- macro-in-changelog.spec
- macro-in-comment.spec
- make-check-outside-check-section.spec
- mixed-use-of-spaces-and-tabs.spec
- more-than-one-%changelog.spec
- no-buildroot-tag.spec
- non-break-space.spec
- non-standard-group.spec
- non-utf8-spec-file.spec
- no-%%%s-section.spec
- obsolete-tag.spec
- rpm-buildroot-usage.spec
- setup-not-in-prep.spec
- setup-not-quiet.spec
- SpecCheck2.spec
- SpecCheck3.spec
- SpecCheck4.spec
- SpecCheck.spec
- SpecCheckTemp.spec
- unversioned-explicit-obsoletes.spec
- unversioned-explicit-version.spec
- use-of-RPM-SOURCE-DIR.spec
2020-07-02 10:14:30 +02:00
Frank Schreiner
bb3573020b
check also spec files for forbidden control chars
2019-10-25 07:32:56 -04:00
Tomáš Chvátal
3acb6d2a24
Remove SCLCheck
...
This test is not maintained by fedora anymore and contains bugs
in itself.
If anyone is interested in it, feel free to clean it up and
reintroduce it to rpmlint.
2019-10-09 05:16:21 -04:00
Ville Skyttä
80f31c0d49
SpecCheck: Detect patches applied with "patch <" and "patch -i"
...
Fixes #91
2017-02-04 17:32:38 +02:00
Ville Skyttä
a81fdca018
SpecCheck: Do not demand versioned filename Provides/Obsoletes
...
rpm does not tolerate e.g. "Provides: /bin/tcsh = 1.0", fixes #90 .
2017-01-22 08:33:11 +02:00
Ville Skyttä
61e29add7b
Clean up test dir structure
2015-07-09 16:43:45 +03:00
Miro Hrončok
a879448363
Add SCLCheck to rpmlint
2015-07-09 16:43:44 +03:00