|
@@ -1,59 +1,35 @@
|
|
|
-# Copyright (c) 2000-2007, JPackage Project
|
|
|
-# All rights reserved.
|
|
|
-#
|
|
|
-# Redistribution and use in source and binary forms, with or without
|
|
|
-# modification, are permitted provided that the following conditions
|
|
|
-# are met:
|
|
|
-#
|
|
|
-# 1. Redistributions of source code must retain the above copyright
|
|
|
-# notice, this list of conditions and the following disclaimer.
|
|
|
-# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
-# notice, this list of conditions and the following disclaimer in the
|
|
|
-# documentation and/or other materials provided with the
|
|
|
-# distribution.
|
|
|
-# 3. Neither the name of the JPackage Project nor the names of its
|
|
|
-# contributors may be used to endorse or promote products derived
|
|
|
-# from this software without specific prior written permission.
|
|
|
-#
|
|
|
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
-# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
-# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
-#
|
|
|
-
|
|
|
Name: xml-commons-apis
|
|
|
-Summary: APIs for DOM, SAX, and JAXP
|
|
|
-Version: 1.3.04
|
|
|
+Version: 1.4.01
|
|
|
Release: 1%{?_dist_release}
|
|
|
+Summary: APIs for DOM, SAX, and JAXP
|
|
|
+Summary(ja): DOX, SAX, JAXP 用 API
|
|
|
|
|
|
-#Group: Text Processing/Markup/XML
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: Development/Libraries
|
|
|
License: ASL 2.0 and W3C and Public Domain
|
|
|
URL: http://xml.apache.org/commons/
|
|
|
|
|
|
-
|
|
|
-# using binary package for bootstrap
|
|
|
-Source0: xml-commons-external-%{version}-bin.tar.gz
|
|
|
-# svn export http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-external-1_4_01/java/external/
|
|
|
-# tar czf xml-commons-external-1.4.01-src.tar.gz external
|
|
|
+# From source control because the published tarball doesn't include some docs:
|
|
|
+# svn export http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-external-1_4_01/java/external/
|
|
|
+# tar czf xml-commons-external-1.4.01-src.tar.gz external
|
|
|
+Source0: xml-commons-external-%{version}-src.tar.gz
|
|
|
+Source1: %{name}-MANIFEST.MF
|
|
|
+Source2: %{name}-ext-MANIFEST.MF
|
|
|
+Source3: http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.pom
|
|
|
+Source4: http://repo1.maven.org/maven2/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.pom
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildArch: noarch
|
|
|
-BuildRequires: jpackage-utils >= 1.5
|
|
|
-#BuildRequires: ant
|
|
|
-Requires: jpackage-utils >= 1.5
|
|
|
-
|
|
|
-Obsoletes: xml-commons <= 1.3.02
|
|
|
+BuildRequires: java-devel
|
|
|
+BuildRequires: jpackage-utils
|
|
|
+BuildRequires: ant
|
|
|
+BuildRequires: zip
|
|
|
+Requires: java-headless
|
|
|
+Requires: jpackage-utils
|
|
|
+
|
|
|
+Obsoletes: xml-commons < %{version}-%{release}
|
|
|
Provides: xml-commons = %{version}-%{release}
|
|
|
|
|
|
-Provides: jaxp = 1.3
|
|
|
+# TODO: Ugh, this next line should be dropped since it actually provides JAXP 1.4 now...
|
|
|
Provides: xml-commons-jaxp-1.3-apis = %{version}-%{release}
|
|
|
|
|
|
%description
|
|
@@ -63,66 +39,102 @@ includes the DOM, SAX, and JAXP.
|
|
|
|
|
|
%package manual
|
|
|
Summary: Manual for %{name}
|
|
|
-Group: Applications/Documentation
|
|
|
+Summary(ja): %{name} のマニュアル
|
|
|
+Group: Documentation
|
|
|
|
|
|
%description manual
|
|
|
Manual for %{name}.
|
|
|
|
|
|
+%package javadoc
|
|
|
+Summary: Javadoc for %{name}
|
|
|
+Summary(ja): %{name} の Javadoc
|
|
|
+Group: Documentation
|
|
|
+
|
|
|
+%description javadoc
|
|
|
+%{summary}.
|
|
|
+
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
%prep
|
|
|
-%setup -q -n xml-commons-external-%{version}
|
|
|
+%setup -q -n external
|
|
|
+# Make sure upstream hasn't sneaked in any jars we don't know about
|
|
|
+find -name '*.class' -exec rm -f '{}' \;
|
|
|
+find -name '*.jar' -exec rm -f '{}' \;
|
|
|
|
|
|
-# -----------------------------------------------------------------------------
|
|
|
+# Fix file encodings
|
|
|
+iconv -f iso8859-1 -t utf-8 LICENSE.dom-documentation.txt > \
|
|
|
+ LICENSE.dom-doc.temp && mv -f LICENSE.dom-doc.temp LICENSE.dom-documentation.txt
|
|
|
+iconv -f iso8859-1 -t utf-8 LICENSE.dom-software.txt > \
|
|
|
+ LICENSE.dom-sof.temp && mv -f LICENSE.dom-sof.temp LICENSE.dom-software.txt
|
|
|
+
|
|
|
+# remove bogus section from poms
|
|
|
+cp %{SOURCE3} %{SOURCE4} .
|
|
|
+sed -i '/distributionManagement/,/\/distributionManagement/ {d}' *.pom
|
|
|
|
|
|
%build
|
|
|
+ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 jar javadoc
|
|
|
|
|
|
-# -----------------------------------------------------------------------------
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+mkdir -p META-INF
|
|
|
+cp -p %{SOURCE1} META-INF/MANIFEST.MF
|
|
|
+touch META-INF/MANIFEST.MF
|
|
|
+zip -u build/xml-apis.jar META-INF/MANIFEST.MF
|
|
|
+cp -p %{SOURCE2} META-INF/MANIFEST.MF
|
|
|
+touch META-INF/MANIFEST.MF
|
|
|
+zip -u build/xml-apis-ext.jar META-INF/MANIFEST.MF
|
|
|
+
|
|
|
# Jars
|
|
|
-mkdir -p $RPM_BUILD_ROOT%{_javadir}
|
|
|
-cp -p xml-apis.jar \
|
|
|
- $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
|
-cp -p xml-apis-ext.jar \
|
|
|
- $RPM_BUILD_ROOT%{_javadir}/%{name}-ext-%{version}.jar
|
|
|
-
|
|
|
-# Jar versioning
|
|
|
-(cd $RPM_BUILD_ROOT%{_javadir} && for jar in %{name}-%{version}.jar; do ln -sf ${jar} dom3-${jar}; done)
|
|
|
-(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
|
+install -pD -T build/xml-apis.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
|
+#install -pDm 644 xml-apis-[0-9]*.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.po
|
|
|
+#add_maven_depmap -a xerces:dom3-xml-apis
|
|
|
+
|
|
|
+install -pD -T build/xml-apis-ext.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-ext.jar
|
|
|
+#install -pDm 644 xml-apis-ext*.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}-ext.pom
|
|
|
+#add_maven_depmap JPP-%{name}-ext.pom %{name}-ext.jar
|
|
|
+
|
|
|
# for better interoperability with the jpp apis packages
|
|
|
ln -sf %{name}.jar $RPM_BUILD_ROOT%{_javadir}/jaxp13.jar
|
|
|
ln -sf %{name}.jar $RPM_BUILD_ROOT%{_javadir}/jaxp.jar
|
|
|
ln -sf %{name}.jar $RPM_BUILD_ROOT%{_javadir}/xml-commons-jaxp-1.3-apis.jar
|
|
|
|
|
|
-# -----------------------------------------------------------------------------
|
|
|
+# Javadocs
|
|
|
+mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
+cp -pr build/docs/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
+
|
|
|
+# prevent apis javadoc from being included in doc
|
|
|
+rm -rf build/docs/javadoc
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-# -----------------------------------------------------------------------------
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
%doc LICENSE NOTICE
|
|
|
%doc LICENSE.dom-documentation.txt README.dom.txt
|
|
|
-%doc LICENSE.dom-software.txt
|
|
|
-%doc LICENSE.sax.txt README.sax.txt
|
|
|
+%doc LICENSE.dom-software.txt LICENSE.sac.html
|
|
|
+%doc LICENSE.sax.txt README-sax README.sax.txt
|
|
|
%{_javadir}/*
|
|
|
|
|
|
%files manual
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc docs/*
|
|
|
+%doc build/docs/*
|
|
|
|
|
|
-#files javadoc
|
|
|
-#defattr(-,root,root,-)
|
|
|
-#{_javadocdir}/*
|
|
|
+%files javadoc
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_javadocdir}/*
|
|
|
|
|
|
-# -----------------------------------------------------------------------------
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Jan 23 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.4.01-1
|
|
|
+- updated to 1.4.01
|
|
|
+
|
|
|
+* Sat Feb 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.04-2
|
|
|
+- rebuild with Vine6 environment
|
|
|
+
|
|
|
* Fri Aug 27 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.04-1
|
|
|
- Initial build for Vine Linux
|
|
|
- used version 1.3.04
|