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
|
|
|
#
|
2011-01-10 13:15:03 +01:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-08-28 22:12:54 +02:00
|
|
|
#!BuildIgnore: rpmlint-mini
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
Name: rpmlint
|
|
|
|
BuildRequires: rpm-python
|
|
|
|
Summary: Rpm correctness checker
|
2010-11-05 16:07:58 +01:00
|
|
|
Version: 1.0
|
2011-03-22 13:04:34 +01:00
|
|
|
Release: 25
|
2008-04-17 04:52:37 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: config
|
2008-04-21 18:36:30 +02:00
|
|
|
Source1001: config.in
|
2008-04-17 04:52:37 +02:00
|
|
|
Source2: DesktopTranslationCheck.py
|
|
|
|
Source3: DuplicatesCheck.py
|
|
|
|
Source4: CheckBuildRoot.py
|
|
|
|
Source5: CheckExecDocs.py
|
|
|
|
Source6: CheckPkgConfig.py
|
|
|
|
Source7: LibraryPolicyCheck.py
|
|
|
|
Source8: CheckCommonFiles.py
|
|
|
|
Source9: CheckInitScripts.py
|
|
|
|
Source10: CheckIconSizes.py
|
2008-04-21 18:36:30 +02:00
|
|
|
Source11: BrandingPolicyCheck.py
|
2008-05-01 14:19:31 +02:00
|
|
|
Source12: CheckKDE4Deps.py
|
|
|
|
Source13: KMPPolicyCheck.py
|
2008-11-01 23:14:12 +01:00
|
|
|
Source14: CheckSUIDPermissions.py
|
2008-12-15 15:05:00 +01:00
|
|
|
Source15: CheckPolkitPrivs.py
|
|
|
|
Source16: CheckDBUSServices.py
|
2009-01-09 01:55:09 +01:00
|
|
|
Source17: CheckFilelist.py
|
2009-01-23 23:37:26 +01:00
|
|
|
Source18: CheckDBusPolicy.py
|
2009-09-02 18:03:41 +02:00
|
|
|
Source19: CheckAlternativesGhostFiles.py
|
2010-01-27 18:18:50 +01:00
|
|
|
Source20: rpmgroups.config
|
2010-08-01 17:30:35 +02:00
|
|
|
Source21: BashismsCheck.py
|
2010-10-14 14:32:03 +02:00
|
|
|
Source22: CheckGNOMEMacros.py
|
2010-10-28 13:38:59 +02:00
|
|
|
Source23: CheckBuildDate.py
|
2008-04-17 04:52:37 +02:00
|
|
|
Source100: syntax-validator.py
|
|
|
|
Url: http://rpmlint.zarb.org/
|
2010-01-27 18:18:50 +01:00
|
|
|
License: GPLv2+
|
2008-04-17 04:52:37 +02:00
|
|
|
Group: System/Packages
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-08-21 18:19:06 +02:00
|
|
|
Requires: rpm-python, /usr/bin/readelf, file, findutils, cpio, bash
|
2008-04-17 04:52:37 +02:00
|
|
|
Requires: desktop-file-utils
|
2010-02-01 12:21:22 +01:00
|
|
|
Requires: python-magic
|
2010-08-01 17:30:35 +02:00
|
|
|
Requires: dash checkbashisms
|
2008-04-17 04:52:37 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
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
|
2008-04-17 04:52:37 +02:00
|
|
|
Patch4: invalid-filerequires.diff
|
|
|
|
Patch5: suse-bzip-bigger-than-100k.diff
|
|
|
|
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
|
2010-04-26 23:35:02 +02:00
|
|
|
Patch11: suse-file-var-run.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
|
|
|
|
Patch17: docdata-examples.diff
|
|
|
|
Patch18: suse-hide-unstripped-outside-build.diff
|
|
|
|
Patch19: yast-provides.diff
|
|
|
|
Patch20: xdg-paths-update.diff
|
|
|
|
Patch22: better-wrong-script.diff
|
|
|
|
Patch23: buildroot-doc.diff
|
2009-08-28 22:12:54 +02:00
|
|
|
# bogus, fails with aaa_base. disabled
|
2008-04-17 04:52:37 +02:00
|
|
|
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-05 16:07:58 +01:00
|
|
|
Patch79: rpmlint-fscaps.diff
|
2010-11-16 01:16:49 +01:00
|
|
|
Patch80: remove-expand-macros.diff
|
|
|
|
Patch81: suse-whitelist-opensuse.diff
|
2010-11-18 17:53:51 +01:00
|
|
|
Patch82: rpmlint-badness-info.diff
|
2010-11-20 12:28:28 +01:00
|
|
|
Patch83: incoherent-warning-fix.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
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Frederic Lepied <flepied@mandriva.com>
|
|
|
|
Gwenole Beauchesne <gbeauchesne@mandriva.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n rpmlint-%{version}
|
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
|
|
|
|
%patch4
|
2010-04-05 18:53:54 +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
|
2010-04-26 23:35:02 +02:00
|
|
|
%patch11
|
2008-04-17 04:52:37 +02:00
|
|
|
%patch12
|
|
|
|
%patch13
|
|
|
|
%patch14
|
|
|
|
%patch17
|
2010-11-05 16:07:58 +01:00
|
|
|
%patch18
|
2008-04-17 04:52:37 +02:00
|
|
|
%patch19
|
|
|
|
%patch20
|
|
|
|
%patch22
|
|
|
|
%patch23
|
2009-08-28 22:12:54 +02:00
|
|
|
# bogus, fails with aaa_base. disabled
|
|
|
|
#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
|
2009-09-16 18:41:21 +02:00
|
|
|
#%patch39
|
|
|
|
#%patch41
|
2010-04-26 23:35:02 +02:00
|
|
|
%patch42
|
2009-09-16 18:41:21 +02:00
|
|
|
#%patch46
|
|
|
|
#%patch47
|
|
|
|
#%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-05 16:07:58 +01:00
|
|
|
%patch79 -p1
|
2010-11-16 01:16:49 +01:00
|
|
|
%patch80
|
|
|
|
%patch81
|
2010-11-18 17:53:51 +01:00
|
|
|
%patch82 -p1
|
2010-11-20 12:28:28 +01:00
|
|
|
%patch83
|
2010-11-26 17:47:21 +01:00
|
|
|
%patch84
|
2010-12-20 14:33:05 +01:00
|
|
|
# suse-changelog.patch
|
|
|
|
%patch85 -p1
|
2008-04-17 04:52:37 +02:00
|
|
|
cp -p %{SOURCE1} .
|
|
|
|
cp -p %{SOURCE2} .
|
|
|
|
cp -p %{SOURCE3} .
|
|
|
|
cp -p %{SOURCE4} .
|
|
|
|
cp -p %{SOURCE5} .
|
|
|
|
cp -p %{SOURCE6} .
|
|
|
|
cp -p %{SOURCE7} .
|
|
|
|
cp -p %{SOURCE8} .
|
|
|
|
cp -p %{SOURCE9} .
|
|
|
|
cp -p %{SOURCE10} .
|
2008-04-21 18:36:30 +02:00
|
|
|
cp -p %{SOURCE11} .
|
2008-05-01 14:19:31 +02:00
|
|
|
cp -p %{SOURCE12} .
|
|
|
|
cp -p %{SOURCE13} .
|
2008-11-01 23:14:12 +01:00
|
|
|
cp -p %{SOURCE14} .
|
2008-12-15 15:05:00 +01:00
|
|
|
cp -p %{SOURCE15} .
|
|
|
|
cp -p %{SOURCE16} .
|
2009-01-09 01:55:09 +01:00
|
|
|
cp -p %{SOURCE17} .
|
2009-01-23 23:37:26 +01:00
|
|
|
cp -p %{SOURCE18} .
|
2009-09-02 18:03:41 +02:00
|
|
|
cp -p %{SOURCE19} .
|
2010-08-01 17:30:35 +02:00
|
|
|
cp -p %{SOURCE21} .
|
2010-10-14 14:32:03 +02:00
|
|
|
cp -p %{SOURCE22} .
|
2010-10-28 13:38:59 +02:00
|
|
|
cp -p %{SOURCE23} .
|
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
|
2010-01-27 18:18:50 +01:00
|
|
|
%__install -m 644 %{SOURCE20} %{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
|
2010-01-27 18:18:50 +01:00
|
|
|
%config %{_sysconfdir}/rpmlint/rpmgroups.config
|
2008-04-17 04:52:37 +02:00
|
|
|
%dir /etc/rpmlint
|
|
|
|
/usr/share/man/man1/rpmlint.1.gz
|
|
|
|
|
|
|
|
%changelog
|