|
Andy Grimm |
226f95d |
%global oname xmlsec
|
|
|
1db1175 |
%global _version %(echo %{version} | tr . _ )
|
|
Andy Grimm |
226f95d |
|
|
Andy Grimm |
226f95d |
Name: xml-security
|
|
|
2f31edc |
Version: 2.0.6
|
|
|
2826c11 |
Release: 6%{?dist}
|
|
Andy Grimm |
226f95d |
Epoch: 0
|
|
Andy Grimm |
226f95d |
Summary: Implementation of W3C security standards for XML
|
|
Andy Grimm |
226f95d |
License: ASL 2.0
|
|
Andy Grimm |
226f95d |
URL: http://santuario.apache.org/
|
|
|
2f31edc |
Source0: http://www.apache.org/dist/santuario/java-library/%{_version}/%{oname}-%{version}-source-release.zip
|
|
|
9c23586 |
# Unavailable class in jetty8/9 org.eclipse.jetty.io.Buffer
|
|
|
9c23586 |
Patch0: xml-security-2.0.2-remove-Buffer.patch
|
|
|
349cf23 |
|
|
Stanislav Ochotnicky |
49640e0 |
BuildRequires: maven-local
|
|
|
9c23586 |
BuildRequires: mvn(commons-codec:commons-codec)
|
|
|
bfac093 |
BuildRequires: mvn(junit:junit)
|
|
|
bfac093 |
BuildRequires: mvn(log4j:log4j:1.2.17)
|
|
|
9c23586 |
BuildRequires: mvn(org.apache:apache:pom:)
|
|
|
2f31edc |
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
bfac093 |
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
|
|
|
9c23586 |
BuildRequires: mvn(org.codehaus.woodstox:woodstox-core-asl)
|
|
|
9c23586 |
BuildRequires: mvn(org.eclipse.jetty:jetty-server)
|
|
|
9c23586 |
BuildRequires: mvn(org.eclipse.jetty:jetty-servlet)
|
|
|
9c23586 |
BuildRequires: mvn(org.eclipse.jetty:jetty-servlets)
|
|
|
9c23586 |
BuildRequires: mvn(org.jvnet.jaxb2.maven2:maven-jaxb22-plugin)
|
|
|
9c23586 |
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
|
9c23586 |
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
|
|
|
bfac093 |
BuildRequires: mvn(xalan:xalan)
|
|
|
bfac093 |
BuildRequires: mvn(xerces:xercesImpl)
|
|
|
bfac093 |
BuildRequires: mvn(xml-apis:xml-apis)
|
|
|
9c23586 |
BuildRequires: mvn(xmlunit:xmlunit)
|
|
|
349cf23 |
|
|
Andy Grimm |
226f95d |
BuildArch: noarch
|
|
Andy Grimm |
226f95d |
|
|
Andy Grimm |
226f95d |
%description
|
|
|
2f31edc |
The XML Security project is aimed at providing implementation
|
|
|
2f31edc |
of security standards for XML. Currently the focus is on the
|
|
Andy Grimm |
226f95d |
W3C standards :
|
|
Andy Grimm |
226f95d |
- XML-Signature Syntax and Processing; and
|
|
Andy Grimm |
226f95d |
- XML Encryption Syntax and Processing.
|
|
Andy Grimm |
226f95d |
|
|
Andy Grimm |
226f95d |
%package javadoc
|
|
Andy Grimm |
226f95d |
Summary: Javadoc for %{name}
|
|
Andy Grimm |
226f95d |
|
|
Andy Grimm |
226f95d |
%description javadoc
|
|
|
2f31edc |
This package contains javadoc for %{name}.
|
|
Andy Grimm |
226f95d |
|
|
Andy Grimm |
226f95d |
%package demo
|
|
Andy Grimm |
226f95d |
Summary: Samples for %{name}
|
|
Andy Grimm |
226f95d |
|
|
Andy Grimm |
226f95d |
%description demo
|
|
Andy Grimm |
226f95d |
Samples for %{name}.
|
|
Andy Grimm |
226f95d |
|
|
Andy Grimm |
226f95d |
%prep
|
|
|
4293edd |
%setup -q -n %{oname}-%{version}
|
|
|
9c23586 |
%pom_xpath_set "pom:properties/pom:jetty.version" 9.0.5.v20130815
|
|
|
bfac093 |
%patch0 -p0
|
|
|
349cf23 |
|
|
|
9c23586 |
%pom_remove_plugin :maven-pmd-plugin
|
|
|
9c23586 |
%pom_remove_plugin :maven-source-plugin
|
|
|
2f31edc |
%pom_remove_plugin :animal-sniffer-maven-plugin
|
|
|
2f31edc |
# Use org.codehaus.mojo:extra-enforcer-rules:jar:1.0-beta-3
|
|
|
2f31edc |
%pom_remove_plugin :maven-enforcer-plugin
|
|
|
9c23586 |
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"
|
|
|
9c23586 |
|
|
|
9c23586 |
%pom_xpath_set "pom:plugin[pom:groupId = 'org.jvnet.jaxb2.maven2' ]/pom:artifactId" maven-jaxb22-plugin
|
|
|
9c23586 |
|
|
|
9c23586 |
%pom_xpath_remove "pom:profiles/pom:profile[pom:id = 'eclipse.moxy']"
|
|
Andy Grimm |
226f95d |
|
|
|
f808c95 |
# javax.xml.crypto.MarshalException: ECKeyValue not supported
|
|
|
f808c95 |
rm -r src/test/java/javax/xml/crypto/test/dsig/InteropXMLDSig11Test.java
|
|
|
9c23586 |
# UnrecoverableKey
|
|
|
bfac093 |
rm -r src/test/java/javax/xml/crypto/test/dsig/PKSignatureAlgorithmTest.java \
|
|
|
bfac093 |
src/test/java/org/apache/xml/security/test/dom/algorithms/DigestAlgorithmTest.java \
|
|
|
bfac093 |
src/test/java/org/apache/xml/security/test/dom/algorithms/PKSignatureAlgorithmTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/dom/signature/ECDSASignatureTest.java
|
|
|
9c23586 |
|
|
|
9c23586 |
# Fails for various reason
|
|
|
9c23586 |
rm -r src/test/java/org/apache/xml/security/test/stax/signature/IAIKTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationReferenceURIResolverTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/signature/SignatureDigestVerificationTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/dom/algorithms/SymmetricEncryptionAlgorithmTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/dom/encryption/XMLEncryption11Test.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/encryption/XMLEncryption11Test.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/XMLSecurityStreamWriterTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/signature/PKSignatureCreationTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/signature/SignatureDigestCreationTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/signature/PKSignatureVerificationTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/transformer/TransformEnvelopedSignatureTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/transformer/TransformIdentityTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/XMLSecurityEventWriterTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/signature/SignatureCreationTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/signature/SignatureEncryptionTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/signature/PhaosTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/dom/interop/BaltimoreTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/signature/BaltimoreTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/encryption/SymmetricEncryptionVerificationTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/encryption/SymmetricEncryptionCreationTest.java \
|
|
|
9c23586 |
src/test/java/javax/xml/crypto/test/dsig/SignatureDigestMethodTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationTest.java \
|
|
|
9c23586 |
src/test/java/org/apache/xml/security/test/stax/XMLSecEventTest.java
|
|
|
bfac093 |
|
|
|
2f31edc |
# NoSuchAlgorithmException: unsupported algorithm
|
|
|
2f31edc |
rm -r src/test/java/javax/xml/crypto/test/dsig/HMACSignatureAlgorithmTest.java
|
|
|
2f31edc |
# KeyException: ECKeyValue not supported
|
|
|
2f31edc |
rm -r src/test/java/javax/xml/crypto/test/dsig/CreateInteropXMLDSig11Test.java
|
|
|
2f31edc |
|
|
|
f60f7fd |
%mvn_file :%{oname} %{name} %{oname}
|
|
|
f60f7fd |
|
|
Andy Grimm |
226f95d |
%build
|
|
|
2f31edc |
|
|
|
dd3ae59 |
# On ARM builder test suite fails @ random
|
|
|
dd3ae59 |
# java.lang.NoClassDefFoundError: Could not initialize class org.apache.xml.security.stax.ext.XMLSec
|
|
|
dd3ae59 |
%mvn_build -f
|
|
Andy Grimm |
226f95d |
|
|
|
b6e1753 |
%install
|
|
|
b6e1753 |
%mvn_install
|
|
Andy Grimm |
226f95d |
|
|
|
2f31edc |
chmod 644 samples/org/apache/xml/security/samples/encryption/*.java
|
|
Andy Grimm |
226f95d |
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
349cf23 |
cp -pr samples/* $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
Andy Grimm |
226f95d |
|
|
|
b6e1753 |
%files -f .mfiles
|
|
|
f60f7fd |
%license LICENSE NOTICE
|
|
Andy Grimm |
226f95d |
|
|
|
b6e1753 |
%files javadoc -f .mfiles-javadoc
|
|
|
f60f7fd |
%license LICENSE NOTICE
|
|
Andy Grimm |
226f95d |
|
|
Andy Grimm |
226f95d |
%files demo
|
|
Andy Grimm |
226f95d |
%{_datadir}/%{name}
|
|
|
2f31edc |
%license LICENSE NOTICE
|
|
Andy Grimm |
226f95d |
|
|
Andy Grimm |
226f95d |
%changelog
|
|
|
2826c11 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0.6-6
|
|
|
2826c11 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
2826c11 |
|
|
|
883fb79 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0.6-5
|
|
|
883fb79 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
883fb79 |
|
|
|
3f86546 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0.6-4
|
|
|
3f86546 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
3f86546 |
|
|
|
31996fb |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0.6-3
|
|
|
31996fb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
31996fb |
|
|
|
e2ffd59 |
* Fri Apr 08 2016 gil cattaneo <puntogil@libero.it> - 0:2.0.6-2
|
|
|
e2ffd59 |
- rebuilt
|
|
|
e2ffd59 |
|
|
|
2f31edc |
* Fri Mar 25 2016 gil cattaneo <puntogil@libero.it> 0:2.0.6-1
|
|
|
2f31edc |
- Update to 2.0.6
|
|
|
2f31edc |
- Drop old jpackage header
|
|
|
2f31edc |
- Move old changelog to separate file.
|
|
|
2f31edc |
|
|
|
352e1d7 |
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0.4-3
|
|
|
352e1d7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
352e1d7 |
|
|
|
d705b1c |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.4-2
|
|
|
d705b1c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
d705b1c |
|
|
|
9c23586 |
* Wed Apr 22 2015 gil cattaneo <puntogil@libero.it> 0:2.0.4-1
|
|
|
9c23586 |
- Update to 2.0.4
|