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
|
|
|
#
|
2016-01-13 16:09:37 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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
|
2016-01-28 08:20:40 +01:00
|
|
|
BuildRequires: python-pytest
|
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
|
2015-11-26 11:24:13 +01:00
|
|
|
Version: 1.8
|
2011-12-13 18:13:54 +01:00
|
|
|
Release: 0
|
2015-11-26 11:24:13 +01:00
|
|
|
Source0: https://github.com/rpm-software-management/rpmlint/archive/rpmlint-%{version}.tar.gz
|
2015-10-14 16:27:51 +02:00
|
|
|
Source1: rpmlint-checks-master.tar.xz
|
2012-09-26 15:45:06 +02:00
|
|
|
Source2: config
|
|
|
|
Source3: config.in
|
|
|
|
Source11: pie.config
|
|
|
|
Source12: licenses.config
|
2015-05-06 17:14:09 +02:00
|
|
|
Source98: update_git.sh
|
2014-01-30 14:29:11 +01:00
|
|
|
Source99: README.packaging.txt
|
2008-04-17 04:52:37 +02:00
|
|
|
Source100: syntax-validator.py
|
2015-11-26 11:24:13 +01:00
|
|
|
Url: https://github.com/rpm-software-management/rpmlint
|
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
|
2012-10-04 13:32:25 +02:00
|
|
|
#
|
|
|
|
# Read README.packaging.txt before making any changes to this
|
|
|
|
# package
|
|
|
|
#
|
2015-04-10 16:35:46 +02:00
|
|
|
# PATCHLIST BEGIN
|
|
|
|
Patch00: rpmlint-suse.diff
|
|
|
|
Patch01: suse-checks.diff
|
|
|
|
Patch02: suse-version.diff
|
|
|
|
Patch03: suse-url-check.diff
|
|
|
|
Patch04: suse-python3-naming-policy.diff
|
|
|
|
Patch05: suse-filesystem.diff
|
|
|
|
Patch06: suse-pkg-config-check.diff
|
|
|
|
Patch07: suse-binarieschecks.diff
|
|
|
|
Patch08: no-doc-for-lib.diff
|
|
|
|
Patch09: suse-filter-exception.diff
|
|
|
|
Patch10: usr-arch.diff
|
|
|
|
Patch11: script-interpreter-only-for-exec-sc.diff
|
|
|
|
Patch12: sourced-dirs.diff
|
|
|
|
Patch13: suse-filter-more-verbose.diff
|
|
|
|
Patch14: docdata-examples.diff
|
|
|
|
Patch15: yast-provides.diff
|
|
|
|
Patch16: xdg-paths-update.diff
|
|
|
|
Patch17: better-wrong-script.diff
|
|
|
|
Patch18: buildroot-doc.diff
|
|
|
|
Patch19: rpmgroup-checks.diff
|
|
|
|
Patch20: devel-provide-is-devel-package.diff
|
|
|
|
Patch21: only-reg-files-are-scripts.diff
|
|
|
|
Patch22: buildroot-in-scripts.diff
|
|
|
|
Patch23: libtool-wrapper-check.diff
|
|
|
|
Patch24: suse-check-optional-dependencies.diff
|
|
|
|
Patch25: noarch-lib64.diff
|
|
|
|
Patch26: suse-no-run-ldconfig.diff
|
|
|
|
Patch27: description-check.diff
|
|
|
|
Patch28: add-weak-dependencies.diff
|
|
|
|
Patch29: selfconflicts-provide.diff
|
|
|
|
Patch30: no-badness-return.diff
|
|
|
|
Patch31: suse-shlib-devel-dependency.diff
|
|
|
|
Patch32: version-control-internal-file.diff
|
2015-11-26 11:24:13 +01:00
|
|
|
Patch33: stricter-interpreter-check.diff
|
|
|
|
Patch34: confusing-invalid-spec-name.diff
|
|
|
|
Patch35: rpmlint-pkg-quoting.diff
|
|
|
|
Patch36: suse-g-ir-chech.diff
|
|
|
|
Patch37: remove-expand-macros.diff
|
|
|
|
Patch38: suse-whitelist-opensuse.diff
|
|
|
|
Patch39: extend-suse-conffiles-check.diff
|
|
|
|
Patch40: compressed-backup-regex.diff
|
|
|
|
Patch41: suse-speccheck-utf8.diff
|
|
|
|
Patch42: suse-python-abi-check.diff
|
|
|
|
Patch43: suse-manpages-for-rc-scripts.diff
|
|
|
|
Patch44: suse-ignore-specfile-errors.diff
|
|
|
|
Patch45: invalid-filerequires.diff
|
|
|
|
Patch46: suse-sysv-init-checks.diff
|
|
|
|
Patch47: check-for-self-provides.diff
|
|
|
|
Patch48: add-check-for-tmpfiles-created-at-r.diff
|
|
|
|
Patch49: remove-files-attr-not-set-check.diff
|
2015-11-30 14:31:03 +01:00
|
|
|
Patch50: fix-shared-library-matching.diff
|
2016-01-21 13:19:22 +01:00
|
|
|
# https://github.com/rpm-software-management/rpmlint/commit/1436dd7bc41115af658cf8f36a3149ab90a61fcf.patch
|
|
|
|
Patch51: postin-speedup.diff
|
|
|
|
# https://github.com/rpm-software-management/rpmlint/commit/37fe9d4f237c2cb29fcb3b60d1ece189e578eeaf.patch and followup regression fixes
|
2016-01-30 20:44:17 +01:00
|
|
|
Patch52: binaryinfo-speedup.diff
|
2015-04-10 16:35:46 +02:00
|
|
|
# PATCHLIST END
|
2015-11-13 13:32:29 +01:00
|
|
|
# BuildArch must at the end. is a bug: https://bugzilla.suse.com/show_bug.cgi?id=926766
|
2015-04-10 16:35:46 +02:00
|
|
|
BuildArch: noarch
|
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
|
2015-11-26 11:24:13 +01:00
|
|
|
%autosetup -n rpmlint-rpmlint-%{version} -a1 -p1
|
2015-06-30 10:52:30 +02:00
|
|
|
|
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
|
|
|
|
2016-01-28 08:20:40 +01:00
|
|
|
%check
|
|
|
|
sh ./test.sh
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,0755)
|
2015-11-26 11:24:13 +01:00
|
|
|
%doc COPYING INSTALL README*
|
2008-04-17 04:52:37 +02:00
|
|
|
%{_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
|
2015-04-10 16:35:46 +02:00
|
|
|
/usr/share/man/man1/rpmdiff.1.gz
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
%changelog
|