move conversion to prep, do not convert html doc(#226217)

This commit is contained in:
Ondrej Vasik 2008-10-24 10:09:06 +00:00
parent 346042fd5f
commit 57e8a5ca63

View File

@ -1,7 +1,7 @@
Summary: SGML and XML parser
Name: opensp
Version: 1.5.2
Release: 9%{?dist}
Release: 10%{?dist}
Requires: sgml-common >= 0.5
URL: http://openjade.sourceforge.net/
Source: http://download.sourceforge.net/openjade/OpenSP-%{version}.tar.gz
@ -34,18 +34,15 @@ Header files and libtool library for developing applications that use OpenSP.
%patch0 -p1 -b .multilib
%patch1 -p1 -b .nodeids
%patch2 -p1 -b .sigsegv
# convert files to UTF-8
iconv -f latin1 -t utf8 ChangeLog -o ChangeLog.tmp
mv -f ChangeLog.tmp ChangeLog
%build
%configure --disable-dependency-tracking --disable-static --enable-http \
--enable-default-catalog=%{_sysconfdir}/sgml/catalog \
--enable-default-search-path=%{_datadir}/sgml:%{_datadir}/xml
make %{?_smp_mflags}
# convert files to UTF-8
iconv -f latin1 -t utf8 ChangeLog -o ChangeLog.tmp
mv -f ChangeLog.tmp ChangeLog
sed -i 's/charset=ISO-8859-1/charset=UTF-8/' docsrc/releasenotes.html
iconv -f latin1 -t utf8 docsrc/releasenotes.html -o docsrc/releasenotes.html.tmp
mv -f docsrc/releasenotes.html.tmp docsrc/releasenotes.html
%install
rm -rf $RPM_BUILD_ROOT
@ -104,6 +101,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Oct 24 2008 Ondrej Vasik <ovasik@redhat.com> 1.5.2-10
- move conversion to prep, do not convert html doc(#226217)
* Thu Oct 23 2008 Ondrej Vasik <ovasik@redhat.com> 1.5.2-9
- convert doc files to UTF-8 (#226217)