rpmlint warnings/errors cleanup

This commit is contained in:
Ondrej Vasik 2007-11-05 09:56:52 +00:00
parent f28d473aa7
commit 7bc89c3bb9

View File

@ -1,18 +1,18 @@
Name: docbook-style-dsssl Name: docbook-style-dsssl
Version: 1.79 Version: 1.79
Release: 4.1 Release: 5%{?dist}
Group: Applications/Text Group: Applications/Text
Summary: Norman Walsh's modular stylesheets for DocBook. Summary: Norman Walsh's modular stylesheets for DocBook
License: Distributable License: Freely redistributable without restriction
URL: http://docbook.sourceforge.net/ URL: http://docbook.sourceforge.net/
%define openjadever 1.3.2 %define openjadever 1.3.2
Requires: openjade = %{openjadever} Requires: openjade = %{openjadever}
PreReq: docbook-dtds >= 1.0-19 Requires: docbook-dtds >= 1.0-19
PreReq: sgml-common >= 0.5 Requires: sgml-common >= 0.5
PreReq: openjade = %{openjadever} Requires: openjade = %{openjadever}
Conflicts: docbook-utils < 0.6.9-4 Conflicts: docbook-utils < 0.6.9-4
BuildRoot: %{_tmppath}/%{name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}
@ -37,15 +37,14 @@ cp %{SOURCE1} Makefile
%install %install
DESTDIR=$RPM_BUILD_ROOT DESTDIR=$RPM_BUILD_ROOT
rm -rf $DESTDIR rm -rf $RPM_BUILD_ROOT
make install BINDIR=$DESTDIR/usr/bin DESTDIR=$DESTDIR/usr/share/sgml/docbook/dsssl-stylesheets-%{version} make install BINDIR=$DESTDIR/usr/bin DESTDIR=$DESTDIR/usr/share/sgml/docbook/dsssl-stylesheets-%{version}
cd .. cd ..
ln -s dsssl-stylesheets-%{version} $DESTDIR/usr/share/sgml/docbook/dsssl-stylesheets ln -s dsssl-stylesheets-%{version} $DESTDIR/usr/share/sgml/docbook/dsssl-stylesheets
%clean %clean
DESTDIR=$RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
rm -rf $DESTDIR
%files %files
@ -62,19 +61,19 @@ rel=${rel##*-}
rel=${rel%.cat} rel=${rel%.cat}
for centralized in /etc/sgml/*-docbook-*.cat for centralized in /etc/sgml/*-docbook-*.cat
do do
/usr/bin/install-catalog --remove $centralized \ /usr/bin/install-catalog --remove $centralized \
/usr/share/sgml/docbook/dsssl-stylesheets-*/catalog \ /usr/share/sgml/docbook/dsssl-stylesheets-*/catalog \
>/dev/null 2>/dev/null >/dev/null 2>/dev/null
done done
for centralized in /etc/sgml/*-docbook-*$rel.cat for centralized in /etc/sgml/*-docbook-*$rel.cat
do do
/usr/bin/install-catalog --add $centralized \ /usr/bin/install-catalog --add $centralized \
/usr/share/sgml/openjade-%{openjadever}/catalog \ /usr/share/sgml/openjade-%{openjadever}/catalog \
> /dev/null 2>/dev/null > /dev/null 2>/dev/null
/usr/bin/install-catalog --add $centralized \ /usr/bin/install-catalog --add $centralized \
/usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog \ /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog \
> /dev/null 2>/dev/null > /dev/null 2>/dev/null
done done
@ -88,6 +87,10 @@ fi
exit 0 exit 0
%changelog %changelog
* Mon Nov 05 2007 Ondrej Vasik <ovasik@redhat.com> - 1.79-5
- rpmlint cleanup
- fixed summary, dist tag, license tag, cosmetic spec cleanup
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.79-4.1 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.79-4.1
- rebuild - rebuild