d8a82eb1f7
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=148
264 lines
7.2 KiB
RPMSpec
264 lines
7.2 KiB
RPMSpec
#
|
|
# spec file for package rpmlint
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
#!BuildIgnore: rpmlint-mini
|
|
|
|
Name: rpmlint
|
|
BuildRequires: rpm-python xz
|
|
Summary: Rpm correctness checker
|
|
Version: 1.3
|
|
Release: 4
|
|
Source0: http://rpmlint.zarb.org/download/rpmlint-%{version}.tar.xz
|
|
Source1: config
|
|
Source1001: config.in
|
|
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
|
|
Source11: BrandingPolicyCheck.py
|
|
Source12: CheckKDE4Deps.py
|
|
Source13: KMPPolicyCheck.py
|
|
Source14: CheckSUIDPermissions.py
|
|
Source15: CheckPolkitPrivs.py
|
|
Source16: CheckDBUSServices.py
|
|
Source17: CheckFilelist.py
|
|
Source18: CheckDBusPolicy.py
|
|
Source19: CheckAlternativesGhostFiles.py
|
|
Source20: rpmgroups.config
|
|
Source21: BashismsCheck.py
|
|
Source22: CheckGNOMEMacros.py
|
|
Source23: CheckBuildDate.py
|
|
Source24: pie.config
|
|
Source25: licenses.config
|
|
Source100: syntax-validator.py
|
|
Url: http://rpmlint.zarb.org/
|
|
License: GPL-2.0+
|
|
Group: System/Packages
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Requires: rpm-python, /usr/bin/readelf, file, findutils, cpio, bash
|
|
Requires: desktop-file-utils
|
|
Requires: python-magic
|
|
Requires: dash checkbashisms
|
|
BuildArch: noarch
|
|
Patch0: rpmlint-suse.diff
|
|
Patch1: suse-checks.diff
|
|
Patch2: suse-version.diff
|
|
Patch3: suse-url-check.diff
|
|
Patch4: invalid-filerequires.diff
|
|
# disable
|
|
#Patch5: suse-bzip-bigger-than-100k.diff
|
|
Patch6: suse-filesystem.diff
|
|
Patch7: suse-pkg-config-check.diff
|
|
Patch8: suse-binarieschecks.diff
|
|
Patch9: no-doc-for-lib.diff
|
|
Patch10: add-scoring-support.diff
|
|
Patch12: usr-arch.diff
|
|
Patch13: script-interpreter-only-for-exec-scripts.diff
|
|
Patch14: sourced-dirs.diff
|
|
Patch15: suse-filter-exception.diff
|
|
Patch17: docdata-examples.diff
|
|
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
|
|
Patch42: suse-check-optional-dependencies.diff
|
|
Patch46: locale-support.diff
|
|
# not is also in CheckFilelist.py
|
|
Patch47: noarch-lib64.diff
|
|
Patch49: stricter-tags-check.diff
|
|
Patch50: suse-no-run-ldconfig.diff
|
|
Patch51: description-check.diff
|
|
# this is the wrong place here
|
|
Patch52: suppress-for-perl-python.diff
|
|
Patch54: locale-update.diff
|
|
Patch57: suse-mono-deps-checks.diff
|
|
Patch58: add-weak-dependencies.diff
|
|
Patch60: selfconflicts-provide.diff
|
|
Patch62: no-badness-return.diff
|
|
Patch65: suse-shlib-devel-dependency.diff
|
|
Patch67: suse-required-lsb-tags.diff
|
|
Patch68: more-verbose-lsb-check.diff
|
|
Patch71: suse-binary-info-compile-opts.diff
|
|
Patch72: version-control-internal-file.diff
|
|
Patch73: avoid-mismatched-libregex.diff
|
|
Patch74: filename-non-utf8-exception.diff
|
|
Patch75: stricter-interpreter-check.diff
|
|
Patch76: confusing-invalid-spec-name.patch
|
|
Patch77: rpmlint-pkg-quoting.diff
|
|
Patch78: suse-g-ir-chech.diff
|
|
Patch80: remove-expand-macros.diff
|
|
Patch81: suse-whitelist-opensuse.diff
|
|
Patch84: extend-suse-conffiles-check.diff
|
|
Patch85: suse-changelog.patch
|
|
Patch86: suse-rclink-check.diff
|
|
# accepted upstream
|
|
Patch88: suse-speccheck-utf8.diff
|
|
Patch89: suse-python-abi-check.diff
|
|
Patch90: suse-allow-semicolon-as-license-separator.diff
|
|
%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}
|
|
%patch0
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
%patch4
|
|
#patch5
|
|
%patch6
|
|
%patch7
|
|
%patch8
|
|
%patch9
|
|
#%patch10
|
|
%patch12
|
|
%patch13
|
|
%patch14
|
|
%patch15
|
|
%patch17
|
|
%patch19
|
|
%patch20
|
|
%patch22
|
|
%patch23
|
|
%patch24
|
|
#%patch26
|
|
%patch29
|
|
%patch30
|
|
%patch31
|
|
# needs rediff
|
|
#%patch33
|
|
#%patch34
|
|
#%patch35
|
|
%patch37
|
|
#%patch39
|
|
#%patch41
|
|
%patch42
|
|
#%patch46
|
|
%patch47
|
|
#%patch49
|
|
%patch50
|
|
%patch51
|
|
#%patch52
|
|
### rediff!
|
|
#%patch54
|
|
#%patch57
|
|
%patch58
|
|
%patch60
|
|
%patch62
|
|
%patch65
|
|
#%patch67
|
|
#%patch68
|
|
#%patch71
|
|
%patch72
|
|
%patch73
|
|
%patch74
|
|
%patch75
|
|
%patch76 -p1
|
|
%patch77
|
|
%patch78
|
|
%patch80
|
|
%patch81
|
|
%patch84
|
|
%patch85
|
|
%patch86
|
|
#patch87 -p1
|
|
%patch88
|
|
%patch89
|
|
%patch90 -p1
|
|
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} .
|
|
cp -p %{SOURCE11} .
|
|
cp -p %{SOURCE12} .
|
|
cp -p %{SOURCE13} .
|
|
cp -p %{SOURCE14} .
|
|
cp -p %{SOURCE15} .
|
|
cp -p %{SOURCE16} .
|
|
cp -p %{SOURCE17} .
|
|
cp -p %{SOURCE18} .
|
|
cp -p %{SOURCE19} .
|
|
cp -p %{SOURCE21} .
|
|
cp -p %{SOURCE22} .
|
|
cp -p %{SOURCE23} .
|
|
|
|
%build
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
# the provided bash-completion does not work and only prints bash errors
|
|
rm -rf $RPM_BUILD_ROOT/etc/bash_completion.d
|
|
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
|
|
%__install -m 644 %{SOURCE20} %{buildroot}/%{_sysconfdir}/rpmlint/
|
|
%__install -m 644 %{SOURCE24} %{buildroot}/%{_sysconfdir}/rpmlint/
|
|
%__install -m 644 %{SOURCE25} %{buildroot}/%{_sysconfdir}/rpmlint/
|
|
|
|
%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
|
|
%config %{_sysconfdir}/rpmlint/rpmgroups.config
|
|
%config %{_sysconfdir}/rpmlint/pie.config
|
|
%config %{_sysconfdir}/rpmlint/licenses.config
|
|
%dir /etc/rpmlint
|
|
/usr/share/man/man1/rpmlint.1.gz
|
|
|
|
%changelog
|