From 699532754eebad5363ac1639fd61631f94622fb3 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Oct 24 2019 10:44:06 +0000 Subject: update to version 20140514 --- diff --git a/.gitignore b/.gitignore index 4128edb..916af51 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ +/results_* +/*.src.rpm + /xsom-20110809svn.tar.gz +/xsom-20140514.tar.gz diff --git a/00-pom-changes.patch b/00-pom-changes.patch new file mode 100644 index 0000000..ea6f25d --- /dev/null +++ b/00-pom-changes.patch @@ -0,0 +1,27 @@ +diff --git a/pom.xml b/pom.xml +index f972462..a542ee5 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -231,12 +231,6 @@ + generate-sources + + +- +- +- +- +- +- + + + +@@ -249,9 +243,6 @@ + + + +- +- +- + + + diff --git a/sources b/sources index 39e033c..2c006b8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6fc6b6c3b247adc124b7e7cbc96b8f77 xsom-20110809svn.tar.gz +SHA512 (xsom-20140514.tar.gz) = b934eaabd6f39b0244d46eb9880874fac69ffc12e2e3c9595a0d5fb64619fdbb032f2722b07ea85e792ed9a4f02744c2f2672317b47fe359c9e67cd038b6cdf6 diff --git a/xsom-20110809svn-pom.patch b/xsom-20110809svn-pom.patch deleted file mode 100644 index 47057cb..0000000 --- a/xsom-20110809svn-pom.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff -Naur xsom-20110809/pom.xml xsom-20110809-work/pom.xml ---- xsom-20110809/pom.xml 2011-08-09 09:26:44.000000000 -0400 -+++ xsom-20110809-work/pom.xml 2012-01-19 10:26:49.613983857 -0500 -@@ -49,11 +49,6 @@ - http://xsom.java.net/ - 20110809 - jar -- -- net.java -- jvnet-parent -- 1 -- - - - CDDL v1.1 / GPL v2 dual license -@@ -146,12 +141,6 @@ - generate-sources - - -- -- -- -- -- -- - - - -@@ -164,9 +153,6 @@ - - - -- -- -- - - - diff --git a/xsom.spec b/xsom.spec index 67f9da8..2f7db06 100644 --- a/xsom.spec +++ b/xsom.spec @@ -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 @@ defined in the XML Schema spec part 1. Refer to this specification of how this 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 @@ popd %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 - 20140514-1 +- Update to version 20140514. + * Sat Jul 27 2019 Fedora Release Engineering - 0-22.20110809svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild