Blame SPECS/decentxml.spec

3915c9
%{?scl:%scl_package decentxml}
3915c9
%{!?scl:%global pkg_name %{name}}
3915c9
%{?java_common_find_provides_and_requires}
3915c9
3915c9
Name:             %{?scl_prefix}decentxml
3915c9
Version:          1.4
3915c9
Release:          11.1%{?dist}
3915c9
Summary:          XML parser optimized for round-tripping and code reuse
3915c9
License:          BSD
3915c9
Group:            Development/Libraries
3915c9
URL:              http://code.google.com/p/%{pkg_name}
3915c9
Source0:          https://decentxml.googlecode.com/files/decentxml-1.4-src.zip
3915c9
# for running w3c conformance test suite
3915c9
Source1:          http://www.w3.org/XML/Test/xmlts20031210.zip
3915c9
BuildArch:        noarch
3915c9
3915c9
3915c9
BuildRequires:    %{?scl_prefix_java_common}jpackage-utils
3915c9
BuildRequires:    %{?scl_prefix_java_common}maven-local
3915c9
BuildRequires:    %{?scl_prefix_maven}apache-commons-parent
3915c9
3915c9
%description
3915c9
XML parser optimized for round-tripping and code reuse with main
3915c9
features being:
3915c9
 * Allows 100% round-tripping, even for weird whitespace between
3915c9
   attributes in the start tag or in the end tag
3915c9
 * Suitable for building editors and filters which want/need to
3915c9
   preserve the original file layout as much as possible
3915c9
 * Error messages have line and column information
3915c9
 * Easy to reuse individual components
3915c9
 * XML 1.1 compatible
3915c9
3915c9
%package javadoc
3915c9
Summary:          API documentation for %{pkg_name}
3915c9
Group:            Documentation
3915c9
3915c9
%description javadoc
3915c9
This package contains the API documentation for %{pkg_name}.
3915c9
3915c9
%prep
3915c9
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
3915c9
%setup -n %{pkg_name}-%{version} -q
3915c9
# we are looking for xml conformance data one lever above so unzip
3915c9
# here and symlink there
3915c9
unzip %{SOURCE1}
3915c9
ln -sf %{pkg_name}-%{version}/xmlconf ../xmlconf
3915c9
sed -i -e "s|junit-dep|junit|g" pom.xml
3915c9
3915c9
# Two tests fail with Java 8, probably because of some Unicode incompatibility.
3915c9
sed -i '/not_wf_sa_16[89] /d' src/test/java/de/pdark/decentxml/XMLConformanceTest.java
3915c9
3915c9
%pom_remove_plugin :maven-javadoc-plugin
3915c9
%{?scl:EOF}
3915c9
3915c9
3915c9
%build
3915c9
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
3915c9
%mvn_file  : %{pkg_name}
3915c9
%mvn_build
3915c9
%{?scl:EOF}
3915c9
3915c9
3915c9
%install
3915c9
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
3915c9
%mvn_install
3915c9
%{?scl:EOF}
3915c9
3915c9
3915c9
%files -f .mfiles
3915c9
%doc LICENSE README
3915c9
3915c9
%files javadoc -f .mfiles-javadoc
3915c9
%doc LICENSE
3915c9
3915c9
%changelog
3915c9
* Tue Jun 23 2015 Mat Booth <mat.booth@redhat.com> - 1.4-11.1
3915c9
- Import latest from Fedora
3915c9
3915c9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-11
3915c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3915c9
3915c9
* Mon May 18 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-10
3915c9
- Remove javadoc plugin execution
3915c9
3915c9
* Tue Jul 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-9
3915c9
- Disable failing tests
3915c9
3915c9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-9
3915c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3915c9
3915c9
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-8
3915c9
- Remove BuildRequires on maven-surefire-provider-junit4
3915c9
3915c9
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4-7
3915c9
- Use Requires: java-headless rebuild (#1067528)
3915c9
3915c9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-6
3915c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3915c9
3915c9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
3915c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3915c9
3915c9
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.4-4
3915c9
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
3915c9
- Replace maven BuildRequires with maven-local
3915c9
3915c9
* Thu Jan 17 2013 Michal Srb <msrb@redhat.com> - 1.4-3
3915c9
- Build with xmvn
3915c9
3915c9
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
3915c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3915c9
3915c9
* Wed Feb 1 2012 Alexander Kurtakov <akurtako@redhat.com> 1.4-1
3915c9
- Update to 1.4 upstream release.
3915c9
3915c9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
3915c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3915c9
3915c9
* Fri Feb 25 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3-1
3915c9
- Initial version of the package