|
|
c01779 |
# Copyright (c) 2000-2005, JPackage Project
|
|
|
c01779 |
# All rights reserved.
|
|
|
c01779 |
#
|
|
|
c01779 |
# Redistribution and use in source and binary forms, with or without
|
|
|
c01779 |
# modification, are permitted provided that the following conditions
|
|
|
c01779 |
# are met:
|
|
|
c01779 |
#
|
|
|
c01779 |
# 1. Redistributions of source code must retain the above copyright
|
|
|
c01779 |
# notice, this list of conditions and the following disclaimer.
|
|
|
c01779 |
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
c01779 |
# notice, this list of conditions and the following disclaimer in the
|
|
|
c01779 |
# documentation and/or other materials provided with the
|
|
|
c01779 |
# distribution.
|
|
|
c01779 |
# 3. Neither the name of the JPackage Project nor the names of its
|
|
|
c01779 |
# contributors may be used to endorse or promote products derived
|
|
|
c01779 |
# from this software without specific prior written permission.
|
|
|
c01779 |
#
|
|
|
c01779 |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
c01779 |
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
c01779 |
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
c01779 |
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
c01779 |
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
c01779 |
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
c01779 |
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
c01779 |
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
c01779 |
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
c01779 |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
c01779 |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
c01779 |
#
|
|
|
c01779 |
|
|
|
c01779 |
%global base_name jaxme
|
|
|
c01779 |
|
|
|
c01779 |
Name: ws-jaxme
|
|
|
c01779 |
Version: 0.5.2
|
|
|
243c1e |
Release: 10%{?dist}
|
|
|
c01779 |
Epoch: 0
|
|
|
c01779 |
Summary: Open source implementation of JAXB
|
|
|
c01779 |
|
|
|
c01779 |
Group: Development/Libraries/Java
|
|
|
c01779 |
License: ASL 2.0
|
|
|
c01779 |
URL: http://ws.apache.org/jaxme/
|
|
|
c01779 |
# svn export http://svn.apache.org/repos/asf/webservices/archive/jaxme/tags/R0_5_2/ ws-jaxme-0.5.2
|
|
|
c01779 |
# tar czf ws-jaxme-0.5.2-src.tar.gz ws-jaxme-0.5.2
|
|
|
c01779 |
Source0: ws-jaxme-0.5.2-src.tar.gz
|
|
|
c01779 |
Source1: ws-jaxme-bind-MANIFEST.MF
|
|
|
c01779 |
# generated docs with forrest-0.5.1
|
|
|
c01779 |
Patch0: ws-jaxme-docs_xml.patch
|
|
|
c01779 |
Patch1: ws-jaxme-catalog.patch
|
|
|
c01779 |
Patch2: ws-jaxme-system-dtd.patch
|
|
|
c01779 |
Patch3: ws-jaxme-jdk16.patch
|
|
|
c01779 |
Patch4: ws-jaxme-ant-scripts.patch
|
|
|
c01779 |
Patch5: ws-jaxme-use-commons-codec.patch
|
|
|
c01779 |
# Remove xmldb-api, deprecated since f17
|
|
|
c01779 |
Patch6: ws-jaxme-remove-xmldb.patch
|
|
|
c01779 |
Patch7: ws-jaxme-0.5.2-class-version15.patch
|
|
|
c01779 |
BuildArch: noarch
|
|
|
c01779 |
BuildRequires: jpackage-utils >= 0:1.6
|
|
|
c01779 |
BuildRequires: java-devel >= 1.6.0
|
|
|
c01779 |
BuildRequires: ant >= 0:1.6
|
|
|
c01779 |
BuildRequires: ant-apache-resolver
|
|
|
c01779 |
BuildRequires: antlr
|
|
|
c01779 |
BuildRequires: apache-commons-codec
|
|
|
c01779 |
BuildRequires: junit
|
|
|
c01779 |
BuildRequires: hsqldb
|
|
|
c01779 |
BuildRequires: log4j
|
|
|
c01779 |
BuildRequires: xalan-j2
|
|
|
c01779 |
BuildRequires: xerces-j2
|
|
|
c01779 |
BuildRequires: docbook-style-xsl
|
|
|
c01779 |
BuildRequires: docbook-dtds
|
|
|
c01779 |
BuildRequires: zip
|
|
|
c01779 |
Requires: antlr
|
|
|
c01779 |
Requires: apache-commons-codec
|
|
|
c01779 |
Requires: junit
|
|
|
c01779 |
Requires: hsqldb
|
|
|
c01779 |
Requires: log4j
|
|
|
c01779 |
Requires: xalan-j2
|
|
|
c01779 |
Requires: xerces-j2
|
|
|
c01779 |
Requires: jpackage-utils
|
|
|
c01779 |
|
|
|
c01779 |
%description
|
|
|
c01779 |
A Java/XML binding compiler takes as input a schema
|
|
|
c01779 |
description (in most cases an XML schema, but it may
|
|
|
c01779 |
be a DTD, a RelaxNG schema, a Java class inspected
|
|
|
c01779 |
via reflection, or a database schema). The output is
|
|
|
c01779 |
a set of Java classes:
|
|
|
c01779 |
* A Java bean class matching the schema description.
|
|
|
c01779 |
(If the schema was obtained via Java reflection,
|
|
|
c01779 |
the original Java bean class.)
|
|
|
c01779 |
* Read a conforming XML document and convert it into
|
|
|
c01779 |
the equivalent Java bean.
|
|
|
c01779 |
* Vice versa, marshal the Java bean back into the
|
|
|
c01779 |
original XML document.
|
|
|
c01779 |
|
|
|
c01779 |
%package javadoc
|
|
|
c01779 |
Summary: Javadoc for %{name}
|
|
|
c01779 |
Group: Documentation
|
|
|
c01779 |
Requires: jpackage-utils
|
|
|
c01779 |
Requires(postun): jpackage-utils
|
|
|
c01779 |
|
|
|
c01779 |
%description javadoc
|
|
|
c01779 |
%{summary}.
|
|
|
c01779 |
|
|
|
c01779 |
%package manual
|
|
|
c01779 |
Summary: Documents for %{name}
|
|
|
c01779 |
Group: Documentation
|
|
|
c01779 |
|
|
|
c01779 |
%description manual
|
|
|
c01779 |
%{summary}.
|
|
|
c01779 |
|
|
|
c01779 |
%prep
|
|
|
c01779 |
%setup -q
|
|
|
c01779 |
for j in $(find . -name "*.jar"); do
|
|
|
c01779 |
mv $j $j.no
|
|
|
c01779 |
done
|
|
|
c01779 |
|
|
|
c01779 |
%patch0 -p0
|
|
|
c01779 |
%patch1 -p0
|
|
|
c01779 |
%patch2 -p1
|
|
|
c01779 |
DOCBOOKX_DTD=`%{_bindir}/xmlcatalog %{_datadir}/sgml/docbook/xmlcatalog "-//OASIS//DTD DocBook XML V4.5//EN" 2>/dev/null`
|
|
|
c01779 |
%{__perl} -pi -e 's|@DOCBOOKX_DTD@|$DOCBOOKX_DTD|' src/documentation/manual/jaxme2.xml
|
|
|
c01779 |
%patch3 -p1
|
|
|
c01779 |
%patch4 -b .sav
|
|
|
c01779 |
%patch5 -b .sav
|
|
|
c01779 |
%patch6 -p1
|
|
|
c01779 |
%patch7 -p1
|
|
|
c01779 |
|
|
|
c01779 |
%build
|
|
|
c01779 |
export CLASSPATH=$(build-classpath antlr hsqldb commons-codec junit log4j xerces-j2 xalan-j2 xalan-j2-serializer)
|
|
|
c01779 |
ant all Docs.all \
|
|
|
c01779 |
-Dbuild.sysclasspath=first \
|
|
|
c01779 |
-Ddocbook.home=%{_datadir}/sgml/docbook \
|
|
|
c01779 |
-Ddocbookxsl.home=%{_datadir}/sgml/docbook/xsl-stylesheets
|
|
|
c01779 |
|
|
|
c01779 |
mkdir -p META-INF
|
|
|
c01779 |
cp -p %{SOURCE1} META-INF/MANIFEST.MF
|
|
|
c01779 |
touch META-INF/MANIFEST.MF
|
|
|
c01779 |
zip -u dist/jaxmeapi-%{version}.jar META-INF/MANIFEST.MF
|
|
|
c01779 |
|
|
|
c01779 |
%install
|
|
|
c01779 |
install -dm 755 $RPM_BUILD_ROOT%{_javadir}/%{base_name}
|
|
|
c01779 |
for jar in dist/*.jar; do
|
|
|
c01779 |
install -m 644 ${jar} $RPM_BUILD_ROOT%{_javadir}/%{base_name}/
|
|
|
c01779 |
done
|
|
|
c01779 |
(cd $RPM_BUILD_ROOT%{_javadir}/%{base_name} &&
|
|
|
c01779 |
for jar in *-%{version}*;
|
|
|
c01779 |
do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`;
|
|
|
c01779 |
done
|
|
|
c01779 |
)
|
|
|
c01779 |
|
|
|
c01779 |
(cd $RPM_BUILD_ROOT%{_javadir}/%{base_name} &&
|
|
|
c01779 |
for jar in *.jar;
|
|
|
c01779 |
do ln -sf ${jar} ws-${jar};
|
|
|
c01779 |
done
|
|
|
c01779 |
)
|
|
|
c01779 |
|
|
|
c01779 |
#javadoc
|
|
|
c01779 |
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
c01779 |
cp -pr build/docs/src/documentation/content/apidocs \
|
|
|
c01779 |
$RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
c01779 |
rm -rf build/docs/src/documentation/content/apidocs
|
|
|
c01779 |
|
|
|
c01779 |
#manual
|
|
|
c01779 |
install -dm 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
|
|
c01779 |
cp -pr build/docs/src/documentation/content/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
|
|
c01779 |
install -pm 644 LICENSE $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
|
|
c01779 |
|
|
|
c01779 |
%files
|
|
|
c01779 |
%doc LICENSE NOTICE
|
|
|
c01779 |
%{_javadir}/%{base_name}
|
|
|
c01779 |
|
|
|
c01779 |
%files javadoc
|
|
|
c01779 |
%doc LICENSE NOTICE
|
|
|
c01779 |
%doc %{_javadocdir}/%{name}
|
|
|
c01779 |
|
|
|
c01779 |
%files manual
|
|
|
c01779 |
%doc LICENSE NOTICE
|
|
|
c01779 |
%doc %{_docdir}/%{name}-%{version}
|
|
|
c01779 |
|
|
|
c01779 |
%changelog
|
|
|
243c1e |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 00.5.2-10
|
|
|
243c1e |
- Mass rebuild 2013-12-27
|
|
|
243c1e |
|
|
|
c01779 |
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:0.5.2-9
|
|
|
c01779 |
- Rebuild to regenerate API documentation
|
|
|
c01779 |
- Resolves: CVE-2013-1571
|
|
|
c01779 |
|
|
|
c01779 |
* Tue Mar 5 2013 Hans de Goede <hdegoede@redhat.com> - 0:0.5.2-8
|
|
|
c01779 |
- Fix FTBFS (add xalan-j2-serializer to classpath) (rhbz#914580)
|
|
|
c01779 |
|
|
|
c01779 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.5.2-7
|
|
|
c01779 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
c01779 |
|
|
|
c01779 |
* Thu Aug 23 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:0.5.2-6
|
|
|
c01779 |
- Add LICENSE and NOTICE files too all (sub)packages
|
|
|
c01779 |
|
|
|
c01779 |
* Fri Jul 27 2012 Hans de Goede <hdegoede@redhat.com> - 0:0.5.2-5
|
|
|
c01779 |
- Build all class files in 1.5 format (rhbz#842624)
|
|
|
c01779 |
|
|
|
c01779 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.5.2-4
|
|
|
c01779 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
c01779 |
|
|
|
c01779 |
* Fri Apr 6 2012 Alexander Kurtakov <akurtako@redhat.com> 0:0.5.2-3
|
|
|
c01779 |
- Fix the dependencies.
|
|
|
c01779 |
|
|
|
c01779 |
* Fri Apr 6 2012 Alexander Kurtakov <akurtako@redhat.com> 0:0.5.2-2
|
|
|
c01779 |
- Guideline fixes.
|
|
|
c01779 |
|
|
|
c01779 |
* Wed Feb 8 2012 Roland Grunberg <rgrunber@redhat.com> 0:0.5.2-1
|
|
|
c01779 |
- Update to 0.5.2.
|
|
|
c01779 |
- Remove xmldb-api due to deprecation.
|
|
|
c01779 |
- Fix ws-jaxme-ant-scripts.patch to apply cleanly.
|
|
|
c01779 |
|
|
|
c01779 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.5.1-8
|
|
|
c01779 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
c01779 |
|
|
|
c01779 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.5.1-7
|
|
|
c01779 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
c01779 |
|
|
|
c01779 |
* Tue Dec 21 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.5.1-6
|
|
|
c01779 |
- Fix ant-nodeps in the classpath.
|
|
|
c01779 |
|
|
|
c01779 |
* Tue Dec 21 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.5.1-5
|
|
|
c01779 |
- Fix FTBFS.
|
|
|
c01779 |
|
|
|
c01779 |
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.5.1-4.4
|
|
|
c01779 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
c01779 |
|
|
|
c01779 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.5.1-3.4
|
|
|
c01779 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
c01779 |
|
|
|
c01779 |
* Wed Oct 22 2008 Alexander Kurtakov <akurtako@redhat.com> - 0:0.5.1-2.3
|
|
|
c01779 |
- BR docbook-style-xsl.
|
|
|
c01779 |
- BR ant-apache-resolver.
|
|
|
c01779 |
|
|
|
c01779 |
* Wed Oct 22 2008 Alexander Kurtakov <akurtako@redhat.com> - 0:0.5.1-2.3
|
|
|
c01779 |
- Partial sync with jpackage to get build fixes.
|
|
|
c01779 |
- Add osgi manifest to jaxmeapi.jar.
|
|
|
c01779 |
|
|
|
c01779 |
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:0.5.1-2.2
|
|
|
c01779 |
- drop repotag
|
|
|
c01779 |
- fix license tag
|
|
|
c01779 |
|
|
|
c01779 |
* Mon Feb 12 2007 Deepak Bhole <dbhole@redhat.com> - 0:0.5.1-2jpp.1
|
|
|
c01779 |
- Update as per Fedora guidelines.
|
|
|
c01779 |
|
|
|
c01779 |
* Wed May 04 2006 Ralph Apel <r.apel at r-apel.de> - 0:0.5.1-1jpp
|
|
|
c01779 |
- First JPP-1.7 release
|
|
|
c01779 |
|
|
|
c01779 |
* Tue Dec 20 2005 Ralph Apel <r.apel at r-apel.de> - 0:0.5-1jpp
|
|
|
c01779 |
- Upgrade to 0.5
|
|
|
c01779 |
|
|
|
c01779 |
* Thu Sep 09 2004 Ralph Apel <r.apel at r-apel.de> - 0:0.3.1-1jpp
|
|
|
c01779 |
- Fix version in changelog
|
|
|
c01779 |
- Upgrade to 0.3.1
|
|
|
c01779 |
|
|
|
c01779 |
* Fri Aug 30 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.0-0.b1.4jpp
|
|
|
c01779 |
- Build with ant-1.6.2
|
|
|
c01779 |
|
|
|
c01779 |
* Fri Aug 06 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.0-0.b1.3jpp
|
|
|
c01779 |
- Void change
|
|
|
c01779 |
|
|
|
c01779 |
* Tue Jun 01 2004 Randy Watler <rwatler at finali.com> - 0:2.0-0.b1.2jpp
|
|
|
c01779 |
- Upgrade to Ant 1.6.X
|
|
|
c01779 |
|
|
|
c01779 |
* Fri Mar 04 2004 Ralph Apel <r.apel at r-apel.de> - 0:2.0-0.b1.1jpp
|
|
|
c01779 |
- First JPackage release
|