diff --git a/.gitignore b/.gitignore index e69de29..d3fa1f3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/Office Open XML 1st edition Part 4 (PDF).zip +/poi-src-3.7-beta3-20100924.tar.gz diff --git a/apache-poi-3.7-compile-xsds.patch b/apache-poi-3.7-compile-xsds.patch new file mode 100644 index 0000000..6e4b0a8 --- /dev/null +++ b/apache-poi-3.7-compile-xsds.patch @@ -0,0 +1,18 @@ +--- poi-3.7-beta1/build.xml.compile-xsds 2010-06-15 05:44:36.000000000 -0600 ++++ poi-3.7-beta1/build.xml 2010-06-25 15:15:51.240179517 -0600 +@@ -370,12 +370,9 @@ + + + +- +- +- +- +- +- ++ ++ ++ + + + = 1:1.6.0 +BuildRequires: ant-junit +BuildRequires: dom4j +BuildRequires: jakarta-commons-logging +BuildRequires: junit +#Fonts for testing +BuildRequires: liberation-sans-fonts liberation-serif-fonts +BuildRequires: log4j +BuildRequires: xmlbeans + +Requires: jpackage-utils +Requires: java >= 1:1.6.0 +Requires: dom4j +Requires: jakarta-commons-logging +Requires: log4j +Requires: xmlbeans + +%description +The Apache POI Project's mission is to create and maintain Java APIs for +manipulating various file formats based upon the Office Open XML standards +(OOXML) and Microsoft's OLE 2 Compound Document format (OLE2). In short, you +can read and write MS Excel files using Java. In addition, you can read and +write MS Word and MS PowerPoint files using Java. Apache POI is your Java +Excel solution (for Excel 97-2008). We have a complete API for porting other +OOXML and OLE2 formats and welcome others to participate. + +OLE2 files include most Microsoft Office files such as XLS, DOC, and PPT as +well as MFC serialization API based file formats. The project provides APIs +for the OLE2 Filesystem (POIFS) and OLE2 Document Properties (HPSF). + +Office OpenXML Format is the new standards based XML file format found in +Microsoft Office 2007 and 2008. This includes XLSX, DOCX and PPTX. The +project provides a low level API to support the Open Packaging Conventions +using openxml4j. + +For each MS Office application there exists a component module that attempts +to provide a common high level Java API to both OLE2 and OOXML document +formats. This is most developed for Excel workbooks (SS=HSSF+XSSF). Work is +progressing for Word documents (HWPF+XWPF) and PowerPoint presentations +(HSLF+XSLF). + +The project has recently added support for Outlook (HSMF). Microsoft opened +the specifications to this format in October 2007. We would welcome +contributions. + +There are also projects for Visio (HDGF) and Publisher (HPBF). + + +%package javadoc +Summary: Javadocs for %{name} +Group: Documentation +Requires: jpackage-utils + +%description javadoc +This package contains the API documentation for %{name}. + + +%package manual +Summary: Manual for %{name} +Group: Documentation +Requires: jpackage-utils +Requires: %{name}-javadoc = %{version}-%{release} + +%description manual +The manual for %{name}. + + +%prep +%setup -q -n poi-%{version}-%{betaver} +%patch1 -p1 -b .compile-xsds +find -name '*.class' -exec rm -f '{}' \; +find -name '*.jar' -exec rm -f '{}' \; +mkdir lib ooxml-lib +build-jar-repository -s -p lib commons-logging junit log4j +build-jar-repository -s -p ooxml-lib dom4j xmlbeans/xbean +#Unpack the XMLSchema +pushd ooxml-lib +unzip "%SOURCE1" OfficeOpenXML-XMLSchema.zip +popd + + +%build +cat > build.properties <<'EOF' +main.commons-logging.jar=lib/commons-logging.jar +main.log4j.jar=lib/log4j.jar +main.junit.jar=lib/junit.jar +ooxml.dom4j.jar=ooxml-lib/dom4j.jar +ooxml.xmlbeans.jar=ooxml-lib/xmlbeans_xbean.jar +disconnected=1 +DSTAMP=%{reldate} +EOF +export ANT_OPTS="-Xmx768m" +ant -propertyfile build.properties compile-ooxml-xsds jar + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{_javadir}/poi +for jar in poi poi-contrib poi-examples poi-ooxml poi-ooxml-schemas poi-scratchpad +do + cp -p build/dist/${jar}-%{version}-%{betaver}-%{reldate}.jar \ + $RPM_BUILD_ROOT%{_javadir}/poi/apache-${jar}-%{version}-%{betaver}-%{reldate}.jar + ln -s apache-${jar}-%{version}-%{betaver}-%{reldate}.jar \ + $RPM_BUILD_ROOT%{_javadir}/poi/apache-${jar}.jar + ln -s apache-${jar}-%{version}-%{betaver}-%{reldate}.jar \ + $RPM_BUILD_ROOT%{_javadir}/poi/${jar}-%{version}-%{betaver}-%{reldate}.jar + ln -s apache-${jar}-%{version}-%{betaver}-%{reldate}.jar \ + $RPM_BUILD_ROOT%{_javadir}/poi/${jar}.jar +done +#pom +mkdir -p $RPM_BUILD_ROOT%{_datadir}/maven2/poms +cp -p %SOURCE2 $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-poi.pom +%add_to_maven_depmap org.apache.poi poi %{version}-beta3 JPP/poi poi + +#javadoc +mkdir -p $RPM_BUILD_ROOT%{_javadocdir} +cp -pr docs/apidocs $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +#Don't copy for manual +rm -rf docs/apidocs + +#manual - Link to javadoc location +ln -s ../../javadoc/%{name}-%{version} docs/apidocs + + +%check +ant -propertyfile build.properties test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +%update_maven_depmap + +%postun +%update_maven_depmap + + +%files +%defattr(-,root,root,-) +%doc KEYS LICENSE NOTICE +%{_javadir}/poi/ +%{_mavendepmapfragdir}/* +%{_datadir}/maven2/poms/JPP-poi.pom + +%files javadoc +%defattr(-,root,root,-) +%doc LICENSE +%{_javadocdir}/%{name}-%{version} + +%files manual +%defattr(-,root,root,-) +%doc LICENSE docs/* + + +%changelog +* Mon Nov 8 2010 Orion Poplawski - 3.7-0.5.beta3 +- Add pom + +* Mon Nov 1 2010 Orion Poplawski - 3.7-0.4.beta3 +- Fix manual package + +* Wed Oct 27 2010 Orion Poplawski - 3.7-0.3.beta3 +- Update to 3.7 beta3 +- Add more Requires + +* Wed Sep 1 2010 Orion Poplawski - 3.7-0.2.beta2 +- Update to 3.7 beta2 + +* Fri Jun 25 2010 Orion Poplawski - 3.7-0.1.beta1 +- Update to 3.7 beta1 +- Rebase compile-xsds patch + +* Fri Jun 25 2010 Orion Poplawski - 3.6-1 +- Initial Fedora package diff --git a/poi-3.7-beta3.pom.xml b/poi-3.7-beta3.pom.xml new file mode 100644 index 0000000..f1528ba --- /dev/null +++ b/poi-3.7-beta3.pom.xml @@ -0,0 +1,76 @@ + + + + + + 4.0.0 + org.apache.poi + poi + 3.7-beta3 + jar + Apache POI + http://poi.apache.org/ + Apache POI - Java API To Access Microsoft Format Files + + + + POI Users List + user-subscribe@poi.apache.org + user-unsubscribe@poi.apache.org + http://mail-archives.apache.org/mod_mbox/poi-user/ + + + POI Developer List + dev-subscribe@poi.apache.org + dev-unsubscribe@poi.apache.org + http://mail-archives.apache.org/mod_mbox/poi-dev/ + + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + Apache Software Foundation + http://www.apache.org/ + + + + + commons-logging + commons-logging + 1.1 + runtime + + + log4j + log4j + 1.2.13 + runtime + + + + diff --git a/sources b/sources index e69de29..5a2c158 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +abe6bb6e7799e854934b3c634e8bcf7b Office Open XML 1st edition Part 4 (PDF).zip +78f86cef499c434182ea88ce2ac12aee poi-src-3.7-beta3-20100924.tar.gz