14
0

71 Commits

Author SHA256 Message Date
4031893446 Accepting request 1086509 from home:david.anes:branches:devel:languages:python
- Update to version 0.17.0: 
  * Added a new guess_packager() function that uses similar
    heuristics as rpmdev-packager, meaning that the 
    Specfile.add_changelog_entry() method no longer requires
    rpmdev-packager to guess the changelog entry author. (#220)
  * The Specfile.add_changelog_entry() method now uses dates based
    on UTC instead of the local timezone. (#223)

OBS-URL: https://build.opensuse.org/request/show/1086509
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=21
2023-05-11 13:29:15 +00:00
150fe111ae Accepting request 1082743 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1082743
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=10
2023-04-25 14:43:01 +00:00
4dcf8e2e65 Accepting request 1082646 from home:david.anes:branches:devel:languages:python
- Update to version 0.16.0:
  * Added Specfile.has_autorelease property to detect if a spec 
    file uses the %autorelease macro. (#221)

OBS-URL: https://build.opensuse.org/request/show/1082646
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=19
2023-04-25 11:45:50 +00:00
08a2180ac9 Accepting request 1071125 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1071125
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=9
2023-03-14 17:16:13 +00:00
94252e45e3 Accepting request 1071124 from home:david.anes:branches:devel:languages:python
- Update to version 0.15.0: 
  * Parsing the spec file by RPM is now performed only if really
    necessary, greatly improving performance in certain scenarios. 
    (#212)
  * Checked that license is a valid SPDX license.

OBS-URL: https://build.opensuse.org/request/show/1071124
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=17
2023-03-13 12:48:53 +00:00
6478b06c3a Accepting request 1067894 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1067894
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=8
2023-02-27 11:55:32 +00:00
27bb4efa05 Accepting request 1067714 from home:david.anes:branches:devel:languages:python
- Update to version 0.14.0:
  * Fixed a bug that broke parsing in case spec file contained 
    conditionalized macro definitions or similar constructs
  * Specfile no longer depends on rpm-py-installer, it now depends 
    directly on rpm.

OBS-URL: https://build.opensuse.org/request/show/1067714
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=15
2023-02-27 07:17:02 +00:00
0613ad57ae Accepting request 1063412 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1063412
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=7
2023-02-06 13:15:54 +00:00
d92121526b Accepting request 1063358 from home:david.anes:branches:devel:languages:python
- Update to version 0.13.2:
  * Fixed infinite loop that occured when section options were 
    followed by whitespace.

OBS-URL: https://build.opensuse.org/request/show/1063358
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=13
2023-02-06 12:29:06 +00:00
c16357f463 Accepting request 1060525 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1060525
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=6
2023-01-24 18:43:13 +00:00
547096a561 Accepting request 1060457 from home:david.anes:branches:devel:languages:python
- Update to version 0.13.1:
  * Fixed a bug in section parsing that caused sections to be 
    ignored when there were macro definitions spread across the spec
    file and not cumulated at the top.
- Update to version 0.13.0: 
  * Added Section.options attribute for convenient manipulation of
    section options.
  * specfile now supports single-line sections where section content
    is represented by a macro starting with a newline.
  * Added evr argument to Specfile.add_changelog_entry(). This
    allows adding a changelog entry with an EVR value that's
    different from the current specfile's value. This makes it
    easier to reconstruct a specfile's %changelog based on another
    source using the higher level interface.

OBS-URL: https://build.opensuse.org/request/show/1060457
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=11
2023-01-23 22:00:59 +00:00
dab25b9619 Accepting request 1057972 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1057972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=5
2023-01-12 21:45:12 +00:00
b02692ea31 Accepting request 1057959 from home:david.anes:branches:devel:languages:python
- Remove patch (already upstream):
  * python-specfile-improve-setup-cfg.patch
- Update to version 0.12.0:
  * All classes including `Specfile` itself can now be copied using
    the standard `copy()` and `deepcopy()` functions from `copy` 
    module.
  * `Section.name` attribute has been renamed to a more fitting 
    `Section.id`.
  * `setup.cfg` now uses `license_files` instead of deprecated 
    `license_file`.

  * Fixed context managers being shared between Specfile instances.

OBS-URL: https://build.opensuse.org/request/show/1057959
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=9
2023-01-12 11:54:06 +00:00
ccd38120c2 Accepting request 1043095 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1043095
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=4
2022-12-15 18:25:48 +00:00
647460f018 Accepting request 1043093 from home:david.anes:branches:devel:languages:python
- Add config.cfg improvements to remove deprecation warnings
  * python-specfile-improve-setup-cfg.patch
- Update to version 0.11.1
  * Tags enclosed in conditional macro expansions are not ignored 
    anymore.
  * Fixed context managers being shared between Specfile instances. 1q
- Update to version 0.11.0 
  * Context managers (Specfile.sections(), Specfile.tags() etc.) can
    now be nested and combined together (with one exception - 
    Specfile.macro_definitions()), and it is also possible to use 
    tag properties (e.g. Specfile.version, Specfile.license) inside 
    them. It is also possible to access the data directly, avoiding 
    the with statement, by using the content property 
    (e.g. Specfile.tags().content), but be aware that no 
    modifications done to such data will be preserved. You must use 
    with to make changes.

OBS-URL: https://build.opensuse.org/request/show/1043093
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=7
2022-12-15 10:33:46 +00:00
473d119710 Accepting request 1039206 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1039206
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=3
2022-12-01 15:59:45 +00:00
ec1765db00 Accepting request 1039167 from home:david.anes:branches:devel:languages:python
- Update to version 0.10.0 
  * Fixed an issue that caused empty lines originally inside 
    changelog entries to appear at the end. (#140)
  * Renamed the ignore_missing_includes option to a more general 
    force_parse. If specified, it allows to attempt to parse the 
    spec file even if one or more sources required to be present at 
    parsing time are not available. Such sources include sources 
    referenced from shell expansions in tag values and sources 
    included using the %include directive. (#137)

OBS-URL: https://build.opensuse.org/request/show/1039167
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=5
2022-11-30 22:17:37 +00:00
31c4939e21 Accepting request 1035243 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1035243
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=2
2022-11-12 16:40:56 +00:00
b9aa631bca Accepting request 1034926 from home:yarunachalam:branches:devel:languages:python
- Update to version 0.9.0 
  * Added utility classes for working with (N)EVR. (#113)
  * Fixed an issue with multiple instances of Specfile not expanding macros in the right context. (#117)

OBS-URL: https://build.opensuse.org/request/show/1034926
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=3
2022-11-11 13:04:39 +00:00
915f7ddba1 Accepting request 1031183 from devel:languages:python
Seems useful.

OBS-URL: https://build.opensuse.org/request/show/1031183
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=1
2022-10-26 10:31:31 +00:00
750b983db7 Accepting request 1031109 from home:dgarcia:py-new
- Update to version v0.8.0
  * Added Specfile.update_tag() method that allows updating tag values while
    trying to preserve macro expansions. You can watch a demo on YouTube.
    (#101)
- 0.7.0
  * It is now possible to filter changelog entries by specifying lower bound
    EVR, upper bound EVR or both. (#104)
  * Added support for filenames specified in source URL fragments, for example:
    https://example.com/foo/1.0/download.cgi#/%{name}-%{version}.tar.gz (#100)

OBS-URL: https://build.opensuse.org/request/show/1031109
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=1
2022-10-25 18:16:47 +00:00