[PATCH] Suppress rpmlint messages

Richard W.M. Jones rjones at redhat.com
Mon Jan 26 17:12:23 UTC 2009


I'm going to apply this patch - should be pretty uncontroversial.

Rich.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
Read my OCaml programming blog: http://camltastic.blogspot.com/
Fedora now supports 68 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
-------------- next part --------------
Index: mingw32-filesystem.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mingw32-filesystem/devel/mingw32-filesystem.spec,v
retrieving revision 1.11
diff -u -r1.11 mingw32-filesystem.spec
--- mingw32-filesystem.spec	24 Jan 2009 18:11:43 -0000	1.11
+++ mingw32-filesystem.spec	26 Jan 2009 17:09:43 -0000
@@ -1,8 +1,8 @@
 %define debug_package %{nil}
 
 Name:           mingw32-filesystem
-Version:        43
-Release:        6%{?dist}
+Version:        44
+Release:        1%{?dist}
 Summary:        MinGW base filesystem and environment
 
 Group:          Development/Libraries
@@ -18,9 +18,13 @@
 Source4:        mingw32-find-requires.sh
 Source5:        mingw32-find-provides.sh
 Source6:        mingw32-scripts.sh
+Source7:        mingw32-rpmlint.config
 
 Requires:       setup
 Requires:       rpm
+Requires:       rpmlint >= 0.85-2
+
+BuildRequires:  rpmlint >= 0.85-2
 
 # Note about 'Provides: mingw32(foo.dll)'
 # ------------------------------------------------------------
@@ -88,6 +92,9 @@
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
 install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.mingw32
 
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpmlint
+install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/rpmlint/
+
 mkdir -p $RPM_BUILD_ROOT%{_prefix}/i686-pc-mingw32
 
 # GCC requires these directories, even though they contain links
@@ -137,6 +144,7 @@
 %config(noreplace) %{_sysconfdir}/rpm/macros.mingw32
 %config(noreplace) %{_sysconfdir}/profile.d/mingw32.sh
 #%config(noreplace) %{_sysconfdir}/profile.d/mingw32.csh
+%config(noreplace) %{_sysconfdir}/rpmlint/mingw32-rpmlint.config
 %{_bindir}/mingw32-configure
 %{_bindir}/mingw32-make
 %{_libexecdir}/mingw32-scripts
@@ -145,6 +153,9 @@
 
 
 %changelog
+* Mon Jan 26 2009 Richard W.M. Jones <rjones at redhat.com> - 44-1
+- Install rpmlint overrides file to suppress some rpmlint warnings.
+
 * Sat Jan 24 2009 Richard W.M. Jones <rjones at redhat.com> - 43-6
 - Don't claim C++ compiler exists if it's not installed, as this
   breaks autoconf and (in particular) libtool.
-------------- next part --------------
# rpmlint overrides file.
# This file filters out MinGW warnings.
# See: http://fedoraproject.org/wiki/MinGW/Rpmlint

# Unconditionally remove devel-file-in-non-devel rpmlint warning.
addFilter ("^mingw32-.*devel-file-in-non-devel")

# /usr/i686-pc-mingw32 is permitted by MinGW packaging guidelines.
addFilter ("^mingw32-.*non-standard-dir-in-usr i686-pc-mingw32")

# Permit *.la files (error is a bit odd, but it's what rpmlint prints).
addFilter ("^mingw32-.*script-without-shebang.*\.la$")

# GCC and libtool create executable archive files.  It's not clear
# why, but we permit this for now.
addFilter ("^mingw32-.*spurious-executable-perm.*\.dll\.a$")

# *.dll.a files are permitted arch-independent objects.
addFilter ("^mingw32-.*arch-independent-package-contains-binary-or-object.*\.dll\.a$")


More information about the mingw mailing list