4e3ff02
Summary:   Tool to convert between any document format supported by OpenOffice.org
4e3ff02
Name:      unoconv
4e3ff02
Version:   0.3
4e3ff02
Release:   3%{?dist}
4e3ff02
License:   GPLv2
4e3ff02
Group:     System Environment/Base
4e3ff02
URL:       http://dag.wieers.com/home-made/unoconv/
4e3ff02
Source:    http://dag.wieers.com/home-made/%{name}/%{name}-%{version}.tar.bz2
4e3ff02
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
4e3ff02
4e3ff02
BuildArch: noarch
4e3ff02
Requires:  openoffice.org-pyuno
4e3ff02
4e3ff02
4e3ff02
%description
4e3ff02
unoconv converts between any document format that OpenOffice.org understands.
4e3ff02
It uses OpenOffice.org's UNO bindings for non-interactive conversion of
4e3ff02
documents.
4e3ff02
4e3ff02
Supported document formats include Open Document Format (.odf), MS Word (.doc),
4e3ff02
MS Office Open/MS OOXML (.xml), Portable Document Format (.pdf), HTML, XHTML,
4e3ff02
RTF, Docbook (.xml), and more.
4e3ff02
4e3ff02
%prep
4e3ff02
%setup -q
4e3ff02
4e3ff02
# Fix EOL encoding
4e3ff02
sed 's|\r||' docs/unoconv.1.xml > docs/unoconv.1.xml.tmp
4e3ff02
touch -r docs/unoconv.1.xml docs/unoconv.1.xml.tmp
4e3ff02
mv -f docs/unoconv.1.xml.tmp docs/unoconv.1.xml
4e3ff02
4e3ff02
%build
4e3ff02
4e3ff02
%install
4e3ff02
rm -rf %{buildroot}
4e3ff02
make install DESTDIR="%{buildroot}"
4e3ff02
4e3ff02
%clean
4e3ff02
rm -rf %{buildroot}
4e3ff02
4e3ff02
%files
4e3ff02
%defattr(-, root, root, -)
4e3ff02
%doc AUTHORS ChangeLog COPYING README TODO WISHLIST docs/ tests/
4e3ff02
%{_mandir}/man1/%{name}.1*
4e3ff02
%{_bindir}/%{name}
4e3ff02
4e3ff02
%changelog
4e3ff02
* Thu May 07 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.3-3
4e3ff02
- Fix rpmlints
4e3ff02
- Prepare package for Fedora review
4e3ff02
4e3ff02
* Sun Feb 22 2009 Peter Hanecak <hany@hany.sk> 0.3-2
4e3ff02
- used %%{?dist} in release number
4e3ff02
- license GPLv2
4e3ff02
4e3ff02
* Wed Dec 19 2007 Dag Wieers <dag@wieers.com> - 0.3-2 - 5993+/dag
4e3ff02
- Fixed openoffice.org2 dependency on RHEL4.
4e3ff02
4e3ff02
* Sat Sep 01 2007 Dag Wieers <dag@wieers.com> - 0.3-1
4e3ff02
- Updated to release 0.3.
4e3ff02
4e3ff02
* Sun May 20 2007 Dag Wieers <dag@wieers.com> - 0.2-1
4e3ff02
- Updated to release 0.2.
4e3ff02
4e3ff02
* Sat May 19 2007 Dag Wieers <dag@wieers.com> - 0.1-1
4e3ff02
- Initial package. (using DAR)