Commit Graph

101 Commits

Author SHA256 Message Date
99bf117013 Accepting request 1164119 from home:dimstar:Factory
- Update to version 1.2.2+5:
  + Fix mingw32-clutter and replace_pwdutils tests.
  + Update rpmprep to handle %patchN for rpm >= 4.20.
- Drop fix_tests_needing_web_connection.patch: fixed upstream.
- Convert to obs_scm service: there is no bootstrapping needed for
  the tarball anyway, so using pristine git checkout is preferred.

OBS-URL: https://build.opensuse.org/request/show/1164119
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=165
2024-04-10 11:06:04 +00:00
7dee1f31da Accepting request 1134633 from home:kstreitova:branches:openSUSE:Tools
- Add fix_tests_needing_web_connection.patch to temporarily fix
  tests that need internet connection that is not available during
  OBS build. Already fixed upstream in fd0f649

OBS-URL: https://build.opensuse.org/request/show/1134633
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=163
2023-12-22 14:14:14 +00:00
530adc25bd Accepting request 1120592 from home:kstreitova:branches:openSUSE:Tools
- Clean up the SPEC file

- Update to 1.2.2 bsc#1099674:
  * Expand python sitelib glob usage in files
  * Add new head category for PSP macros
  * Make flake8 happy and fix C416
  * avoid adding curly braces to apparmor_reload
  * Bump CodeQL Actions version
  * Do not put curly brackets around python_libalternatives_reset_alternative
  * Try to fix coveralls in github actions
  * Update to actions/checkout@v3 and setup-python@v4
  * Try to increase timeout for urlopen
  * Make flake8 and mypy happy
  * Set headers for urlopen to avoid 403 code
  * ubuntu-latest doesn't support 3.6 anymore
  * Replace calls to w3m with calls to curl
  * move logic that tries to change the URL field to https into _make_secure_url
  * Fix pep8 errors to pass flake8 tests (#296)
  * Extend support for patterns (boo#1195092)
  * update coveralls config
  * Ignore error N818 from pep8-naming for now
  * Fix URL expectations on tests
  * Do not put brackets on %obsolete_legacy_pattern
  * Fix #287: Incorrect curlification for more systemd-macros
  * Add new script for rpmlint.
  * Use github token directly
- Remove spec-cleaner-psp-macros.patch that is already included in
  1.2.2 release
- Install new *.toml files with licenses

OBS-URL: https://build.opensuse.org/request/show/1120592
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=162
2023-10-26 13:37:30 +00:00
dbcce9ffed - add spec-cleaner-psp-macros.patch to avoid spec-cleaner
rewriting the location of the psp macro
- Fix: Use Mageia specific macro for Mageia builds in spec file
  * Various small fixes
- Version update to 1.1.2 bsc#1099674:

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=160
2023-10-24 13:45:19 +00:00
01920fd3f5 Accepting request 900554 from home:tarakbumba:branches:openSUSE:Tools
- Fix: Use Mageia specific macro for Mageia builds in spec file

OBS-URL: https://build.opensuse.org/request/show/900554
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=158
2021-06-18 07:58:57 +00:00
44e10abc84 Accepting request 849031 from home:jayvdb:branches:devel:languages:python
- Update URLs
- Remove build dependencies on unnecessary pytest plugins

OBS-URL: https://build.opensuse.org/request/show/849031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=156
2020-12-04 14:09:05 +00:00
Tomáš Chvátal
45fc9928bf - Update to 1.2.1 bsc#1099674:
* Use Leap 15.2 as a base for data files

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=154
2020-10-01 07:33:15 +00:00
Tomáš Chvátal
c3d59f849a Accepting request 829702 from home:dimstar:Factory
- Use %{_prefix}/lib instead of %{_libexecdir}: obs services are
  explicitly looked for at this location.

OBS-URL: https://build.opensuse.org/request/show/829702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=152
2020-08-26 11:58:54 +00:00
Tomáš Chvátal
a876292bcd - Update to 1.2.0 bsc#1099674:
* Fix pypi rewritter to work with wheels
  * Do not choke on multiline string macros

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=150
2020-06-16 10:48:49 +00:00
Tomáš Chvátal
8688f7f7e8 Accepting request 788281 from home:kstreitova:branches:openSUSE:Tools
- Update to 1.1.9 bsc#1099674:
  * Add builtin and comprehensions to catch tad more issues
  * Do not add FIXME comments for already commented lines
  * Add the article to the comment
  * Exclude mysql_testserver calls from bracketing
  * Do not curlify systemd_ordering macro
  * Ignore dephell setup generator macro from bracketing
  * Use github actions and drop travis and tox
  * Use pre-commit framework for the project (it runs black, flake8,
    flake8-docstrings and mypy on every commit)
  * Update README
  * Add %{dephell_gensetup} macro instead of the full call to
    dephell com

OBS-URL: https://build.opensuse.org/request/show/788281
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=148
2020-03-26 05:07:50 +00:00
Tomáš Chvátal
61a9c36651 Accepting request 768709 from home:kstreitova:branches:openSUSE:Tools
- Update to 1.1.8 bsc#1099674:
  * Change libexecdir substitution to do /usr/libexec to %{_libexecdir}
  * Exclude apache_rex_check from bracketing
  * Add testscase for boolean dependencies that gets mangled currently
  * Do not remove -p0 from autosetup
  * Use %make_build if possible issue
  * Teach spec-cleaner to not break the %elif* macros added with
    rpm 4.15
  * Fixup the nested boolean dependencies
  * Fixup whitespace reported by flake8
  * Set explicit urllib timeout issue
  * Replace more stuff for %make build

OBS-URL: https://build.opensuse.org/request/show/768709
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=146
2020-01-30 12:54:58 +00:00
Tomáš Chvátal
8e133f190f - Update to 1.1.7 bsc#1099674:
* Fix a duplication with new SUSE copyright line
  * Exclude all pom_ macros from bracketing

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=144
2019-11-14 10:46:39 +00:00
Tomáš Chvátal
debdced285 Accepting request 747374 from home:kstreitova:branches:openSUSE:Tools
- Update to 1.1.6 bsc#1099674:
  * Do not remove groups by default. Now, groups are kept untouched
    by default. Introduce a new option '--remove-groups' that
    removes Group tags from the specfile. Remove '--preserve_groups'
    option.
  * Say goodbye to setup.py test usage as it is deprecated
  * Update the copyring and SUSE header string wrt #264
  * Ignore hpc_configure macro from bracketing

OBS-URL: https://build.opensuse.org/request/show/747374
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=142
2019-11-11 15:02:33 +00:00
Tomáš Chvátal
bee456b98f Accepting request 733443 from home:kstreitova:branches:openSUSE:Tools
- Update to 1.1.5 bsc#1099674:
  * Use https in URL in spec-cleaner.spec test
  * Remove duplicated backslash in regexp
  * Parallelize test run
  * Add jupyter_move_config to excludes from bracketing
  * Do not fail if URL is ftp:// or other protocol
  * Make xdist enabled by default on all test runs and add xdist to deps
  * By default remove groups from packages
- remove spec-cleaner-1.1.4_test_https.patch that is no longer needed

OBS-URL: https://build.opensuse.org/request/show/733443
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=140
2019-09-26 13:16:32 +00:00
cae59089e7 Accepting request 716031 from home:kstreitova:branches:openSUSE:Tools
- Update to 1.1.4 bsc#1099674:
  * Exclude stuff from openstack macros
  * Replace 'http' with 'https' in URL
  * Replace legacy packageand() with 'and' expression
  * Replace pwdutils with shadow in Requires
  * Add openstack_cleanup_prep to bracketing excludes
  * Do not curlify yast_metainfo and yast_check
  * Fixup the eating of Source lines with whitespace
  * Document '#nospeccleaner' tag
  * Add docstrings to the functions and classes.
  * Use type hints for the most important functions
  * Update README and licences
  * Various small fixes 
- add a temporary patch spec-cleaner-1.1.4_test_https.patch
  that fixes a test that fails if there is no internet connection

OBS-URL: https://build.opensuse.org/request/show/716031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=138
2019-07-17 11:27:48 +00:00
Tomáš Chvátal
75fe15a541 - Update to 1.1.3 bsc#1099674:
* Convert pytest calls to macros
  * Fix errors in %python_expand line expansions
  * update licenses list
  * Expand more excludes for curlification
  * Do not add accidental newlines to complex conditions

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=136
2019-03-07 12:39:24 +00:00
Tomáš Chvátal
930825d210 - Version update to 1.1.2 bsc#1099674:
* Fixed qmake macro recommendation
  * More licenses recognised
  * Do not curlify sysuser_create

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=134
2018-12-13 11:35:20 +00:00
Tomáš Chvátal
6de08b7d76 - Version update to 1.1.1 bsc#1099674:
* Fix help message not working
  * Make libexecdir opt-in rather than opt-out
  * Account for LICENCE string not just LICENSE
  * Warn about direct qmake/meson usage
  * Use https when mentioning bugzilla in header
  * Use tuples on some places rather than lists

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=132
2018-08-20 07:19:53 +00:00
Tomáš Chvátal
523e2b6407 - Version update to 1.1.0 bsc#1099674:
* Fix issue with previous release not finding datadirs

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=130
2018-07-01 16:07:40 +00:00
Tomáš Chvátal
be932e9ec1 - Version uppdate to 1.0.9 bsc#1099674:
* Move some checks from rpmlint to be autochecked
  * Dropped support of py2
  * Fixed error reported on parsing non-utf spec-file
  * Leap 15.0 used as base for conversions to pkgconfig/etc.

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=128
2018-06-29 11:29:10 +00:00
Tomáš Chvátal
fab77adebf - Version update to 1.0.8 bsc#1092933:
* Be case insensitive on license detection
  * Exclude limit_build from bracketing
  * Replace _libexecdir as we now do not really bother about
    SLE11

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=126
2018-05-11 12:49:08 +00:00
Tomáš Chvátal
0181b321bc - Version update to 1.0.7 bsc#1089297:
* Fix haskell macro bracketing
  * Fix firewalld macros bracketing

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=124
2018-04-12 08:16:21 +00:00
Tomáš Chvátal
6a72055e1d - Version update to 1.0.6 release:
* Fixes license conversions to spdx3.0
  * Allows better parsing of pattern packages
  * Various manpage suffixing fixes
  * Added more things to exclude bracketing

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=122
2018-03-06 20:13:29 +00:00
Tomáš Chvátal
7a34e69c3f - Fix issue with the %doc -> %license conversion in some complex
cases, multiple licenses at once, prefixed licenses

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=120
2018-02-28 14:35:35 +00:00
Tomáš Chvátal
65feac017b OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=118 2018-02-15 09:31:39 +00:00
Tomáš Chvátal
f67131a1ac OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=117 2018-02-15 09:29:43 +00:00
Tomáš Chvátal
22e3ebe066 - Drop the debian control things, all releases fail to build
- Update to 1.0.3:
  * Fix various lint issues
  * Switch to SPDX-3.0 license format
  * Add %doc -> %license conversion script
  * Fix crash bugs found when scanning whole Tumbleweed repo

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=116
2018-02-15 09:29:01 +00:00
Tomáš Chvátal
b94bf0e2d5 - Version update to 1.0.2 bsc#1077177:
* Allow changelog-year specification via cmdline
  * Switch to pytest
  * Add groups for rust
  * Fix bug in otherprovides removal

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=114
2018-01-23 10:02:49 +00:00
Tomáš Chvátal
0c85362868 - Version update to 1.0.1 bsc#1071561:
* Recognize new rpm trgger* events
  * Remove otherproviders conflicts syntax (just keep the pkg name)
  * Detect more apache macros
  * Drop py_requires macro that is useless

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=112
2017-12-06 15:57:12 +00:00
Tomáš Chvátal
a95170cb6f - Version update to 1.0.0 bsc#1060402:
* Recognise the BuildConflicts tag
  * Fix few make parsing errors
  * Fix some codeblock error detection
  * More path replacements detection
  * Keep uppercase URL tag as per vote

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=110
2017-09-26 10:45:01 +00:00
Tomáš Chvátal
9512619507 - Version update to 0.9.9:
* Include pkgconfig and others from leap 42.3 instead of 42.2

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=109
2017-08-09 11:40:24 +00:00
Tomáš Chvátal
c54ec6f814 - Version update to 0.9.8 bsc#1046652:
* Various fixes as reported on github
  * Remove defattr as default from new rpm should be enough
  * Remove buildroot as new rpms do not need it at all

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=107
2017-06-29 11:30:12 +00:00
Tomáš Chvátal
60ca7b0f60 - Version update to 0.9.7:
* Fix help parsing that crashed the app on execution

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=105
2017-06-12 08:59:35 +00:00
Tomáš Chvátal
4b2a311be1 - Version update to 0.9.6:
* Deduplication of requires/buildrequires
  * Preamble detection fixups
  * Detect buildignores

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=103
2017-06-08 11:24:35 +00:00
Tomáš Chvátal
2f0e254de6 - Version update to 0.9.5:
* More fixes for the dep_parser
  * Convert pypy urls to new format
  * Start of rpmpreamble cleanup

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=101
2017-05-17 12:41:32 +00:00
Tomáš Chvátal
d243e02e44 - Version update to 0.9.4:
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=99
2017-04-10 10:32:08 +00:00
Tomáš Chvátal
be7954871c - Version update to 0.9.3:
* Fixes in the dep_parser
  * Vertical whitespace is now safeguarded
  * More excludes_bracketing
  * Update list of known licenses

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=98
2017-04-08 09:22:19 +00:00
Tomáš Chvátal
29d87fb477 Accepting request 460665 from home:pluskalm:branches:openSUSE:Tools
- Update to version 0.9.3:
  * Fix regression (gh#openSUSE/spec-cleaner#171)

OBS-URL: https://build.opensuse.org/request/show/460665
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=96
2017-02-27 10:27:50 +00:00
Tomáš Chvátal
93ce2f755d - Version update to 0.9.2:
* More minimal fixes
  * Add option to keep vertical space in preamble if desired

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=94
2017-02-13 12:24:30 +00:00
Tomáš Chvátal
e7fbaefb7e - Version update to 0.9.1:
* Switch from regexp macro detection to full-blown parser to avoid
    bugs

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=92
2016-12-30 20:46:22 +00:00
Tomáš Chvátal
94559f8a2a - Version update to 0.9.0:
* Various small fixes
  * Support for tex/perl/cmake conversions:
    + bla-devel -> cmake(bla)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=90
2016-06-30 15:50:42 +00:00
Tomáš Chvátal
e70d48a7cc - Version update to 0.8.9:
* Fix one more virtualenv issue
  * Fix one case of broken requires splitting
  * Properly initialize unbracketing in regexps
  * Fix one more case of double pkg-config dependency

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=88
2016-06-06 11:00:39 +00:00
Tomáš Chvátal
67159bed7d - Version update to 0.8.8:
* Various install fixes for pypi
  * Few small fixes for copyiright parsing
  * Add ghc_ macros to known exclude for bracketing

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=86
2016-05-19 13:41:27 +00:00
Tomáš Chvátal
69a935a843 - Version update to 0.8.5:
* Fix for pkgconfig adding in preamble section

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=84
2016-05-11 20:09:28 +00:00
Tomáš Chvátal
6291e5ebc9 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=83 2016-05-11 12:30:04 +00:00
Tomáš Chvátal
32f41bb31b - Version update to 0.8.4:
* 0.8.3 skipped due to pypi mistake
  * set suffix for manpages/infopages
  * remove suse_update_config
  * remove more authors blobs
  * redo options passing to be more readable
  * split out testsuite (now runs ~270 tests)
  * few bracketing excludes updates
  * Fix the no-header option to do what everyone would expect

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=82
2016-05-11 11:28:17 +00:00
Tomáš Chvátal
f87afc2277 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=80 2016-04-30 15:40:07 +00:00
Tomáš Chvátal
61ec348af2 - Version update to 0.8.2:
* Add switch to disable copyright generating
  * Few small fixes
  * Tweak pkgconfig addition to work on all distros not just openSUSE

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=79
2016-04-29 20:43:21 +00:00
Tomáš Chvátal
54e8950ec5 - Version update to 0.8.1:
* Sort out AUTHORS alphabetically and fix emails
  * Fix FIXME addition to all ./configure calls
  * Fix breakage on some buildrequires syntax

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=77
2016-04-14 19:38:49 +00:00
Tomáš Chvátal
19d92c3ddb OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=75 2016-04-13 12:49:21 +00:00