Commit Graph

228 Commits

Author SHA1 Message Date
Todd Zullinger
4cc3a95149 replace tabs with spaces (again)
The spec file has seen tabs versus spaces fixes a number of times now.
In 096bf89 (2.0.0, 2021-06-03), the spec file was rewritten and all
spaces were replaced with tabs in the tags.  Previous fixes included:

    - dbfdbf0 (Fix mixed-use-of-spaces-and-tabs warning (in this spec
      file), 2018-06-17)
    - c74c9bf (Fix mixed-use-of-spaces-and-tabs warning, 2018-05-03)
    - 85118ac (... Keep consistent between spaces and tabs, 2005-03-04)

Replace tabs once again as they are not commonly used in spec files and
lead to rpmlint warnings.  If we cannot avoid such warnings here, it's a
bit silly to expect others to do so.
2022-10-04 13:21:38 -04:00
Todd Zullinger
869be6c50b enable tests by default
We BR the test dependencies unconditionally.  Run the tests as well.

Avoid warnings about pytest.mark.no_cover marker; we disable disable
coverage entirely.
2022-10-04 13:21:38 -04:00
Todd Zullinger
cba2f8a237 convert license to SPDX and correct to GPL-2.0-or-later
It's not clear to me if or when the license changed from GPL-2.0-only to
GPL-2.0-or-later.  It may have been more of a clarification than a
change upstream.

In any case, GPL-2.0-or-later is what upstream states in setup.py and
their spec file (the latter as GPLv2+):

    https://github.com/rpm-software-management/rpmlint/blob/2.3.0/setup.py#L20
    https://github.com/rpm-software-management/rpmlint/blob/2.3.0/.packit/rpmlint.spec#L8
