| |
@@ -1,32 +1,26 @@
|
| |
- %global checkout 20110809
|
| |
+ Name: xsom
|
| |
+ Summary: XML Schema Object Model (XSOM)
|
| |
+ Version: 20140514
|
| |
+ Release: 1%{?dist}
|
| |
+ License: CDDL-1.1 or GPLv2 with exceptions
|
| |
|
| |
- Name: xsom
|
| |
- Version: 0
|
| |
- Release: 22.%{checkout}svn%{?dist}
|
| |
- Summary: XML Schema Object Model (XSOM)
|
| |
- License: CDDL-1.1 or GPLv2 with exceptions
|
| |
- URL: http://xsom.java.net
|
| |
-
|
| |
- # svn export https://svn.java.net/svn/xsom~sources/tags/xsom-20110809 xsom-20110809svn
|
| |
- # find xsom-20110809svn/ -name '*.class' -delete
|
| |
- # find xsom-20110809svn/ -name '*.class' -delete
|
| |
- # tar czf xsom-20110809svn.tar.gz xsom-20110809svn
|
| |
- Source0: %{name}-%{checkout}svn.tar.gz
|
| |
+ # java.net is dead; upstream sources have been imported to GitHub though
|
| |
+ URL: https://github.com/kohsuke/xsom
|
| |
+ Source0: %{url}/archive/%{name}-%{version}.tar.gz
|
| |
|
| |
# We need this because one of the original tests tries to download
|
| |
# it from the website, but that doesn't work in Koji:
|
| |
Source1: http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd
|
| |
|
| |
- Patch0: %{name}-%{checkout}svn-pom.patch
|
| |
+ # patch POM to drop tasks that rely on bundled JARs
|
| |
+ Patch0: 00-pom-changes.patch
|
| |
|
| |
BuildRequires: maven-local
|
| |
BuildRequires: mvn(junit:junit)
|
| |
- BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
| |
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
| |
BuildRequires: mvn(relaxngDatatype:relaxngDatatype)
|
| |
- BuildRequires: relaxngcc
|
| |
|
| |
- BuildArch: noarch
|
| |
+ BuildArch: noarch
|
| |
|
| |
%description
|
| |
XML Schema Object Model (XSOM) is a Java library that allows applications to
|
| |
@@ -37,25 +31,27 @@
|
| |
object model works.
|
| |
|
| |
%package javadoc
|
| |
- Summary: Javadoc for %{name}
|
| |
+ Summary: Javadoc for %{name}
|
| |
|
| |
%description javadoc
|
| |
This package contains javadoc for %{name}.
|
| |
|
| |
%prep
|
| |
- %setup -q -n %{name}-%{checkout}svn
|
| |
+ %setup -q -n %{name}-%{name}-%{version}
|
| |
%patch0 -p1
|
| |
|
| |
+ find -name "*.class" -print -delete
|
| |
+ find -name "*.jar" -print -delete
|
| |
+
|
| |
+ # parent POM is not necessary
|
| |
+ %pom_remove_parent
|
| |
+
|
| |
# Replace the URL of the XSD file used by the tests with its
|
| |
# absolute filesystem location:
|
| |
sed -i \
|
| |
's|http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd|file://%{SOURCE1}|' \
|
| |
test/XSOMParserTest.java
|
| |
|
| |
- pushd lib
|
| |
- ln -sf `build-classpath relaxngcc` relaxngcc.jar
|
| |
- popd
|
| |
-
|
| |
%build
|
| |
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
| |
|
| |
@@ -63,12 +59,15 @@
|
| |
%mvn_install
|
| |
|
| |
%files -f .mfiles
|
| |
- %doc license.txt
|
| |
+ %license license.txt copyright.txt
|
| |
|
| |
%files javadoc -f .mfiles-javadoc
|
| |
- %doc license.txt
|
| |
+ %license license.txt copyright.txt
|
| |
|
| |
%changelog
|
| |
+ * Thu Oct 24 2019 Fabio Valentini <decathorpe@gmail.com> - 20140514-1
|
| |
+ - Update to version 20140514.
|
| |
+
|
| |
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-22.20110809svn
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
| |
|
| |
Test rebuilds of recursively dependent packages were done in COPR:
https://copr.fedorainfracloud.org/coprs/decathorpe/xsom-20140514-pr/monitor/
The only three build failures (
bval
,jaxb2-maven-plugin
, andopenjpa
) are already present in rawhide without this change, and are mostly caused by missing dependencies.