merge review(#225705), spec cleanup to follow guidelines

This commit is contained in:
Ondrej Vasik 2007-11-05 17:47:44 +00:00
parent 93ca00f254
commit 0d21fbf125

View File

@ -1,6 +1,6 @@
Name: docbook-utils
Version: 0.6.14
Release: 11%{?dist}
Release: 12%{?dist}
Group: Applications/Text
Summary: Shell scripts for managing DocBook documents
@ -14,7 +14,7 @@ Requires: perl-SGMLSpm >= 1.03ii
Requires: which
Requires: text-www-browser
BuildRoot: %{_tmppath}/%{name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: perl-SGMLSpm, openjade, docbook-style-dsssl
BuildArch: noarch
@ -57,11 +57,11 @@ PDF format.
%build
./configure --prefix=%{_prefix} --mandir=%{_mandir} --libdir=%{_libdir}
make
make %{?_smp_mflags}
%install
export DESTDIR=$RPM_BUILD_ROOT
rm -rf $DESTDIR
rm -rf $RPM_BUILD_ROOT
make install prefix=%{_prefix} mandir=%{_mandir} docdir=/tmp
for util in dvi html pdf ps rtf
do
@ -70,8 +70,8 @@ do
done
# db2html is not just a symlink, as it has to create the output directory
rm -f $RPM_BUILD_ROOT%{_bindir}/db2html
install -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/db2html
install -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/usr/share/sgml/docbook/utils-%{version}/docbook-utils.dsl
install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/db2html
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/sgml/docbook/utils-%{version}/docbook-utils.dsl
rm -rf $RPM_BUILD_ROOT/tmp
@ -80,7 +80,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr (-,root,root)
%defattr (-,root,root,-)
%doc README COPYING TODO
%{_bindir}/jw
%{_bindir}/docbook2html
@ -92,7 +92,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(0755,root,root) %{_bindir}/db2html
%{_bindir}/db2rtf
%{_bindir}/sgmldiff
/usr/share/sgml/docbook/utils-%{version}
%{_datadir}/sgml/docbook/utils-%{version}
%{_mandir}/*/db2dvi.*
%{_mandir}/*/db2html.*
%{_mandir}/*/db2ps.*
@ -107,7 +107,7 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/*/*-spec.*
%files pdf
%defattr (-,root,root)
%defattr (-,root,root,-)
%{_bindir}/docbook2pdf
%{_bindir}/docbook2dvi
%{_bindir}/docbook2ps
@ -120,6 +120,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/*/docbook2ps.*
%changelog
* Tue Nov 05 2007 Ondrej Vasik <ovasik@redhat.com> 0.6.14-12
- Merge Review(#225705)
- corrected some other packaging guidelines issues
* Thu Nov 01 2007 Ondrej Vasik <ovasik@redhat.com> 0.6.14-11
- rpmlint check
- fixed: dist tag, summary ended with dot, license tag,