SPECS: odtransform.spec (NEW) - OpenDocument to XML FOP converter - it is e...

pawelz pawelz at pld-linux.org
Mon Jan 26 16:40:56 CET 2009


Author: pawelz                       Date: Mon Jan 26 15:40:55 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- OpenDocument to XML FOP converter
- it is easy to create pdf document from odt without OpenOffice now!
- initial PLD release

---- Files affected:
SPECS:
   odtransform.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/odtransform.spec
diff -u /dev/null SPECS/odtransform.spec:1.1
--- /dev/null	Mon Jan 26 16:40:56 2009
+++ SPECS/odtransform.spec	Mon Jan 26 16:40:50 2009
@@ -0,0 +1,170 @@
+# $Revision$, $Date$
+# TODO:
+# - shell wrapper
+
+%include	/usr/lib/rpm/macros.java
+
+%define		snap	19
+
+Summary:	OpenDocument to XML FOP converter
+Name:		odtransform
+Version:	0.1.0
+Release:	0.%{snap}
+License:	Apache v2.0
+Group:		Development/Languages/Java
+Source0:	%{name}-%{version}-r%{snap}.tar.bz2
+# Source0-md5:	f3826fb376dc6b89c58a2347b652383c
+URL:		http://svn.clazzes.org/svn/odtransform/
+Requires:	java-commons-logging
+Requires:	jre
+Requires:	jpackage-utils
+Requires:	logging-log4j
+Requires:	xalan-j
+Requires:	xerces-j
+BuildRequires:	jar
+BuildRequires:	java-commons-logging
+BuildRequires:	jdk
+BuildRequires:	jpackage-utils
+BuildRequires:	logging-log4j
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.300
+BuildRequires:	xalan-j
+BuildRequires:	xerces-j
+Requires:	jpackage-utils
+Suggests:	fop
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A simple java tool for converting OpenDocument files to XML FOP files
+that can be easily converted to various formats like ps or pdf using
+fop.
+
+%prep
+%setup -q -n %{name}-%{version}-r%{snap}
+
+%build
+export JAVA_HOME="%{java_home}"
+
+required_jars="commons-logging log4j xerces-j2 xalan"
+CLASSPATH=$(build-classpath $required_jars)
+export CLASSPATH
+javac -cp $CLASSPATH main/java/org/clazzes/odtransform/*.java
+cd main/java
+jar cf ../../odtransform-%{version}.jar org/clazzes/odtransform/*.class
+cd ../resources
+jar uf ../../odtransform-%{version}.jar org/clazzes/odtransform/*.xslt
+jar uef org.clazzes.odtransform.OdtTransform ../../odtransform-%{version}.jar
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+
+# jars
+cp -a %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_javadir}/*.jar
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/01/26 15:40:50  pawelz
+- OpenDocument to XML FOP converter
+- it is easy to create pdf document from odt without OpenOffice now!
+- initial PLD release
+
+Revision 1.29  2007/12/19 22:35:38  glen
+- undos sample
+
+Revision 1.28  2007-12-11 17:02:14  glen
+- export CLASSPATH separately to be able to catch error from subshell
+
+Revision 1.27  2007-12-09 08:29:20  glen
+- avoid copy-pasto errors
+
+Revision 1.26  2007-12-09 00:09:02  glen
+- assume we have java on all arch
+
+Revision 1.25  2007-12-02 21:42:10  glen
+- add -manual, drop -source
+
+Revision 1.24  2007-12-02 18:35:09  glen
+- corrections
+
+Revision 1.23  2007-11-21 22:26:00  glen
+- found sample %package demo
+
+Revision 1.22  2007-11-21 22:15:51  glen
+- more stuff to copy paste
+
+Revision 1.21  2007-10-09 17:18:26  glen
+- comment out %files demo (no %package)
+
+Revision 1.20  2007/05/03 22:40:53  glen
+- ln -nfs sounds funnier
+
+Revision 1.19  2007/04/29 22:59:04  qboosh
+- ln -snf just in case
+
+Revision 1.18  2007/04/29 22:57:19  qboosh
+- reverted, symlink is ghost
+
+Revision 1.17  2007/04/29 22:53:48  qboosh
+- postun for javadoc
+
+Revision 1.16  2007/04/29 22:50:37  qboosh
+- removed pl declension (unknown case)
+
+Revision 1.15  2007/04/15 19:57:13  glen
+- rosa helikopers
+
+Revision 1.14  2007/04/11 23:18:10  glen
+- need src subdir
+
+Revision 1.13  2007/04/11 23:08:06  glen
+- -demo and -source packages
+
+Revision 1.12  2007/04/11 21:09:18  glen
+- some better ideas from jpackage
+
+Revision 1.11  2007/04/11 17:02:46  glen
+- without api/ subdir in -javadoc
+
+Revision 1.10  2007/04/10 23:40:41  glen
+- java autodeps
+
+Revision 1.9  2007/04/09 21:17:45  glen
+- Group Documentation for -doc
+
+Revision 1.8  2007/04/09 21:09:55  glen
+- common javadoc install
+
+Revision 1.7  2007/04/09 21:03:41  glen
+- install jars for jakarta builds
+
+Revision 1.6  2007/04/09 20:50:05  glen
+- sample for jar install
+
+Revision 1.5  2007/02/12 22:09:17  glen
+- tabs in preamble
+
+Revision 1.4  2007/02/12 01:06:46  baggins
+- converted to UTF-8
+
+Revision 1.3  2007/02/01 21:23:14  glen
+- sample for versioned jars
+
+Revision 1.2  2007/01/31 17:16:04  glen
+- unneccessary quoting removed
+
+Revision 1.1  2007/01/31 17:14:33  glen
+- template based on ant.spec; feel free to advance this
================================================================


More information about the pld-cvs-commit mailing list