|
|
74ba86 |
%global pkg_name woodstox-core
|
|
|
74ba86 |
%{?scl:%scl_package %{pkg_name}}
|
|
|
74ba86 |
%{?maven_find_provides_and_requires}
|
|
|
74ba86 |
|
|
|
74ba86 |
%global base_name woodstox
|
|
|
74ba86 |
%global core_name %{base_name}-core
|
|
|
74ba86 |
%global stax2_ver 3.1.1
|
|
|
74ba86 |
|
|
|
74ba86 |
Name: %{?scl_prefix}%{pkg_name}
|
|
|
74ba86 |
Version: 4.1.2
|
|
|
74ba86 |
Release: 8.12%{?dist}
|
|
|
74ba86 |
Summary: High-performance XML processor
|
|
|
74ba86 |
License: ASL 2.0 or LGPLv2+
|
|
|
74ba86 |
URL: http://%{base_name}.codehaus.org/
|
|
|
74ba86 |
|
|
|
74ba86 |
Source0: http://%{base_name}.codehaus.org/%{version}/%{core_name}-src-%{version}.tar.gz
|
|
|
74ba86 |
|
|
|
74ba86 |
Patch0: %{pkg_name}-unbundling.patch
|
|
|
74ba86 |
Patch1: %{pkg_name}-fsf-address.patch
|
|
|
74ba86 |
|
|
|
74ba86 |
BuildArch: noarch
|
|
|
74ba86 |
|
|
|
74ba86 |
BuildRequires: %{?scl_prefix}felix-osgi-core
|
|
|
74ba86 |
BuildRequires: %{?scl_prefix_java_common}relaxngDatatype
|
|
|
74ba86 |
BuildRequires: %{?scl_prefix_java_common}msv-xsdlib
|
|
|
74ba86 |
BuildRequires: %{?scl_prefix_java_common}msv-msv
|
|
|
74ba86 |
BuildRequires: %{?scl_prefix}stax2-api
|
|
|
74ba86 |
BuildRequires: %{?scl_prefix}maven-local
|
|
|
74ba86 |
BuildRequires: %{?scl_prefix_java_common}javapackages-tools
|
|
|
74ba86 |
|
|
|
74ba86 |
|
|
|
74ba86 |
%description
|
|
|
74ba86 |
Woodstox is a high-performance validating namespace-aware StAX-compliant
|
|
|
74ba86 |
(JSR-173) Open Source XML-processor written in Java.
|
|
|
74ba86 |
XML processor means that it handles both input (== parsing)
|
|
|
74ba86 |
and output (== writing, serialization)), as well as supporting tasks
|
|
|
74ba86 |
such as validation.
|
|
|
74ba86 |
|
|
|
74ba86 |
%package javadoc
|
|
|
74ba86 |
Summary: API documentation for %{pkg_name}
|
|
|
74ba86 |
|
|
|
74ba86 |
%description javadoc
|
|
|
74ba86 |
This package contains the API documentation for %{pkg_name}.
|
|
|
74ba86 |
|
|
|
74ba86 |
%prep
|
|
|
74ba86 |
%setup -q -n %{base_name}-%{version}
|
|
|
74ba86 |
%{?scl:scl enable %{scl} - <<"EOF"}
|
|
|
74ba86 |
set -e -x
|
|
|
74ba86 |
|
|
|
74ba86 |
cp src/maven/%{pkg_name}-asl.pom pom.xml
|
|
|
74ba86 |
cp src/maven/%{pkg_name}-lgpl.pom pom-lgpl.xml
|
|
|
74ba86 |
|
|
|
74ba86 |
%patch0 -p1
|
|
|
74ba86 |
%patch1 -p1
|
|
|
74ba86 |
|
|
|
74ba86 |
sed -i "s/@VERSION@/%{version}/g" pom.xml pom-lgpl.xml
|
|
|
74ba86 |
sed -i "s/@REQ_STAX2_VERSION@/%{stax2_ver}/g" pom.xml pom-lgpl.xml
|
|
|
74ba86 |
|
|
|
74ba86 |
# removing bundled stuff
|
|
|
74ba86 |
rm -rf lib
|
|
|
74ba86 |
rm -rf src/maven
|
|
|
74ba86 |
rm -rf src/resources
|
|
|
74ba86 |
rm -rf src/samples
|
|
|
74ba86 |
rm -rf src/java/org
|
|
|
74ba86 |
rm -rf src/test/org
|
|
|
74ba86 |
rm -rf src/test/stax2
|
|
|
74ba86 |
|
|
|
74ba86 |
# fixing incomplete source directory structure
|
|
|
74ba86 |
mkdir src/main
|
|
|
74ba86 |
mv -f src/java src/main/
|
|
|
74ba86 |
mkdir src/test/java
|
|
|
74ba86 |
mv -f src/test/wstxtest src/test/java/
|
|
|
74ba86 |
|
|
|
74ba86 |
# provided by JDK
|
|
|
74ba86 |
%pom_remove_dep javax.xml.stream:stax-api
|
|
|
74ba86 |
|
|
|
74ba86 |
%mvn_file : %{pkg_name} %{pkg_name}-asl
|
|
|
74ba86 |
%mvn_alias {org.codehaus.woodstox}:%{pkg_name}-asl @1:%{pkg_name}-lgpl
|
|
|
74ba86 |
%{?scl:EOF}
|
|
|
74ba86 |
|
|
|
74ba86 |
%build
|
|
|
74ba86 |
%{?scl:scl enable %{scl} - <<"EOF"}
|
|
|
74ba86 |
set -e -x
|
|
|
74ba86 |
# stax2 missing -> cannot compile tests -> tests skipped
|
|
|
74ba86 |
%mvn_build -f
|
|
|
74ba86 |
%{?scl:EOF}
|
|
|
74ba86 |
|
|
|
74ba86 |
%install
|
|
|
74ba86 |
%{?scl:scl enable %{scl} - <<"EOF"}
|
|
|
74ba86 |
set -e -x
|
|
|
74ba86 |
%mvn_install
|
|
|
74ba86 |
|
|
|
74ba86 |
# install also LGPL version of POM
|
|
|
74ba86 |
install -Dpm 644 pom-lgpl.xml %{buildroot}%{_mavenpomdir}/JPP-%{pkg_name}-lgpl.pom
|
|
|
74ba86 |
%{?scl:EOF}
|
|
|
74ba86 |
|
|
|
74ba86 |
%files -f .mfiles
|
|
|
74ba86 |
%doc release-notes/asl/ASL2.0 release-notes/lgpl/LGPL2.1 release-notes/asl/NOTICE
|
|
|
74ba86 |
%{_mavenpomdir}/JPP-%{pkg_name}-lgpl.pom
|
|
|
74ba86 |
|
|
|
74ba86 |
%files javadoc -f .mfiles-javadoc
|
|
|
74ba86 |
%doc release-notes/asl/ASL2.0 release-notes/lgpl/LGPL2.1
|
|
|
74ba86 |
|
|
|
74ba86 |
%changelog
|
|
|
74ba86 |
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 4.1.2-8.12
|
|
|
74ba86 |
- Fix BR on maven-local & co.
|
|
|
74ba86 |
|
|
|
74ba86 |
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 4.1.2-8.11
|
|
|
74ba86 |
- maven33 rebuild #2
|
|
|
74ba86 |
|
|
|
74ba86 |
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 4.1.2-8.10
|
|
|
74ba86 |
- maven33 rebuild
|
|
|
74ba86 |
|
|
|
74ba86 |
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 4.1.2-8.9
|
|
|
74ba86 |
- Mass rebuild 2015-01-13
|
|
|
74ba86 |
|
|
|
74ba86 |
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 4.1.2-8.8
|
|
|
74ba86 |
- Mass rebuild 2015-01-06
|
|
|
74ba86 |
|
|
|
74ba86 |
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1.2-8.7
|
|
|
74ba86 |
- Mass rebuild 2014-05-26
|
|
|
74ba86 |
|
|
|
74ba86 |
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1.2-8.6
|
|
|
74ba86 |
- Mass rebuild 2014-02-19
|
|
|
74ba86 |
|
|
|
74ba86 |
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1.2-8.5
|
|
|
74ba86 |
- Mass rebuild 2014-02-18
|
|
|
74ba86 |
|
|
|
74ba86 |
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1.2-8.4
|
|
|
74ba86 |
- Remove requires on java
|
|
|
74ba86 |
|
|
|
74ba86 |
* Mon Feb 17 2014 Michal Srb <msrb@redhat.com> - 4.1.2-8.3
|
|
|
74ba86 |
- SCL-ize BR
|
|
|
74ba86 |
|
|
|
74ba86 |
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1.2-8.2
|
|
|
74ba86 |
- Rebuild to regenerate auto-requires
|
|
|
74ba86 |
|
|
|
74ba86 |
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1.2-8.1
|
|
|
74ba86 |
- First maven30 software collection build
|
|
|
74ba86 |
|
|
|
74ba86 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.1.2-8
|
|
|
74ba86 |
- Mass rebuild 2013-12-27
|
|
|
74ba86 |
|
|
|
74ba86 |
* Thu Aug 15 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 4.1.2-7
|
|
|
74ba86 |
- Migrate away from mvn-rpmbuild (#997432)
|
|
|
74ba86 |
|
|
|
74ba86 |
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1.2-6
|
|
|
74ba86 |
- Rebuild to regenerate API documentation
|
|
|
74ba86 |
- Resolves: CVE-2013-1571
|
|
|
74ba86 |
|
|
|
74ba86 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-5
|
|
|
74ba86 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
74ba86 |
|
|
|
74ba86 |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 4.1.2-4
|
|
|
74ba86 |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
74ba86 |
- Replace maven BuildRequires with maven-local
|
|
|
74ba86 |
|
|
|
74ba86 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-3
|
|
|
74ba86 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
74ba86 |
|
|
|
74ba86 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2-2
|
|
|
74ba86 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
74ba86 |
|
|
|
74ba86 |
* Tue Sep 13 2011 Jaromir Capik <jcapik@redhat.com> - 4.1.2-1
|
|
|
74ba86 |
- Initial version
|