2007-05-21 04:41:15 +02:00
|
|
|
#
|
|
|
|
# spec file for package rpmlint-mini (Version 1.0)
|
|
|
|
#
|
2008-02-13 16:13:32 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-05-21 04:41:15 +02:00
|
|
|
# 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
|
|
|
|
|
2008-02-13 16:13:32 +01:00
|
|
|
|
2007-05-21 04:41:15 +02:00
|
|
|
Name: rpmlint-mini
|
2007-06-06 18:17:50 +02:00
|
|
|
BuildRequires: glib2-devel pkg-config rpm-python rpmlint
|
2007-05-21 04:41:15 +02:00
|
|
|
Summary: Rpm correctness checker
|
|
|
|
Version: 1.0
|
2008-03-10 18:34:41 +01:00
|
|
|
Release: 119
|
2007-11-08 23:32:09 +01:00
|
|
|
Url: http://rpmlint.zarb.org/
|
|
|
|
License: GPL v2 or later
|
2007-05-21 04:41:15 +02:00
|
|
|
Group: System/Packages
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-03-10 18:34:41 +01:00
|
|
|
Source: desktop-file-utils-0.15.tar.bz2
|
2007-06-06 18:17:50 +02:00
|
|
|
Patch10: static-desktop-file-validate.diff
|
2007-05-21 04:41:15 +02:00
|
|
|
Source100: rpmlint-deps.txt
|
|
|
|
Source101: rpmlint.wrapper
|
2007-05-25 00:36:44 +02:00
|
|
|
Patch1: package-rpmlintrc.diff
|
2007-05-21 04:41:15 +02:00
|
|
|
|
|
|
|
%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
|
2008-03-10 18:34:41 +01:00
|
|
|
%setup -q -n desktop-file-utils-0.15
|
2007-06-06 18:17:50 +02:00
|
|
|
%patch10
|
2007-05-21 04:41:15 +02:00
|
|
|
|
|
|
|
%build
|
2007-06-06 18:17:50 +02:00
|
|
|
autoreconf -fi
|
|
|
|
%configure
|
|
|
|
pushd src
|
|
|
|
make desktop-file-validate
|
|
|
|
popd
|
2007-05-21 04:41:15 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# test if the rpmlint works at all
|
|
|
|
. /.buildenv
|
|
|
|
/usr/bin/rpmlint /.rpm-cache/$BUILD_BASENAME/m4.rpm || exit 1
|
2007-06-05 01:17:38 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/opt/testing/share/rpmlint
|
2007-06-06 18:17:50 +02:00
|
|
|
install -m 755 -D src/desktop-file-validate $RPM_BUILD_ROOT/opt/testing/bin/desktop-file-validate
|
2007-06-05 01:17:38 +02:00
|
|
|
cp -a /usr/share/rpmlint/*.py $RPM_BUILD_ROOT/opt/testing/share/rpmlint
|
2007-05-21 04:41:15 +02:00
|
|
|
cd %{py_libdir}
|
|
|
|
for f in $(<%{SOURCE100}); do
|
2007-06-05 01:17:38 +02:00
|
|
|
find -path "*/$f" -exec install -D {} $RPM_BUILD_ROOT/opt/testing/%{_lib}/python%{py_ver}/{} \;
|
2007-05-21 04:41:15 +02:00
|
|
|
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}
|
2007-05-25 00:36:44 +02:00
|
|
|
pushd $RPM_BUILD_ROOT/opt/testing/share/rpmlint
|
2007-06-05 01:17:38 +02:00
|
|
|
patch -p0 --no-backup-if-mismatch -i %PATCH1
|
|
|
|
PYTHONOPTIMIZE=1 python %py_libdir/py_compile.py *.py
|
2007-05-25 00:36:44 +02:00
|
|
|
popd
|
2007-06-05 01:17:38 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/opt/testing/share/rpmlint/*.py
|
2007-05-21 04:41:15 +02:00
|
|
|
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
|
2007-11-08 23:32:09 +01:00
|
|
|
install -m 644 -D /usr/share/rpmlint/config $RPM_BUILD_ROOT/opt/testing/share/rpmlint/config
|
2007-05-21 04:41:15 +02:00
|
|
|
# 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
|
2007-06-05 01:17:38 +02:00
|
|
|
%define _use_internal_dependency_generator 0
|
2007-05-21 04:41:15 +02:00
|
|
|
%define __find_requires %my_requires
|
|
|
|
%define __find_provides %nil
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
/opt/testing
|
2007-11-23 01:49:10 +01:00
|
|
|
|
2007-05-21 04:41:15 +02:00
|
|
|
%changelog
|
2008-03-10 18:34:41 +01:00
|
|
|
* Mon Mar 10 2008 dmueller@suse.de
|
|
|
|
- update desktop-file-validate to 0.14
|
|
|
|
* for changelog, see desktop-file-utils package
|
2008-02-13 16:13:32 +01:00
|
|
|
* Wed Feb 13 2008 dmueller@suse.de
|
|
|
|
- update to (also) build rpmlint 0.82
|
|
|
|
* Thu Nov 22 2007 dmueller@suse.de
|
2007-11-23 01:49:10 +01:00
|
|
|
- add missing utf8 module (#343642)
|
2008-02-13 16:13:32 +01:00
|
|
|
* Mon Oct 29 2007 dmueller@suse.de
|
2007-11-08 23:32:09 +01:00
|
|
|
- update to (also) build rpmlint 0.81
|
|
|
|
- update desktop-file-validate to 0.14
|
2008-02-13 16:13:32 +01:00
|
|
|
* Fri Jun 22 2007 dmueller@suse.de
|
2007-06-22 00:12:29 +02:00
|
|
|
- refresh patches
|
2008-02-13 16:13:32 +01:00
|
|
|
* Thu Jun 07 2007 dmueller@suse.de
|
2007-06-08 00:20:24 +02:00
|
|
|
- update desktop-file-validate to 0.13
|
|
|
|
- fix build for lib64 archs
|
2008-02-13 16:13:32 +01:00
|
|
|
* Wed Jun 06 2007 dmueller@suse.de
|
2007-06-06 18:17:50 +02:00
|
|
|
- add static copy of desktop-file-validate to fix
|
|
|
|
the rpmlint check for desktop files
|
2008-02-13 16:13:32 +01:00
|
|
|
* Tue Jun 05 2007 dmueller@suse.de
|
2007-06-05 01:17:38 +02:00
|
|
|
- remove source files to reduce size
|
|
|
|
- read $RPM_SOURCE_DIR/%%{name}-%%{version}-rpmlintrc as well
|
2008-02-13 16:13:32 +01:00
|
|
|
* Thu May 24 2007 dmueller@suse.de
|
2007-05-25 00:36:44 +02:00
|
|
|
- read $RPM_SOURCE_DIR/rpmlintrc as well to allow
|
|
|
|
package specific overrides
|
2008-02-13 16:13:32 +01:00
|
|
|
* Tue May 15 2007 dmueller@suse.de
|
2007-05-21 04:41:15 +02:00
|
|
|
- Initial package
|