%global debug_package %{nil} %global _version 1_2_6 Name: jibx Version: 1.2.6 Release: 14%{?dist} Summary: Framework for binding XML data to Java objects License: BSD and ASL 1.1 URL: http://sourceforge.net/projects/jibx/ Source0: http://sourceforge.net/projects/jibx/files/jibx/jibx-%{version}/%{name}_%{_version}.zip Patch0: %{name}-classpath.patch Patch1: %{name}-1.2.6-poms.patch Patch2: %{name}-port-to-qdox-2.patch BuildRequires: ant BuildRequires: ant-junit BuildRequires: junit BuildRequires: objectweb-asm3 BuildRequires: bcel BuildRequires: bea-stax-api BuildRequires: eclipse-equinox-osgi >= 1:4.6.0 BuildRequires: eclipse-jdt >= 1:4.6.0 BuildRequires: eclipse-platform >= 1:4.6.0 BuildRequires: joda-time BuildRequires: qdox BuildRequires: dom4j BuildRequires: jdom BuildRequires: xpp3 BuildRequires: log4j12 BuildRequires: javapackages-local %description JiBX is a framework for binding XML data to Java objects. It lets you work with data from XML documents using your own class structures. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{name} #Patch to add the bundled jar dependencies in the classpath %patch0 -p1 #Patch to add maven poms %patch1 -p1 %patch2 -p0 find -name '*.class' -delete find -name '*.jar' -delete rm -rf %{_builddir}/%{name}/build/docs/src/* # Eclipse is arch-specific, but multilib agnostic %global _eclipsedir %{_prefix}/lib/eclipse #Symlink the eclipse dependencies # platform # new location in eclipse 4.7.0 plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.core.contenttype_*.jar` ln -s "$plugin_file" lib/org.eclipse.core.contenttype.jar plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.core.jobs_*.jar` ln -s "$plugin_file" lib/org.eclipse.core.jobs.jar plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.core.runtime_*.jar` ln -s "$plugin_file" lib/org.eclipse.core.runtime.jar plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.core.resources_*.jar` ln -s "$plugin_file" lib/org.eclipse.core.resources.jar plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.equinox.common_*.jar` ln -s "$plugin_file" lib/org.eclipse.equinox.common.jar plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.equinox.preferences_*.jar` ln -s "$plugin_file" lib/org.eclipse.equinox.preferences.jar plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.text_*.jar` ln -s "$plugin_file" lib/org.eclipse.text.jar # new location in eclipse 4.6.0-0.5.git201604261105 plugin_file=`ls %{_datadir}/eclipse/droplets/eclipse-jdt/plugins/org.eclipse.jdt.core_*jar` ln -s "$plugin_file" lib/org.eclipse.jdt.core.jar # equinox-osgi #plugin_file=`ls %%{_libdir}/eclipse/plugins/org.eclipse.osgi_*.jar` #ln -s "$plugin_file" lib/org.eclipse.osgi.jar ln -s $(build-classpath eclipse/osgi) lib/org.eclipse.osgi.jar # jdt plugin_file=`ls %{_datadir}/eclipse/droplets/eclipse-jdt/plugins/org.eclipse.jdt.core.manipulation_*.jar` ln -s "$plugin_file" lib/org.eclipse.jdt.core.manipulation.jar build-jar-repository -p lib \ bcel \ bea-stax-api \ dom4j \ jdom \ joda-time \ qdox \ xpp3 ln -s $(build-classpath objectweb-asm3/asm) lib/ ln -s $(build-classpath objectweb-asm3/asm-commons) lib/ ln -s $(build-classpath log4j12-1.2.17) lib/ sed -i '/Class-Path/I d' %{_builddir}/%{name}/build/build.xml %pom_change_dep :log4j ::1.2.17 build/maven/jibx-bind/pom.xml %build for sub_component in bind extras run schema tools; do %mvn_file org.%{name}:%{name}-${sub_component} %{name}/${sub_component} done pushd build/ sed -i -e s:stax-api.jar:bea-stax-api.jar:g build.xml # thanks to msrb@redhat.com sed -i 's|version}" arg2="1.5"|version}" arg2="1.8"|g' build.xml javac jenable/JEnable.java export CLASSPATH=$(build-classpath junit) ant current -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 devdoc #test-multiples test-singles test-extras basic-blackbox blackbox devdoc javadoc %install %mvn_artifact build/maven/pom.xml for sub_component in bind extras run schema tools; do %mvn_artifact build/maven/jibx-${sub_component}/pom.xml lib/%{name}-${sub_component}.jar done %mvn_install -J %{_builddir}/%{name}/build/api %files -f .mfiles %files javadoc -f .mfiles-javadoc %changelog * Fri Feb 01 2019 Fedora Release Engineering - 1.2.6-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jan 23 2019 Mat Booth - 1.2.6-13 - Fix FTBFS due to hard-coded JDT location * Fri Jul 13 2018 Fedora Release Engineering - 1.2.6-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1.2.6-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Jan 19 2018 Merlin Mathesius - 1.2.6-10 - Fix FTBFS by updating paths to new locations for eclipse platform plugins * Thu Aug 03 2017 Fedora Release Engineering - 1.2.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.2.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Feb 13 2017 gil cattaneo 1.2.6-7 - fix FTBFS * Fri Feb 10 2017 Fedora Release Engineering - 1.2.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu May 05 2016 Mat Booth - 1.2.6-5 - Fix build against Eclipse Neon -- thanks to 'david_david' from Mageia * Thu Feb 04 2016 Fedora Release Engineering - 1.2.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Feb 5 2015 Mikolaj Izdebski - 1.2.6-2 - Port to QDox 2 * Thu Feb 05 2015 gil cattaneo 1.2.6-2 - enable qdox support * Sun Jan 04 2015 gil cattaneo 1.2.6-1 - update to 1.2.6, rhbz#1178346 * Sat Aug 16 2014 Fedora Release Engineering - 1.2.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.2.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Mar 28 2014 Michael Simacek - 1.2.5-7 - Use Requires: java-headless rebuild (#1067528) * Fri Nov 15 2013 gil cattaneo 1.2.5-6 - use objectweb-asm3 * Sun Aug 25 2013 gil cattaneo 1.2.5-5 - install unversioned jars - preserve poms timestamp * Sat Aug 24 2013 gil cattaneo 1.2.5-4 - fix rhbz#992870 - removed asm2 references - fix some rpmlint problems - fix BR list * Sat Aug 03 2013 Fedora Release Engineering - 1.2.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Mar 23 2013 Johannes Lips - 1.2.5-2 - added ant build option to fix #845625 * Wed Feb 27 2013 Johannes Lips - 1.2.5-1 - update to latest upstream version * Thu Feb 14 2013 Fedora Release Engineering - 1.2.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 25 2012 Johannes Lips - 1.2.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jul 21 2012 Johannes Lips - 1.2.4-5 - fixed the empty debuginfo package * Tue Jul 17 2012 Patryk Obara - 1.2.4-4 - fixed the maven pom patch (#840929) * Tue May 29 2012 Johannes Lips - 1.2.4-3 - add maven pom (patch from Gil Cattaneo #825465) - minor changes to adapt to guideline changes * Sun May 20 2012 Johannes Lips - 1.2.4-2 - removed the empty debuginfo subpackage caused by the removal of noarch * Sat May 05 2012 Johannes Lips - 1.2.4-1 - update to recent upstream version - removed buildarch noarch * Sat Jan 14 2012 Johannes Lips - 1.2.3-3 - added eclipse-platform as BR - fixed the jdt.core path * Fri Jan 13 2012 Fedora Release Engineering - 1.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Apr 21 2011 Johannes Lips - 1.2.3-1 - Update to 1.2.3 * Wed Feb 09 2011 Fedora Release Engineering - 1.2.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Sep 09 2010 Johannes Lips - 1.2.2-7 - added a version requirement for java-devel - disabled the tests * Thu Sep 09 2010 Johannes Lips - 1.2.2-6 - added a patch to meet all the dependencies * Sun Sep 05 2010 Johannes Lips - 1.2.2-5 - removed the classpath - changed the license - removed most required packages * Thu Sep 02 2010 Johannes Lips - 1.2.2-4 - changed the structure - * Thu Sep 02 2010 Johannes Lips - 1.2.2-3 - symlinked all eclipse plugins - removed all bundled dependencies - added the build-jar-repository in the %%prep section - added the tests * Fri Aug 27 2010 Johannes Lips - 1.2.2-2 - consistent usage of %%{buildroot} - added missing javadoc file attributes * Fri Aug 27 2010 Johannes Lips - 1.2.2-1 - initial build