Группа :: Разработка/Java
Пакет: writer2latex
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: writer2latex
Version: 0.5final
Release: alt1
Summary: Flexible tool to convert OpenOffice documents into LaTeX2e and XHTML formats
License: LGPL
Group: Development/Java
Url: http://www.hj-gym.dk/~hj/writer2latex/
Packager: Kirill Maslinsky <kirill at altlinux.org>
Source: %name-%version.tar.bz2
BuildRequires(pre): /proc rpm-build-java
# Automatically added by buildreq on Sat Jun 09 2007
BuildRequires: ant junit openoffice.org xml-commons-resolver12
Requires: java-common
BuildArch: noarch
%description
Writer2LaTeX is a flexible tool to convert OpenOffice.org documents
(both in StarOffice and OpenDocument formats) into LaTeX2e and XHTML.
It is written in Java.
You can use Writer2LaTeX
* ...as a command line utility, independent of OpenOffice.org.
* ...as an export filter for OpenOffice.org/StarOffice/NeoOffice.
* ...from another java program.
The current version is usable for short and medium-sized documents, but lacks a few features for very long documents, see the feature list.
NOTE that stable version of Writer2LaTeX as an export filter is already included into
OpenOffice.org package. This package provides command-line interface to writer2latex,
standard and sample config files for tuning output and documentation.
#%package javadoc
#Summary: Javadoc for %name
#Group: Development/Documentation
#Requires: java-common
#%description javadoc
#Javadoc for %name.
%prep
%setup -q -n %name-%version
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.zip" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;
%build
%set_classpath %_javadir/junit.jar
%ant_build \
-DOFFICE_HOME=%_libdir/OpenOffice.org2 \
jar
subst 's,%%_datadir,%_datadir,' w2l
subst 's,%%_javadir,%_javadir,' w2l
%install
# jars
%__install -d -m 755 %buildroot%_javadir
%__install -m 644 target/lib/%name.jar %buildroot%_javadir
# data
%__install -d -m 755 %buildroot%_datadir/%name
%__install -m 644 *.{xml,xsl} %buildroot%_datadir/%name
# wrapper script
%__install -d -m 755 %buildroot%_bindir
%__install -m 755 w2l %buildroot%_bindir
# javadoc
#%__install -d -m 755 %buildroot%_javadocdir/%name
#%__cp -pr target/docs/api/* %buildroot%_javadocdir/%name
#%__rm -rf target/docs/api
%files
%doc changelog05.txt History.txt Readme.txt COPYING.TXT doc/ LaTeX-article.ott samples/
%_javadir/%name.jar
%_datadir/%name
%_bindir/w2l
#%files javadoc
#%doc %_javadocdir/%name
%changelog
…
Полный changelog можно просмотреть здесь
Version: 0.5final
Release: alt1
Summary: Flexible tool to convert OpenOffice documents into LaTeX2e and XHTML formats
License: LGPL
Group: Development/Java
Url: http://www.hj-gym.dk/~hj/writer2latex/
Packager: Kirill Maslinsky <kirill at altlinux.org>
Source: %name-%version.tar.bz2
BuildRequires(pre): /proc rpm-build-java
# Automatically added by buildreq on Sat Jun 09 2007
BuildRequires: ant junit openoffice.org xml-commons-resolver12
Requires: java-common
BuildArch: noarch
%description
Writer2LaTeX is a flexible tool to convert OpenOffice.org documents
(both in StarOffice and OpenDocument formats) into LaTeX2e and XHTML.
It is written in Java.
You can use Writer2LaTeX
* ...as a command line utility, independent of OpenOffice.org.
* ...as an export filter for OpenOffice.org/StarOffice/NeoOffice.
* ...from another java program.
The current version is usable for short and medium-sized documents, but lacks a few features for very long documents, see the feature list.
NOTE that stable version of Writer2LaTeX as an export filter is already included into
OpenOffice.org package. This package provides command-line interface to writer2latex,
standard and sample config files for tuning output and documentation.
#%package javadoc
#Summary: Javadoc for %name
#Group: Development/Documentation
#Requires: java-common
#%description javadoc
#Javadoc for %name.
%prep
%setup -q -n %name-%version
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.zip" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;
%build
%set_classpath %_javadir/junit.jar
%ant_build \
-DOFFICE_HOME=%_libdir/OpenOffice.org2 \
jar
subst 's,%%_datadir,%_datadir,' w2l
subst 's,%%_javadir,%_javadir,' w2l
%install
# jars
%__install -d -m 755 %buildroot%_javadir
%__install -m 644 target/lib/%name.jar %buildroot%_javadir
# data
%__install -d -m 755 %buildroot%_datadir/%name
%__install -m 644 *.{xml,xsl} %buildroot%_datadir/%name
# wrapper script
%__install -d -m 755 %buildroot%_bindir
%__install -m 755 w2l %buildroot%_bindir
# javadoc
#%__install -d -m 755 %buildroot%_javadocdir/%name
#%__cp -pr target/docs/api/* %buildroot%_javadocdir/%name
#%__rm -rf target/docs/api
%files
%doc changelog05.txt History.txt Readme.txt COPYING.TXT doc/ LaTeX-article.ott samples/
%_javadir/%name.jar
%_datadir/%name
%_bindir/w2l
#%files javadoc
#%doc %_javadocdir/%name
%changelog
…
Полный changelog можно просмотреть здесь