2022-10-04 13:21:32 -04:00
Todd Zullinger
da60f2928b update to 2.3.0 (rhbz#2088759)
Sync the fedora.toml and users-groups.toml configs from upstream.

Change the zstd dependency to zstandard, following upstream 463bef3f
(Use different Python package for ZStandard, 2022-01-03).

Adjust python-magic dependency to file-magic.  We already BR file-magic for
the test suite.  This ensures we install what we tested and avoids the
problem of python3-file-magic conflicting and obsoleting python3-magic
without providing the same python-dist values¹.

¹ https://bugzilla.redhat.com/1899279
2022-10-04 13:20:33 -04:00
spotrh
2beb19345e update licenses.toml to reflect change in Fedora licensing identifiers 2022-09-24 13:24:40 -04:00
Miro Hrončok
2c28889298 Be consistent in what we (Build)Require 2022-08-09 17:57:29 +02:00
Miro Hrončok
4fb672c59c Require desktop-file-validate to avoid a fatal error when the RPM has .desktop files 2022-08-08 14:10:09 +02:00
Fedora Release Engineering
daaf84eeef Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 01:03:23 +00:00
Python Maint
860b80b506 Rebuilt for Python 3.11 2022-06-14 16:55:20 +02:00
Fedora Release Engineering
2c67bcb69d - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 18:03:31 +00:00
Tom spot Callaway
73ebf18e2c disable no-library-dependency-for/on checks in Fedora 2022-01-06 16:48:00 -05:00
Stephen Smoogen
8c17654054 Updated spec file to 2.2.0 and removed un-used patches
Uploaded new source to look-aside
2021-12-10 10:30:49 -05:00
Neal Gompa
fe6868ba1e Fix some rpmlint policy issues 2021-12-07 08:07:36 -05:00
Tom spot Callaway
a80a7e3835 add explicit Requires for pyenchant 2021-10-05 15:36:31 -04:00
Tom spot Callaway
256a77a06f fix rpmlintrc load from cmdline option (bz2000018) 2021-09-17 10:15:26 -04:00
Miro Hrončok
cfe9d89a45 Ignore hidden-file-or-dir for .cargo-checksum.json 2021-09-05 20:50:42 +02:00
Tom spot Callaway
5a955c2acc include iso-639-2 collective language codes in LANGUAGES 2021-08-17 17:52:46 -04:00
Tom spot Callaway
3f0db8b75d make tests a with flag 2021-08-17 16:29:27 -04:00
Tom spot Callaway
15be74b1a1 2.1.0 2021-08-17 16:16:13 -04:00
Fedora Release Engineering
4db83c1da5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 11:37:19 +00:00
Tom spot Callaway
437dfc5658 add Requires: rpm-build 2021-07-07 08:52:20 -04:00
Tomas Tomecek
e1e477af55 add runtime require: rpm-build
otherwise spec file cannot be parsed and users are getting this odd
error:

    python-ogr.spec: E: specfile-error rpm: /usr/bin/rpmspec: No such file
    or directory

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2021-07-07 13:50:23 +02:00
Tom spot Callaway
889dc5b76b fix rpmlint -i where it wrongly assumes a tmp dir 2021-07-01 12:19:48 -04:00
Miro Hrončok
a5cb936436 Don't lint the code or measure coverage in %check
Linters and test coverage makes sense in upstream CI, but not that much in Fedora.
This makes testing rpmlint with newer Python releases easier.

It also partially unblocks the Python 3.10 rebuild.
2021-06-05 23:43:13 +02:00
Python Maint
ef464bc81e Rebuilt for Python 3.10 2021-06-04 18:03:28 +02:00
Tom spot Callaway
1baf2ea022 add dash and checkbashisms as requires 2021-06-04 09:45:21 -04:00
Tom spot Callaway
a32a3ca17a more BR 2021-06-03 15:46:51 -04:00
Tom spot Callaway
c7edb61e79 still moar BR 2021-06-03 15:26:44 -04:00
Tom spot Callaway
4f79e2c09f more BR 2021-06-03 15:10:14 -04:00
Tom spot Callaway
096bf89341 2.0.0 2021-06-03 14:59:34 -04:00
Todd Zullinger
65f8e57bd5 use proper folder _sourcedir for spec files
Resolves: https://bugzilla.redhat.com/1959363
Upstream: https://github.com/rpm-software-management/rpmlint/pull/633
2021-05-11 10:01:49 -04:00
Miro Hrončok
8c896377da Filter out empty specfile-errors, they are duplicates
Before:

    $ rpmlint python-setuptools.spec
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 58:  %endif # with tests
    python-setuptools.spec: E: specfile-error
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 67:  %endif # without bootstrap
    python-setuptools.spec: E: specfile-error
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 181:  %endif # with tests
    0 packages and 1 specfiles checked; 5 errors, 0 warnings.

After:

    $ rpmlint python-setuptools.spec
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 58:  %endif # with tests
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 67:  %endif # without bootstrap
    python-setuptools.spec: E: specfile-error warning: extra tokens at the end of %endif directive in line 181:  %endif # with tests
    0 packages and 1 specfiles checked; 3 errors, 0 warnings.
2021-04-13 10:48:05 +02:00
Tom spot Callaway
6f1c44bf23 correct hard-coded version in Makefile 2021-02-05 10:16:26 -05:00
Fedora Release Engineering
44a9bb588a - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 15:28:12 +00:00
Miro Hrončok
77d737a57a Filter out empty py.typed files in Python site-packages 2021-01-25 15:05:32 +01:00
Tom Stellard
00196912df Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-11 19:08:20 +00:00
Miro Hrončok
9d73fed514 Filter out empty REQUESTED files in pip installed Python metadata dist-info dirs 2020-08-21 15:07:34 +02:00
Fedora Release Engineering
b520121e46 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 05:56:22 +00:00
Miro Hrončok
a5d3b021f3 Don't use the %python_sitelib macro, because it errors
See https://fedoraproject.org/wiki/Changes/PythonMacroError
2020-07-16 18:01:14 +02:00
Troy Dawson
9121f405a5 Minor conditional tweak for ELN
Signed-off-by: Troy Dawson tdawson@redhat.com
2020-07-07 15:58:09 +00:00
Tom Callaway
efbe7afa49 use python3-file-magic on f33+ 2020-06-23 09:39:00 -04:00
Tom Callaway
86c1640949 turn *-not-linked-against-libc from errors to warnings (bz1749738) 2020-06-16 11:02:09 -04:00
Tom Callaway
02b658689b add /usr/bin/python[23] as valid shells 2020-06-10 08:40:10 -04:00
Miro Hrončok
c203015a2f Rebuilt for Python 3.9 2020-05-24 10:33:39 +02:00
Fedora Release Engineering
a23b587055 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 17:53:23 +00:00
Miro Hrončok
2ed17290bd Rebuilt for Python 3.8 2019-08-17 19:34:19 +02:00
Fedora Release Engineering
f3fdb39e98 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 18:46:59 +00:00
Tom Callaway
0a2d485000 merge conflig file cleanups from PR 2019-07-11 17:11:21 -04:00
Miro Hrončok
0070702fc8 Make it build 2019-07-04 01:14:11 +02:00
Tom Callaway
b129e361c8 1.11 2019-06-21 10:49:39 -04:00