|
|
8a67e2 |
Name: jdom2
|
|
|
8a67e2 |
Version: 2.0.6
|
|
|
8a67e2 |
Release: 12%{?dist}
|
|
|
8a67e2 |
Summary: Java manipulation of XML made easy
|
|
|
8a67e2 |
License: Saxpath
|
|
|
8a67e2 |
URL: http://www.jdom.org/
|
|
|
8a67e2 |
# ./generate-tarball.sh
|
|
|
8a67e2 |
Source0: %{name}-%{version}.tar.gz
|
|
|
8a67e2 |
# originally taken from http://repo1.maven.org/maven2/org/jdom/jdom-contrib/1.1.3/jdom-contrib-1.1.3.pom
|
|
|
8a67e2 |
Source1: jdom-contrib-template.pom
|
|
|
8a67e2 |
Source2: jdom-junit-template.pom
|
|
|
8a67e2 |
# Bnd tool configuration
|
|
|
8a67e2 |
Source3: bnd.properties
|
|
|
8a67e2 |
# Remove bundled jars that might not have clear licensing
|
|
|
8a67e2 |
Source4: generate-tarball.sh
|
|
|
8a67e2 |
# Use system libraries
|
|
|
8a67e2 |
# Disable gpg signatures
|
|
|
8a67e2 |
# Process contrib and junit pom files
|
|
|
8a67e2 |
Patch0: 0001-Adapt-build.patch
|
|
|
8a67e2 |
|
|
|
8a67e2 |
BuildRequires: javapackages-local
|
|
|
8a67e2 |
BuildRequires: ant
|
|
|
8a67e2 |
BuildRequires: ant-junit
|
|
|
8a67e2 |
BuildRequires: isorelax
|
|
|
8a67e2 |
BuildRequires: jaxen
|
|
|
8a67e2 |
BuildRequires: xalan-j2
|
|
|
8a67e2 |
BuildRequires: xerces-j2
|
|
|
8a67e2 |
BuildRequires: xml-commons-apis
|
|
|
8a67e2 |
BuildRequires: log4j12
|
|
|
8a67e2 |
BuildRequires: aqute-bnd
|
|
|
8a67e2 |
|
|
|
8a67e2 |
BuildArch: noarch
|
|
|
8a67e2 |
|
|
|
8a67e2 |
%description
|
|
|
8a67e2 |
JDOM is a Java-oriented object model which models XML documents.
|
|
|
8a67e2 |
It provides a Java-centric means of generating and manipulating
|
|
|
8a67e2 |
XML documents. While JDOM inter-operates well with existing
|
|
|
8a67e2 |
standards such as the Simple API for XML (SAX) and the Document
|
|
|
8a67e2 |
Object Model (DOM), it is not an abstraction layer or
|
|
|
8a67e2 |
enhancement to those APIs. Rather, it seeks to provide a robust,
|
|
|
8a67e2 |
light-weight means of reading and writing XML data without the
|
|
|
8a67e2 |
complex and memory-consumptive options that current API
|
|
|
8a67e2 |
offerings provide.
|
|
|
8a67e2 |
|
|
|
8a67e2 |
%package javadoc
|
|
|
8a67e2 |
Summary: Javadoc for %{name}
|
|
|
8a67e2 |
|
|
|
8a67e2 |
%description javadoc
|
|
|
8a67e2 |
This package contains javadoc for %{name}.
|
|
|
8a67e2 |
|
|
|
8a67e2 |
%prep
|
|
|
8a67e2 |
%setup -q -n jdom-JDOM-%{version}
|
|
|
8a67e2 |
|
|
|
8a67e2 |
%patch0 -p1
|
|
|
8a67e2 |
|
|
|
8a67e2 |
cp -p %{SOURCE1} maven/contrib.pom
|
|
|
8a67e2 |
cp -p %{SOURCE2} maven/junit.pom
|
|
|
8a67e2 |
|
|
|
8a67e2 |
sed -i 's/\r//' LICENSE.txt README.txt
|
|
|
8a67e2 |
|
|
|
8a67e2 |
# Unable to run coverage: use log4j12 but switch to log4j 2.x
|
|
|
8a67e2 |
sed -i.coverage "s|coverage, jars|jars|" build.xml
|
|
|
8a67e2 |
|
|
|
8a67e2 |
mkdir lib
|
|
|
8a67e2 |
build-jar-repository lib xerces-j2 xml-commons-apis jaxen junit isorelax xalan-j2 xalan-j2-serializer
|
|
|
8a67e2 |
|
|
|
8a67e2 |
%build
|
|
|
8a67e2 |
ant -Dversion=%{version} -Dj2se.apidoc=%{_javadocdir}/java maven
|
|
|
8a67e2 |
|
|
|
8a67e2 |
# Make jar into an OSGi bundle
|
|
|
8a67e2 |
bnd wrap --output build/package/jdom-%{version}.bar --properties %{SOURCE3} \
|
|
|
8a67e2 |
--version %{version} build/package/jdom-%{version}.jar
|
|
|
8a67e2 |
mv build/package/jdom-%{version}.bar build/package/jdom-%{version}.jar
|
|
|
8a67e2 |
|
|
|
8a67e2 |
%install
|
|
|
8a67e2 |
%mvn_artifact build/maven/core/%{name}-%{version}.pom build/package/jdom-%{version}.jar
|
|
|
8a67e2 |
%mvn_artifact build/maven/core/%{name}-%{version}-contrib.pom build/package/jdom-%{version}-contrib.jar
|
|
|
8a67e2 |
%mvn_artifact build/maven/core/%{name}-%{version}-junit.pom build/package/jdom-%{version}-junit.jar
|
|
|
8a67e2 |
%mvn_install -J build/apidocs
|
|
|
8a67e2 |
|
|
|
8a67e2 |
%files -f .mfiles
|
|
|
8a67e2 |
%doc CHANGES.txt COMMITTERS.txt README.txt TODO.txt
|
|
|
8a67e2 |
%license LICENSE.txt
|
|
|
8a67e2 |
|
|
|
8a67e2 |
%files javadoc -f .mfiles-javadoc
|
|
|
8a67e2 |
%license LICENSE.txt
|
|
|
8a67e2 |
|
|
|
8a67e2 |
%changelog
|
|
|
8a67e2 |
* Mon Jul 23 2018 Michael Simacek <msimacek@redhat.com> - 2.0.6-12
|
|
|
8a67e2 |
- Repack tarball without bundled jars
|
|
|
8a67e2 |
- The repacked jar contains slightly different source (force push by upstream?)
|
|
|
8a67e2 |
- Correct license tag
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Tue Jul 17 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.6-11
|
|
|
8a67e2 |
- Remove unneeded buildrequires
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-10
|
|
|
8a67e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-9
|
|
|
8a67e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-8
|
|
|
8a67e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Wed May 31 2017 Michael Simacek <msimacek@redhat.com> - 2.0.6-7
|
|
|
8a67e2 |
- Avoid hardcoded jar paths
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-7
|
|
|
8a67e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Thu Apr 14 2016 Mat Booth <mat.booth@redhat.com> - 2.0.6-6
|
|
|
8a67e2 |
- Add OSGi metadata to main jar
|
|
|
8a67e2 |
- Fix file listed twice warning
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-5
|
|
|
8a67e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-4
|
|
|
8a67e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Tue Mar 24 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.6-3
|
|
|
8a67e2 |
- Remove unneeded BR on cobertura
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Fri Feb 06 2015 gil cattaneo <puntogil@libero.it> 2.0.6-2
|
|
|
8a67e2 |
- introduce license macro
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Tue Oct 21 2014 gil cattaneo <puntogil@libero.it> 2.0.6-1
|
|
|
8a67e2 |
- update to 2.0.6 (rhbz#1118627)
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5-4
|
|
|
8a67e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.0.5-3
|
|
|
8a67e2 |
- Use Requires: java-headless rebuild (#1067528)
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Thu Nov 14 2013 gil cattaneo <puntogil@libero.it> 2.0.5-2
|
|
|
8a67e2 |
- use objectweb-asm3
|
|
|
8a67e2 |
|
|
|
8a67e2 |
* Thu Sep 12 2013 gil cattaneo <puntogil@libero.it> 2.0.5-1
|
|
|
8a67e2 |
- initial rpm
|