SHA256
1
0
forked from pool/rpmlint

Accepting request 541862 from home:dimstar:Factory

- Add rpmlint-slpp-NUM-NUM.patch: Match libFOO<num>-<num> as a
  valid dependency on a libary. According the openSUSE packaging
  policy, if the library name ends on a number, we add a dash
  between the basename (before the .so) and the version after .so.

OBS-URL: https://build.opensuse.org/request/show/541862
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=546
This commit is contained in:
Dirk Mueller 2017-11-16 10:51:37 +00:00 committed by Git OBS Bridge
parent cb46d50929
commit 9792c2c48b
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: rpmlint-rpmlint-1.10/TagsCheck.py
===================================================================
--- rpmlint-rpmlint-1.10.orig/TagsCheck.py
+++ rpmlint-rpmlint-1.10/TagsCheck.py
@@ -673,7 +673,7 @@ class TagsCheck(AbstractCheck.AbstractCh
base_or_libs = base + '*' + '/' + base + '-libs/lib' + base + '*'
# try to match *%_isa as well (e.g. "(x86-64)", "(x86-32)")
base_or_libs_re = re.compile(
- r'^(lib)?%s(-libs)?[\d_]*(\(\w+-\d+\))?$' % re.escape(base))
+ r'^(lib)?%s(-libs)?[\d_-]*(\(\w+-\d+\))?$' % re.escape(base))
for d in deps:
if base_or_libs_re.match(d[0]):
dep = d

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Nov 14 15:47:20 UTC 2017 - dimstar@opensuse.org
- Add rpmlint-slpp-NUM-NUM.patch: Match libFOO<num>-<num> as a
valid dependency on a libary. According the openSUSE packaging
policy, if the library name ends on a number, we add a dash
between the basename (before the .so) and the version after .so.
-------------------------------------------------------------------
Fri Nov 03 08:10:16 UTC 2017 - opensuse-packaging@opensuse.org

View File

@ -88,6 +88,7 @@ Patch68: 0001-Avoid-false-positives-on-is_elf-check.patch
Patch69: 0007-Validate-Appdata-also-when-appstream-util-is-unavail.patch
Patch70: rpmlint-all-pie.patch
Patch71: 0001-Avoid-calling-close-on-undefined-fd-variable.patch
Patch72: rpmlint-slpp-NUM-NUM.patch
BuildRequires: obs-service-format_spec_file
BuildRequires: python3-flake8
BuildRequires: python3-pytest