2021-05-17 16:01:43 +00:00
|
|
|
%bcond_with bootstrap
|
2021-04-16 13:33:12 +00:00
|
|
|
|
2013-09-14 20:29:03 +00:00
|
|
|
Name: jdom2
|
2014-10-21 16:36:14 +00:00
|
|
|
Version: 2.0.6
|
2021-05-17 13:49:53 +00:00
|
|
|
Release: 22%{?dist}
|
2013-09-14 20:29:03 +00:00
|
|
|
Summary: Java manipulation of XML made easy
|
2018-07-23 12:05:36 +00:00
|
|
|
License: Saxpath
|
2013-09-14 20:29:03 +00:00
|
|
|
URL: http://www.jdom.org/
|
2018-07-23 12:05:36 +00:00
|
|
|
# ./generate-tarball.sh
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2016-04-14 14:10:52 +00:00
|
|
|
# Bnd tool configuration
|
|
|
|
Source3: bnd.properties
|
2018-07-23 12:05:36 +00:00
|
|
|
# Remove bundled jars that might not have clear licensing
|
|
|
|
Source4: generate-tarball.sh
|
2013-09-14 20:29:03 +00:00
|
|
|
# Use system libraries
|
|
|
|
# Disable gpg signatures
|
|
|
|
# Process contrib and junit pom files
|
2018-07-23 12:05:36 +00:00
|
|
|
Patch0: 0001-Adapt-build.patch
|
2013-09-14 20:29:03 +00:00
|
|
|
|
2014-10-21 16:36:14 +00:00
|
|
|
BuildRequires: javapackages-local
|
2021-04-16 13:33:12 +00:00
|
|
|
%if %{with bootstrap}
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
%else
|
2013-09-14 20:29:03 +00:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: ant-junit
|
2021-04-16 13:33:12 +00:00
|
|
|
%endif
|
2013-09-14 20:29:03 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
JDOM is a Java-oriented object model which models XML documents.
|
|
|
|
It provides a Java-centric means of generating and manipulating
|
|
|
|
XML documents. While JDOM inter-operates well with existing
|
|
|
|
standards such as the Simple API for XML (SAX) and the Document
|
|
|
|
Object Model (DOM), it is not an abstraction layer or
|
|
|
|
enhancement to those APIs. Rather, it seeks to provide a robust,
|
|
|
|
light-weight means of reading and writing XML data without the
|
|
|
|
complex and memory-consumptive options that current API
|
|
|
|
offerings provide.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains javadoc for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n jdom-JDOM-%{version}
|
|
|
|
|
2017-05-31 11:27:31 +00:00
|
|
|
%patch0 -p1
|
2013-09-14 20:29:03 +00:00
|
|
|
|
|
|
|
sed -i 's/\r//' LICENSE.txt README.txt
|
|
|
|
|
2014-06-09 00:39:13 +00:00
|
|
|
# Unable to run coverage: use log4j12 but switch to log4j 2.x
|
|
|
|
sed -i.coverage "s|coverage, jars|jars|" build.xml
|
|
|
|
|
2020-04-21 09:22:37 +00:00
|
|
|
# XPath functionality is not needed
|
|
|
|
rm -rf core/src/java/org/jdom2/xpath/
|
|
|
|
sed -i '/import org.jdom2.xpath.XPathFactory/d' core/src/java/org/jdom2/JDOMConstants.java
|
2017-05-31 11:27:31 +00:00
|
|
|
|
2013-09-14 20:29:03 +00:00
|
|
|
%build
|
2018-07-23 12:05:36 +00:00
|
|
|
mkdir lib
|
2021-04-16 16:31:23 +00:00
|
|
|
%ant -Dversion=%{version} -Dcompile.source=1.6 -Dcompile.target=1.6 -Dj2se.apidoc=%{_javadocdir}/java maven
|
2013-09-14 20:29:03 +00:00
|
|
|
|
2016-04-14 14:10:52 +00:00
|
|
|
# Make jar into an OSGi bundle
|
2019-08-02 08:07:48 +00:00
|
|
|
# XXX disabled until BND is fixed
|
|
|
|
#bnd wrap --output build/package/jdom-%{version}.bar --properties %{SOURCE3} \
|
|
|
|
# --version %{version} build/package/jdom-%{version}.jar
|
|
|
|
#mv build/package/jdom-%{version}.bar build/package/jdom-%{version}.jar
|
2016-04-14 14:10:52 +00:00
|
|
|
|
2013-09-14 20:29:03 +00:00
|
|
|
%install
|
2014-10-21 16:36:14 +00:00
|
|
|
%mvn_artifact build/maven/core/%{name}-%{version}.pom build/package/jdom-%{version}.jar
|
|
|
|
%mvn_install -J build/apidocs
|
2013-09-14 20:29:03 +00:00
|
|
|
|
2014-06-08 18:17:07 +00:00
|
|
|
%files -f .mfiles
|
2015-02-06 16:47:28 +00:00
|
|
|
%doc CHANGES.txt COMMITTERS.txt README.txt TODO.txt
|
|
|
|
%license LICENSE.txt
|
2013-09-14 20:29:03 +00:00
|
|
|
|
2014-10-21 16:36:14 +00:00
|
|
|
%files javadoc -f .mfiles-javadoc
|
2015-02-06 16:47:28 +00:00
|
|
|
%license LICENSE.txt
|
2013-09-14 20:29:03 +00:00
|
|
|
|
|
|
|
%changelog
|
2021-05-17 13:49:53 +00:00
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.6-22
|
|
|
|
- Bootstrap build
|
2021-05-17 16:01:43 +00:00
|
|
|
- Non-bootstrap build
|
2021-05-17 13:49:53 +00:00
|
|
|
|
2021-01-26 14:51:43 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-21
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-09-10 11:44:10 +00:00
|
|
|
* Thu Sep 10 2020 Fabio Valentini <decathorpe@gmail.com> - 2.0.6-20
|
|
|
|
- Drop log4j12 dependency and switch junit module to log4j 1.2 API shim.
|
|
|
|
|
2020-07-28 02:20:08 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-19 21:41:13 +00:00
|
|
|
* Sun Jul 19 2020 Fabio Valentini <decathorpe@gmail.com> - 2.0.6-18
|
|
|
|
- Set javac source and target to 1.8 to fix Java 11 builds.
|
|
|
|
|
2020-07-10 21:53:59 +00:00
|
|
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 2.0.6-17
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
2020-05-07 09:39:57 +00:00
|
|
|
* Thu May 07 2020 Fabio Valentini <decathorpe@gmail.com> - 2.0.6-16
|
|
|
|
- Drop optional isorelax verifier support from contrib.
|
|
|
|
|
2020-04-20 07:29:34 +00:00
|
|
|
* Mon Apr 20 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.6-15
|
|
|
|
- Disable contrib module
|
|
|
|
|
2020-01-29 06:07:17 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-11-05 16:29:28 +00:00
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.6-14
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
2019-07-25 10:20:49 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-24 15:00:50 +00:00
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.6-13
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
2019-02-01 04:18:20 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-23 12:05:36 +00:00
|
|
|
* Mon Jul 23 2018 Michael Simacek <msimacek@redhat.com> - 2.0.6-12
|
|
|
|
- Repack tarball without bundled jars
|
|
|
|
- The repacked jar contains slightly different source (force push by upstream?)
|
|
|
|
- Correct license tag
|
|
|
|
|
2018-07-17 10:33:11 +00:00
|
|
|
* Tue Jul 17 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.6-11
|
|
|
|
- Remove unneeded buildrequires
|
|
|
|
|
2018-07-13 06:20:45 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-07 18:31:15 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-26 14:19:06 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-05-31 11:27:31 +00:00
|
|
|
* Wed May 31 2017 Michael Simacek <msimacek@redhat.com> - 2.0.6-7
|
|
|
|
- Avoid hardcoded jar paths
|
|
|
|
|
2017-02-10 17:06:37 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-04-14 14:10:52 +00:00
|
|
|
* Thu Apr 14 2016 Mat Booth <mat.booth@redhat.com> - 2.0.6-6
|
|
|
|
- Add OSGi metadata to main jar
|
|
|
|
- Fix file listed twice warning
|
|
|
|
|
2016-02-04 01:08:42 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 12:13:10 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-03-24 11:36:07 +00:00
|
|
|
* Tue Mar 24 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.6-3
|
|
|
|
- Remove unneeded BR on cobertura
|
|
|
|
|
2015-02-06 16:47:28 +00:00
|
|
|
* Fri Feb 06 2015 gil cattaneo <puntogil@libero.it> 2.0.6-2
|
|
|
|
- introduce license macro
|
|
|
|
|
2014-10-21 16:36:14 +00:00
|
|
|
* Tue Oct 21 2014 gil cattaneo <puntogil@libero.it> 2.0.6-1
|
|
|
|
- update to 2.0.6 (rhbz#1118627)
|
|
|
|
|
2014-06-08 00:14:48 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-03-28 17:03:26 +00:00
|
|
|
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.0.5-3
|
|
|
|
- Use Requires: java-headless rebuild (#1067528)
|
|
|
|
|
2013-11-14 03:48:05 +00:00
|
|
|
* Thu Nov 14 2013 gil cattaneo <puntogil@libero.it> 2.0.5-2
|
|
|
|
- use objectweb-asm3
|
|
|
|
|
2013-09-14 20:29:03 +00:00
|
|
|
* Thu Sep 12 2013 gil cattaneo <puntogil@libero.it> 2.0.5-1
|
2015-02-06 16:47:28 +00:00
|
|
|
- initial rpm
|