Alexander Scheel c42d3f1
%global revision 572a0baa91d1
Alexander Scheel c42d3f1
c8bb092
Name:             decentxml
c8bb092
Version:          1.4
b2e3249
Release:          24%{?dist}
c8bb092
Summary:          XML parser optimized for round-tripping and code reuse
c8bb092
License:          BSD
Alexander Scheel c42d3f1
# Google Code has shut down.
Alexander Scheel c42d3f1
# URL:            http://code.google.com/p/decentxml
Alexander Scheel c42d3f1
URL:              https://bitbucket.org/digulla/%{name}
c8bb092
BuildArch:        noarch
c8bb092
Alexander Scheel c42d3f1
# Google Code has shut down.
Alexander Scheel c42d3f1
# Source0:        https://decentxml.googlecode.com/files/decentxml-1.4-src.zip
Alexander Scheel c42d3f1
#
Alexander Scheel c42d3f1
# This version is equivalent to the last Google Code release, other than
Alexander Scheel c42d3f1
# folder structure due to how Bitbucket makes zip archives:
Alexander Scheel c42d3f1
#
Alexander Scheel c42d3f1
# decentxml-1.4 -> digulla-decentxml-572a0baa91d1
Alexander Scheel c42d3f1
Source0:          https://bitbucket.org/digulla/%{name}/get/r%{version}.zip
Alexander Scheel c42d3f1
Alexander Scheel c42d3f1
# For running w3c conformance test suite.
c8bb092
Source1:          http://www.w3.org/XML/Test/xmlts20031210.zip
c8bb092
c8bb092
BuildRequires:  maven-local
c8bb092
BuildRequires:  mvn(junit:junit)
c8bb092
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
c8bb092
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
c8bb092
c8bb092
c8bb092
%description
c8bb092
XML parser optimized for round-tripping and code reuse with main
c8bb092
features being:
Alexander Scheel c42d3f1
 * Allows 100% round-tripping, even for weird white-space between
c8bb092
   attributes in the start tag or in the end tag
c8bb092
 * Suitable for building editors and filters which want/need to
c8bb092
   preserve the original file layout as much as possible
c8bb092
 * Error messages have line and column information
c8bb092
 * Easy to reuse individual components
c8bb092
 * XML 1.1 compatible
c8bb092
c8bb092
%package javadoc
c8bb092
Summary:          API documentation for %{name}
c8bb092
c8bb092
%description javadoc
c8bb092
This package contains the API documentation for %{name}.
c8bb092
c8bb092
%prep
Alexander Scheel c42d3f1
%setup -q -n digulla-%{name}-%{revision}
Alexander Scheel c42d3f1
Alexander Scheel c42d3f1
# We are looking for xml conformance data one level above so unzip
Alexander Scheel c42d3f1
# here and symlink there.
c8bb092
unzip %{SOURCE1}
c8bb092
ln -sf %{name}-%{version}/xmlconf ../xmlconf
c8bb092
sed -i -e "s|junit-dep|junit|g" pom.xml
c8bb092
c8bb092
# Two tests fail with Java 8, probably because of some Unicode incompatibility.
c8bb092
sed -i '/not_wf_sa_16[89] /d' src/test/java/de/pdark/decentxml/XMLConformanceTest.java
c8bb092
c8bb092
%pom_remove_plugin :maven-javadoc-plugin
c8bb092
b3a51bc
# remove maven-compiler-plugin configuration that is broken with Java 11
b3a51bc
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration'
b3a51bc
c8bb092
# Don't use deprecated "attached" goal of Maven Assembly Plugin, which
c8bb092
# was removed in version 3.0.0.
c8bb092
%pom_xpath_set "pom:plugin[pom:artifactId='maven-assembly-plugin']/pom:executions/pom:execution/pom:goals/pom:goal[text()='attached']" single
c8bb092
c8bb092
%build
c8bb092
%mvn_file  : %{name}
b3a51bc
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
c8bb092
c8bb092
%install
c8bb092
%mvn_install
c8bb092
c8bb092
%files -f .mfiles
Alexander Scheel c42d3f1
%license LICENSE
Alexander Scheel c42d3f1
%doc README
c8bb092
c8bb092
%files javadoc -f .mfiles-javadoc
Alexander Scheel c42d3f1
%license LICENSE
c8bb092
c8bb092
%changelog
b2e3249
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-24
b2e3249
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b2e3249
93b7bfa
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.4-23
93b7bfa
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
93b7bfa
b3a51bc
* Thu Jun 04 2020 Fabio Valentini <decathorpe@gmail.com> - 1.4-22
b3a51bc
- Override javac source and target versions to fix build with Java 11.
b3a51bc
129612d
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-21
129612d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
129612d
Alexander Scheel c42d3f1
* Thu Dec 12 2019 Alexander Scheel <ascheel@redhat.com> - 1.4-20
Alexander Scheel c42d3f1
- Rebuilt and resurrected from orphaning for Eclipse
Alexander Scheel c42d3f1
c8bb092
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-19
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c8bb092
c8bb092
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-18
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c8bb092
c8bb092
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-17
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c8bb092
c8bb092
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-16
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c8bb092
c8bb092
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-15
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c8bb092
c8bb092
* Thu Nov 17 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-14
c8bb092
- Don't use deprecated goal of maven-assembly-plugin
c8bb092
c8bb092
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-13
c8bb092
- Add missing build-requires
c8bb092
c8bb092
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-12
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c8bb092
c8bb092
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-11
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c8bb092
c8bb092
* Mon May 18 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-10
c8bb092
- Remove javadoc plugin execution
c8bb092
c8bb092
* Tue Jul 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-9
c8bb092
- Disable failing tests
c8bb092
c8bb092
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-9
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c8bb092
c8bb092
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-8
c8bb092
- Remove BuildRequires on maven-surefire-provider-junit4
c8bb092
c8bb092
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-7
c8bb092
- Use Requires: java-headless rebuild (#1067528)
c8bb092
c8bb092
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c8bb092
c8bb092
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c8bb092
c8bb092
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.4-4
c8bb092
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
c8bb092
- Replace maven BuildRequires with maven-local
c8bb092
c8bb092
* Thu Jan 17 2013 Michal Srb <msrb@redhat.com> - 1.4-3
c8bb092
- Build with xmvn
c8bb092
c8bb092
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c8bb092
c8bb092
* Wed Feb 1 2012 Alexander Kurtakov <akurtako@redhat.com> 1.4-1
c8bb092
- Update to 1.4 upstream release.
c8bb092
c8bb092
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
c8bb092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c8bb092
c8bb092
* Fri Feb 25 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3-1
c8bb092
- Initial version of the package