commit 1ef4af702e03b92cb7a42f851e30f39e73acc56ad0584423f934f6134cfd6d8c Author: OBS User unknown Date: Mon May 21 02:41:15 2007 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint-mini?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/rpmlint-deps.txt b/rpmlint-deps.txt new file mode 100644 index 0000000..10adbbb --- /dev/null +++ b/rpmlint-deps.txt @@ -0,0 +1,173 @@ +binasciimodule.so +binascii.py* +binascii.so +codecsmodule.so +codecs.py* +codecs.so +commandsmodule.so +commands.py* +commands.so +copy_regmodule.so +copy_reg.py* +copy_reg.so +cStringIOmodule.so +cStringIO.py* +cStringIO.so +encodings/aliasesmodule.so +encodings/aliases.py* +encodings/aliases.so +encodings/asciimodule.so +encodings/ascii.py* +encodings/ascii.so +encodings/codecsmodule.so +encodings/codecs.py* +encodings/codecs.so +encodings/encodingsmodule.so +encodings/encodings.py* +encodings/encodings.so +encodings/__init__module.so +encodings/__init__.py* +encodings/__init__.so +encodings/typesmodule.so +encodings/types.py* +encodings/types.so +fnmatchmodule.so +fnmatch.py* +fnmatch.so +getoptmodule.so +getopt.py* +getopt.so +globmodule.so +glob.py* +glob.so +lib-dynload/binascii.so +lib-dynload/cStringIO.so +lib-dynload/_locale.so +lib-dynload/operator.so +lib-dynload/rpmmodule.so +lib-dynload/rpm.py* +lib-dynload/rpm.so +lib-dynload/sitecustomizemodule.so +lib-dynload/sitecustomize.py* +lib-dynload/sitecustomize.so +lib-dynload/strop.so +lib-dynload/_struct.so +lib-dynload/time.so +lib-dynload/zlib.so +linecachemodule.so +linecache.py* +linecache.so +_localemodule.so +localemodule.so +_locale.py* +locale.py* +_locale.so +locale.so +operatormodule.so +operator.py* +operator.so +osmodule.so +os.py* +os.so +plat-linux2/binasciimodule.so +plat-linux2/binascii.py* +plat-linux2/binascii.so +plat-linux2/cStringIOmodule.so +plat-linux2/cStringIO.py* +plat-linux2/cStringIO.so +plat-linux2/_localemodule.so +plat-linux2/_locale.py* +plat-linux2/_locale.so +plat-linux2/operatormodule.so +plat-linux2/operator.py* +plat-linux2/operator.so +plat-linux2/rpmmodule.so +plat-linux2/rpm.py* +plat-linux2/rpm.so +plat-linux2/sitecustomizemodule.so +plat-linux2/sitecustomize.py* +plat-linux2/sitecustomize.so +plat-linux2/stropmodule.so +plat-linux2/strop.py* +plat-linux2/strop.so +plat-linux2/_structmodule.so +plat-linux2/_struct.py* +plat-linux2/_struct.so +plat-linux2/timemodule.so +plat-linux2/time.py* +plat-linux2/time.so +plat-linux2/zlibmodule.so +plat-linux2/zlib.py* +plat-linux2/zlib.so +popen2module.so +popen2.py* +popen2.so +posixpathmodule.so +posixpath.py* +posixpath.so +remodule.so +re.py* +re.so +rpmmodule.so +rpm.py* +rpm.so +sitecustomizemodule.so +sitecustomize.py* +sitecustomize.so +sitemodule.so +site-packages +site-packages/rpm/__init__module.so +site-packages/rpm/__init__.py* +site-packages/rpm/__init__.so +site-packages/rpm/_rpmmodule.so +site-packages/rpm/_rpm.so +site-packages/sitecustomizemodule.so +site-packages/sitecustomize.py* +site-packages/sitecustomize.so +site.py* +site.so +sre_compilemodule.so +sre_compile.py* +sre_compile.so +sre_constantsmodule.so +sre_constants.py* +sre_constants.so +sre_parsemodule.so +sre_parse.py* +sre_parse.so +statmodule.so +stat.py* +stat.so +stringmodule.so +string.py* +string.so +stropmodule.so +strop.py* +strop.so +_structmodule.so +structmodule.so +_struct.py* +struct.py* +_struct.so +struct.so +textwrapmodule.so +textwrap.py* +textwrap.so +timemodule.so +time.py* +time.so +typesmodule.so +types.py* +types.so +UserDictmodule.so +UserDict.py* +UserDict.so +warningsmodule.so +warnings.py* +warnings.so +zipfilemodule.so +zipfile.py* +zipfile.so +zlibmodule.so +zlib.py* +zlib.so diff --git a/rpmlint-mini.changes b/rpmlint-mini.changes new file mode 100644 index 0000000..18e306d --- /dev/null +++ b/rpmlint-mini.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue May 15 17:59:43 CEST 2007 - dmueller@suse.de + +- Initial package + diff --git a/rpmlint-mini.spec b/rpmlint-mini.spec new file mode 100644 index 0000000..5555315 --- /dev/null +++ b/rpmlint-mini.spec @@ -0,0 +1,87 @@ +# +# spec file for package rpmlint-mini (Version 1.0) +# +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: rpmlint-mini +BuildRequires: rpm-python rpmlint +Summary: Rpm correctness checker +Version: 1.0 +Release: 1 +URL: http://rpmlint.zarb.org/ +License: GNU General Public License (GPL) +Group: System/Packages +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source100: rpmlint-deps.txt +Source101: rpmlint.wrapper + +%description +Rpmlint is a tool to check common errors on rpm packages. Binary and +source packages can be checked. + + + +Authors: +-------- + Frederic Lepied + Gwenole Beauchesne + +%prep + +%build + +%install +# test if the rpmlint works at all +. /.buildenv +/usr/bin/rpmlint /.rpm-cache/$BUILD_BASENAME/m4.rpm || exit 1 +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/opt/testing/share/ +cp -a /usr/share/rpmlint $RPM_BUILD_ROOT/opt/testing/share/ +cd %{py_libdir} +for f in $(<%{SOURCE100}); do + find -name "$f" -exec install -D {} $RPM_BUILD_ROOT/opt/testing/%{_lib}/python%{py_ver}/{} \; +done +install -D /usr/bin/python $RPM_BUILD_ROOT/opt/testing/bin/python +cp -a %_libdir/libpython%{py_ver}.so.* $RPM_BUILD_ROOT/opt/testing/%{_lib} +cp -a %{py_sitedir}/rpm $RPM_BUILD_ROOT/opt/testing/%{_lib}/python%{py_ver}/ +sed -i -e "s,/usr/share/rpmlint,/opt/testing/share/rpmlint," $RPM_BUILD_ROOT/opt/testing/share/rpmlint/*.py +rm -f $RPM_BUILD_ROOT/opt/testing/share/rpmlint/Config.py{c,o} +rm -rf $RPM_BUILD_ROOT/{usr,etc} +rm -f $RPM_BUILD_ROOT/opt/testing/bin/rpmlint +install -m 755 -D %{SOURCE101} $RPM_BUILD_ROOT/opt/testing/bin/rpmlint +install -D /usr/share/rpmlint/config $RPM_BUILD_ROOT/opt/testing/share/rpmlint/config +# hackatlon +%define my_requires %{_builddir}/%{?buildsubdir}/%{name}-requires +cat << EOF > %my_requires +cat - > file.list +%{__find_requires} < file.list > requires.list +%{__find_provides} < file.list > provides.list +while read i; do + grep -F -v "\$i" requires.list > requires.list.new + mv requires.list.new requires.list +done < provides.list +cat requires.list +rm -f requires.list provides.list file.list +EOF +chmod +x %my_requires +%define __find_requires %my_requires +%define __find_provides %nil + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,0755) +/opt/testing +/opt/testing/bin/rpmlint + +%changelog +* Tue May 15 2007 - dmueller@suse.de +- Initial package diff --git a/rpmlint.changes b/rpmlint.changes new file mode 100644 index 0000000..075d326 --- /dev/null +++ b/rpmlint.changes @@ -0,0 +1,146 @@ +------------------------------------------------------------------- +Mon May 14 16:02:41 CEST 2007 - dmueller@suse.de + +- remove rpm-devel requirement +- add check for filerequires on /usr/bin/env +- fix syntax errors in previous change + +------------------------------------------------------------------- +Mon May 14 12:04:51 CEST 2007 - coolo@suse.de + +- add a check for /opt/kde3 not in %doc or in %lang +- fix files not in %lang check + +------------------------------------------------------------------- +Wed May 9 15:08:11 CEST 2007 - dmueller@suse.de + +- remove tabs from sources + +------------------------------------------------------------------- +Mon May 7 13:24:24 CEST 2007 - dmueller@suse.de + +- fix desktop file check (#252482) + +------------------------------------------------------------------- +Sat May 5 13:47:25 CEST 2007 - dmueller@suse.de + +- allow extensions to LSB starting with "X-" (#271495) + +------------------------------------------------------------------- +Fri May 4 17:42:07 CEST 2007 - dmueller@suse.de + +- remove check for usedforbuild tag. magic happens and + it is created automatically + +------------------------------------------------------------------- +Thu Apr 19 00:45:14 CEST 2007 - dmueller@suse.de + +- add spec checks for obsolete suse hacks + +------------------------------------------------------------------- +Wed Apr 18 15:51:46 CEST 2007 - dmueller@suse.de + +- update to 0.80: + * many more checks +- suppression updates + +------------------------------------------------------------------- +Thu Apr 5 20:25:36 CEST 2007 - dmueller@suse.de + +- suppressions for OpenOffice and linux-kernel-headers + +------------------------------------------------------------------- +Thu Apr 5 19:26:07 CEST 2007 - dmueller@suse.de + +- update suppressions + +------------------------------------------------------------------- +Wed Nov 8 17:12:20 CET 2006 - dmueller@suse.de + +- fix compatibility with rpm-python of sles9 (#216081) + +------------------------------------------------------------------- +Mon Sep 11 18:49:58 CEST 2006 - dmueller@suse.de + +- update to 0.77: + * updated checks regarding FHS compliance + * some python-lint fixlets + +------------------------------------------------------------------- +Wed Apr 12 12:21:31 CEST 2006 - dmueller@suse.de + +- update to 0.76 + +------------------------------------------------------------------- +Fri Mar 24 18:05:19 CET 2006 - dmueller@suse.de + +- update to 0.75 + +------------------------------------------------------------------- +Tue Mar 21 15:33:35 CET 2006 - dmueller@suse.de + +- suppress some glibc related errors (#157906) + +------------------------------------------------------------------- +Wed Feb 22 17:54:29 CET 2006 - dmueller@suse.de + +- add km to the list of valid locales + +------------------------------------------------------------------- +Wed Jan 25 21:47:41 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Jan 9 18:42:52 CET 2006 - dmueller@suse.de + +- add check for untranslated desktop files + +------------------------------------------------------------------- +Tue Dec 20 16:06:54 CET 2005 - dmueller@suse.de + +- fix i18n subdir check + +------------------------------------------------------------------- +Thu Dec 15 13:28:23 CET 2005 - dmueller@suse.de + +- filter init-script-name-with-dot /etc/init.d/boot.* and + script-without-shellbang /etc/profile.d/* + +------------------------------------------------------------------- +Thu Nov 24 11:06:43 CET 2005 - dmueller@suse.de + +- update to 0.71 +- strip "requires-on-release" for now, too much noise + +------------------------------------------------------------------- +Fri Jul 22 15:01:41 CEST 2005 - dmueller@suse.de + +- ignore dir-or-file-in-opt + +------------------------------------------------------------------- +Mon Jun 20 15:22:12 CEST 2005 - coolo@suse.de + +- update to 0.70 + +------------------------------------------------------------------- +Thu Jun 16 02:01:08 CEST 2005 - dmueller@suse.de + +- upgrade to rpmlint 0.69 +- split out the config file from the SUSE patch + +------------------------------------------------------------------- +Thu Nov 11 15:22:42 CET 2004 - coolo@suse.de + +- remove some MDK specific tests and add some SUSE specific tests + +------------------------------------------------------------------- +Mon Feb 23 12:37:56 CET 2004 - hmacht@suse.de + +- building as non-root + +------------------------------------------------------------------- +Wed Jun 11 10:49:01 CEST 2003 - coolo@suse.de + +- initial version + diff --git a/rpmlint.wrapper b/rpmlint.wrapper new file mode 100644 index 0000000..5c61079 --- /dev/null +++ b/rpmlint.wrapper @@ -0,0 +1,9 @@ +#!/bin/sh +if test -d /opt/testing/lib64; then + LD_LIBRARY_PATH=/opt/testing/lib64 +else + LD_LIBRARY_PATH=/opt/testing/lib +fi +PYTHONPATH=/opt/testing/share/rpmlint +export PYTHONPATH LD_LIBRARY_PATH +exec /opt/testing/bin/python -tt -u -O /opt/testing/share/rpmlint/rpmlint.py $*