2008-04-17 04:52:37 +02:00
|
|
|
#
|
2011-01-14 14:41:20 +01:00
|
|
|
# spec file for package rpmlint
|
2008-04-17 04:52:37 +02:00
|
|
|
#
|
2014-01-30 10:27:59 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-04-17 04:52:37 +02:00
|
|
|
#
|
2008-08-06 01:56:12 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-04-17 04:52:37 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-11 18:32:22 +01:00
|
|
|
|
2009-08-28 22:12:54 +02:00
|
|
|
#!BuildIgnore: rpmlint-mini
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
Name: rpmlint
|
2011-12-19 10:45:15 +01:00
|
|
|
BuildRequires: obs-service-format_spec_file
|
2011-12-13 18:13:54 +01:00
|
|
|
BuildRequires: rpm-python
|
|
|
|
BuildRequires: xz
|
2008-04-17 04:52:37 +02:00
|
|
|
Summary: Rpm correctness checker
|
2011-12-13 18:13:54 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Packages
|
2013-06-28 15:29:34 +02:00
|
|
|
Version: 1.5
|
2011-12-13 18:13:54 +01:00
|
|
|
Release: 0
|
2013-06-28 15:29:34 +02:00
|
|
|
Source0: https://downloads.sourceforge.net/project/rpmlint/rpmlint-%{version}.tar.xz
|
2012-09-26 15:45:06 +02:00
|
|
|
Source1: rpmlint-checks-master.tar.gz
|
|
|
|
Source2: config
|
|
|
|
Source3: config.in
|
|
|
|
Source11: pie.config
|
|
|
|
Source12: licenses.config
|
2014-01-30 14:29:11 +01:00
|
|
|
Source99: README.packaging.txt
|
2008-04-17 04:52:37 +02:00
|
|
|
Source100: syntax-validator.py
|
2013-06-28 15:29:34 +02:00
|
|
|
Url: https://sourceforge.net/projects/rpmlint/
|
2008-04-17 04:52:37 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-02-29 12:02:50 +01:00
|
|
|
Requires: /usr/bin/readelf
|
|
|
|
Requires: bash
|
|
|
|
Requires: checkbashisms
|
|
|
|
Requires: cpio
|
|
|
|
Requires: dash
|
2008-04-17 04:52:37 +02:00
|
|
|
Requires: desktop-file-utils
|
2012-02-29 12:02:50 +01:00
|
|
|
Requires: file
|
|
|
|
Requires: findutils
|
2010-02-01 12:21:22 +01:00
|
|
|
Requires: python-magic
|
2012-02-29 12:02:50 +01:00
|
|
|
Requires: rpm-python
|
2013-09-16 13:16:48 +02:00
|
|
|
# Requirement for ErlangCheck.py (pull-request #2).
|
|
|
|
Requires: python-pybeam
|
2008-04-17 04:52:37 +02:00
|
|
|
BuildArch: noarch
|
2012-10-04 13:32:25 +02:00
|
|
|
#
|
|
|
|
# Read README.packaging.txt before making any changes to this
|
|
|
|
# package
|
|
|
|
#
|
2008-04-17 04:52:37 +02:00
|
|
|
Patch0: rpmlint-suse.diff
|
2010-04-05 18:53:54 +02:00
|
|
|
Patch1: suse-checks.diff
|
2008-04-17 04:52:37 +02:00
|
|
|
Patch2: suse-version.diff
|
2010-04-05 18:53:54 +02:00
|
|
|
Patch3: suse-url-check.diff
|
2012-07-05 14:31:37 +02:00
|
|
|
Patch5: suse-python3-naming-policy.diff
|
2008-04-17 04:52:37 +02:00
|
|
|
Patch6: suse-filesystem.diff
|
2010-04-26 23:35:02 +02:00
|
|
|
Patch7: suse-pkg-config-check.diff
|
2010-05-03 23:18:30 +02:00
|
|
|
Patch8: suse-binarieschecks.diff
|
2008-04-17 04:52:37 +02:00
|
|
|
Patch9: no-doc-for-lib.diff
|
|
|
|
Patch10: add-scoring-support.diff
|
2013-02-26 12:10:08 +01:00
|
|
|
Patch11: suse-filter-exception.diff
|
2008-04-17 04:52:37 +02:00
|
|
|
Patch12: usr-arch.diff
|
|
|
|
Patch13: script-interpreter-only-for-exec-scripts.diff
|
|
|
|
Patch14: sourced-dirs.diff
|
2013-02-26 12:10:08 +01:00
|
|
|
Patch15: suse-filter-more-verbose.diff
|
2008-04-17 04:52:37 +02:00
|
|
|
Patch17: docdata-examples.diff
|
2014-02-21 15:54:14 +01:00
|
|
|
Patch18: 0001-Python-3-compatibility-tweaks.patch
|
2008-04-17 04:52:37 +02:00
|
|
|
Patch19: yast-provides.diff
|
|
|
|
Patch20: xdg-paths-update.diff
|
|
|
|
Patch22: better-wrong-script.diff
|
|
|
|
Patch23: buildroot-doc.diff
|
|
|
|
Patch24: sysv5-init-checks.diff
|
|
|
|
Patch26: ignore-non-readable-in-etc.diff
|
|
|
|
Patch29: rpmgroup-checks.diff
|
|
|
|
Patch30: devel-provide-is-devel-package.diff
|
|
|
|
Patch31: only-reg-files-are-scripts.diff
|
|
|
|
Patch33: check-buildroot-during-install.diff
|
|
|
|
Patch34: verify-buildrequires.diff
|
|
|
|
Patch35: fix-versioned-prereq.diff
|
|
|
|
Patch37: buildroot-in-scripts.diff
|
|
|
|
Patch39: libtool-wrapper-check.diff
|
|
|
|
Patch41: perl-versioned-rpath-deps.diff
|
2010-04-26 23:35:02 +02:00
|
|
|
Patch42: suse-check-optional-dependencies.diff
|
2008-04-17 04:52:37 +02:00
|
|
|
Patch46: locale-support.diff
|
2009-08-28 22:12:54 +02:00
|
|
|
# not is also in CheckFilelist.py
|
2008-04-17 04:52:37 +02:00
|
|
|
Patch47: noarch-lib64.diff
|
|
|
|
Patch49: stricter-tags-check.diff
|
|
|
|
Patch50: suse-no-run-ldconfig.diff
|
|
|
|
Patch51: description-check.diff
|
2009-08-28 22:12:54 +02:00
|
|
|
# this is the wrong place here
|
2008-04-17 04:52:37 +02:00
|
|
|
Patch52: suppress-for-perl-python.diff
|
2008-04-21 18:36:30 +02:00
|
|
|
Patch54: locale-update.diff
|
2008-05-01 14:19:31 +02:00
|
|
|
Patch57: suse-mono-deps-checks.diff
|
|
|
|
Patch58: add-weak-dependencies.diff
|
2008-06-22 01:52:46 +02:00
|
|
|
Patch60: selfconflicts-provide.diff
|
2008-06-25 19:08:32 +02:00
|
|
|
Patch62: no-badness-return.diff
|
2008-07-25 04:49:34 +02:00
|
|
|
Patch65: suse-shlib-devel-dependency.diff
|
2008-08-06 01:56:12 +02:00
|
|
|
Patch67: suse-required-lsb-tags.diff
|
2008-08-15 01:45:54 +02:00
|
|
|
Patch68: more-verbose-lsb-check.diff
|
2008-11-18 13:33:47 +01:00
|
|
|
Patch71: suse-binary-info-compile-opts.diff
|
2009-02-26 18:32:29 +01:00
|
|
|
Patch72: version-control-internal-file.diff
|
2009-10-08 02:54:02 +02:00
|
|
|
Patch73: avoid-mismatched-libregex.diff
|
2010-04-06 22:38:58 +02:00
|
|
|
Patch74: filename-non-utf8-exception.diff
|
2010-04-26 23:35:02 +02:00
|
|
|
Patch75: stricter-interpreter-check.diff
|
2010-08-01 17:30:35 +02:00
|
|
|
Patch76: confusing-invalid-spec-name.patch
|
2010-10-14 14:32:03 +02:00
|
|
|
Patch77: rpmlint-pkg-quoting.diff
|
|
|
|
Patch78: suse-g-ir-chech.diff
|
2010-11-16 01:16:49 +01:00
|
|
|
Patch80: remove-expand-macros.diff
|
|
|
|
Patch81: suse-whitelist-opensuse.diff
|
2010-11-26 17:47:21 +01:00
|
|
|
Patch84: extend-suse-conffiles-check.diff
|
2010-12-20 14:33:16 +01:00
|
|
|
Patch85: suse-changelog.patch
|
2013-06-28 15:29:34 +02:00
|
|
|
Patch87: compressed-backup-regex.diff
|
2011-05-17 12:42:54 +02:00
|
|
|
# accepted upstream
|
2011-04-26 15:26:38 +02:00
|
|
|
Patch88: suse-speccheck-utf8.diff
|
2011-08-20 02:20:26 +02:00
|
|
|
Patch89: suse-python-abi-check.diff
|
2012-12-07 18:20:22 +01:00
|
|
|
# PATCH-FIX-OPENSUSE: saschpe@suse.de - Don't complain about missing man-pages for rc-scripts
|
|
|
|
Patch91: suse-manpages-for-rc-scripts.patch
|
2013-07-30 15:46:54 +02:00
|
|
|
# PATCH-FIX-UPSTREAM: lnussel@suse.de - Fix setgroups error name
|
|
|
|
Patch92: rpmlint-1.5-Fix-setgroups-error-name.diff
|
2013-08-06 11:21:50 +02:00
|
|
|
Patch93: xdg-check-exception.diff
|
2013-08-07 12:09:42 +02:00
|
|
|
Patch94: suse-ignore-specfile-errors.diff
|
2014-02-21 15:54:14 +01:00
|
|
|
Patch95: invalid-filerequires.diff
|
2014-02-27 10:03:58 +01:00
|
|
|
Patch96: rpmlint-decode-fix.diff
|
2014-02-27 17:19:54 +01:00
|
|
|
Patch97: rpmlint-fix-unexpanded-macros-for-array-values.patch
|
2014-05-05 17:17:36 +02:00
|
|
|
# PATCH-FIX-UPSTREAM: lnussel@suse.de - disallow /var/run and /var/lock
|
|
|
|
Patch98: rpmlint-1.5-disallow-var-run-and-var-lock.diff
|
2014-05-08 10:55:44 +02:00
|
|
|
Patch99: 0001-Set-Python-3.4-magic-number-to-3310.patch
|
2012-12-07 18:20:22 +01:00
|
|
|
|
2008-04-17 04:52:37 +02:00
|
|
|
%py_requires
|
|
|
|
|
|
|
|
%description
|
|
|
|
Rpmlint is a tool to check common errors on rpm packages. Binary and
|
|
|
|
source packages can be checked.
|
|
|
|
|
|
|
|
%prep
|
2012-09-26 15:45:06 +02:00
|
|
|
%setup -q -n rpmlint-%{version} -a1
|
2009-08-28 22:12:54 +02:00
|
|
|
%patch0
|
2010-04-05 18:53:54 +02:00
|
|
|
%patch1
|
2008-04-17 04:52:37 +02:00
|
|
|
%patch2
|
|
|
|
%patch3
|
2012-07-05 14:31:37 +02:00
|
|
|
%patch5
|
2008-04-17 04:52:37 +02:00
|
|
|
%patch6
|
2010-04-26 23:35:02 +02:00
|
|
|
%patch7
|
2008-06-25 19:08:32 +02:00
|
|
|
%patch8
|
2008-04-17 04:52:37 +02:00
|
|
|
%patch9
|
2010-01-27 18:18:50 +01:00
|
|
|
#%patch10
|
2013-02-26 12:08:19 +01:00
|
|
|
%patch11
|
2008-04-17 04:52:37 +02:00
|
|
|
%patch12
|
|
|
|
%patch13
|
|
|
|
%patch14
|
2011-04-27 15:22:17 +02:00
|
|
|
%patch15
|
2008-04-17 04:52:37 +02:00
|
|
|
%patch17
|
2014-02-21 15:54:14 +01:00
|
|
|
%patch18 -p1
|
2008-04-17 04:52:37 +02:00
|
|
|
%patch19
|
|
|
|
%patch20
|
|
|
|
%patch22
|
|
|
|
%patch23
|
2011-04-21 12:12:02 +02:00
|
|
|
%patch24
|
2009-09-16 18:41:21 +02:00
|
|
|
#%patch26
|
2008-04-17 04:52:37 +02:00
|
|
|
%patch29
|
|
|
|
%patch30
|
2010-10-14 14:32:03 +02:00
|
|
|
%patch31
|
2009-09-16 18:41:21 +02:00
|
|
|
# needs rediff
|
|
|
|
#%patch33
|
|
|
|
#%patch34
|
|
|
|
#%patch35
|
2009-08-28 22:12:54 +02:00
|
|
|
%patch37
|
2012-01-04 16:56:54 +01:00
|
|
|
%patch39
|
2009-09-16 18:41:21 +02:00
|
|
|
#%patch41
|
2010-04-26 23:35:02 +02:00
|
|
|
%patch42
|
2009-09-16 18:41:21 +02:00
|
|
|
#%patch46
|
2011-04-27 15:22:17 +02:00
|
|
|
%patch47
|
2009-09-16 18:41:21 +02:00
|
|
|
#%patch49
|
2008-04-17 04:52:37 +02:00
|
|
|
%patch50
|
2009-09-16 18:41:21 +02:00
|
|
|
%patch51
|
|
|
|
#%patch52
|
2010-10-14 14:32:03 +02:00
|
|
|
### rediff!
|
|
|
|
#%patch54
|
2009-09-16 18:41:21 +02:00
|
|
|
#%patch57
|
2009-08-28 22:12:54 +02:00
|
|
|
%patch58
|
2010-10-14 14:32:03 +02:00
|
|
|
%patch60
|
2009-08-28 22:12:54 +02:00
|
|
|
%patch62
|
2010-04-26 23:35:02 +02:00
|
|
|
%patch65
|
2009-09-16 18:41:21 +02:00
|
|
|
#%patch67
|
|
|
|
#%patch68
|
|
|
|
#%patch71
|
2009-08-28 22:12:54 +02:00
|
|
|
%patch72
|
2009-10-08 02:54:02 +02:00
|
|
|
%patch73
|
2010-04-06 22:38:58 +02:00
|
|
|
%patch74
|
2010-04-26 23:35:02 +02:00
|
|
|
%patch75
|
2010-08-01 17:30:35 +02:00
|
|
|
%patch76 -p1
|
2010-10-14 14:32:03 +02:00
|
|
|
%patch77
|
|
|
|
%patch78
|
2010-11-16 01:16:49 +01:00
|
|
|
%patch80
|
|
|
|
%patch81
|
2010-11-26 17:47:21 +01:00
|
|
|
%patch84
|
2011-04-21 12:12:02 +02:00
|
|
|
%patch85
|
2013-06-28 15:29:34 +02:00
|
|
|
%patch87
|
2011-04-26 15:26:38 +02:00
|
|
|
%patch88
|
2011-08-20 02:20:26 +02:00
|
|
|
%patch89
|
2012-12-07 18:20:22 +01:00
|
|
|
%patch91 -p1
|
2013-07-30 15:46:54 +02:00
|
|
|
%patch92 -p1
|
2013-08-06 11:21:50 +02:00
|
|
|
%patch93 -p1
|
2013-08-07 12:09:42 +02:00
|
|
|
%patch94
|
2014-02-21 15:54:14 +01:00
|
|
|
%patch95
|
2014-02-27 10:03:58 +01:00
|
|
|
%patch96 -p1
|
2014-02-27 17:19:54 +01:00
|
|
|
%patch97 -p1
|
2014-05-05 17:17:36 +02:00
|
|
|
%patch98 -p1
|
2014-05-08 10:55:44 +02:00
|
|
|
%patch99 -p1
|
2012-09-26 15:45:06 +02:00
|
|
|
cp -p %{SOURCE2} .
|
|
|
|
# Only move top-level python files
|
|
|
|
chmod 0755 rpmlint-checks-master/*.py
|
|
|
|
mv rpmlint-checks-master/*.py .
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
%build
|
2010-01-27 18:18:50 +01:00
|
|
|
make %{?_smp_mflags}
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2008-09-26 15:19:50 +02:00
|
|
|
# the provided bash-completion does not work and only prints bash errors
|
|
|
|
rm -rf $RPM_BUILD_ROOT/etc/bash_completion.d
|
2008-04-17 04:52:37 +02:00
|
|
|
mv $RPM_BUILD_ROOT/etc/rpmlint/config $RPM_BUILD_ROOT/usr/share/rpmlint/config
|
|
|
|
head -n 8 $RPM_BUILD_ROOT/usr/share/rpmlint/config > $RPM_BUILD_ROOT/etc/rpmlint/config
|
|
|
|
# make sure that the package is sane
|
|
|
|
python -tt %{SOURCE100} $RPM_BUILD_ROOT/usr/share/rpmlint/*.py $RPM_BUILD_ROOT/usr/share/rpmlint/config
|
2012-09-26 15:45:06 +02:00
|
|
|
%__install -m 644 %{SOURCE11} %{buildroot}/%{_sysconfdir}/rpmlint/
|
2011-12-19 10:45:15 +01:00
|
|
|
|
2012-09-26 15:45:06 +02:00
|
|
|
cp %{SOURCE12} licenses.config
|
2011-12-19 10:45:15 +01:00
|
|
|
# note there is a tab character behind the -d, so don't copy&paste lightly
|
|
|
|
cut '-d ' -f1 /usr/lib/obs/service/format_spec_file.files/licenses_changes.txt | tail -n +2 | sort -u | while read l; do
|
|
|
|
sed -i -e "s/\(#VALIDLICENSES\)/\1\n '$l',/" licenses.config
|
|
|
|
done
|
|
|
|
%__install -m 644 licenses.config %{buildroot}/%{_sysconfdir}/rpmlint/
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%doc COPYING ChangeLog INSTALL README*
|
|
|
|
%{_prefix}/bin/*
|
|
|
|
%{_prefix}/share/rpmlint
|
|
|
|
%config(noreplace) /etc/rpmlint/config
|
2011-05-10 13:44:35 +02:00
|
|
|
%config %{_sysconfdir}/rpmlint/pie.config
|
2011-11-29 13:08:58 +01:00
|
|
|
%config %{_sysconfdir}/rpmlint/licenses.config
|
2008-04-17 04:52:37 +02:00
|
|
|
%dir /etc/rpmlint
|
|
|
|
/usr/share/man/man1/rpmlint.1.gz
|
|
|
|
|
|
|
|
%changelog
|