%global pkg_name maven-jxr %{?scl:%scl_package %{pkg_name}} %{?maven_find_provides_and_requires} # Copyright (c) 2000-2005, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Name: %{?scl_prefix}%{pkg_name} Version: 2.3 Release: 11.9%{?dist} Epoch: 0 Summary: Source cross referencing tool # BSD: maven-jxr/src/main/java/org/apache/maven/jxr/JavaCodeTransform.java License: ASL 2.0 and BSD URL: http://maven.apache.org/doxia/ Source0: http://repo2.maven.org/maven2/org/apache/maven/jxr/jxr/%{version}/jxr-%{version}-source-release.zip # taken from maven-jxr/src/main/java/org/apache/maven/jxr/JavaCodeTransform.java Source1: LICENSE-BSD BuildArch: noarch BuildRequires: %{?scl_prefix_java_common}maven-local BuildRequires: %{?scl_prefix_java_common}mvn(commons-io:commons-io) BuildRequires: %{?scl_prefix_java_common}mvn(commons-lang:commons-lang) BuildRequires: %{?scl_prefix}mvn(org.apache.maven.doxia:doxia-sink-api) BuildRequires: %{?scl_prefix}mvn(org.apache.maven.doxia:doxia-site-renderer) BuildRequires: %{?scl_prefix}mvn(org.apache.maven.reporting:maven-reporting-api) BuildRequires: %{?scl_prefix}mvn(org.apache.maven.reporting:maven-reporting-impl) BuildRequires: %{?scl_prefix}mvn(org.apache.maven.wagon:wagon-provider-api) BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-model) BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-parent:pom:) BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-plugin-api) BuildRequires: %{?scl_prefix}mvn(org.apache.maven:maven-project) BuildRequires: %{?scl_prefix}mvn(org.apache.velocity:velocity) BuildRequires: %{?scl_prefix}mvn(org.codehaus.plexus:plexus-utils) BuildRequires: %{?scl_prefix_java_common}mvn(oro:oro) BuildRequires: %{?scl_prefix_java_common}mvn(xalan:xalan) BuildRequires: %{?scl_prefix_java_common}mvn(xml-apis:xml-apis) %description Maven JXR is a source cross referencing tool. %package javadoc Summary: Javadoc for %{pkg_name} %description javadoc API documentation for %{pkg_name}. %package -n %{?scl_prefix}maven-plugin-jxr Summary: Maven plugin for JXR Requires: %{name} = %{version}-%{release} %description -n %{?scl_prefix}maven-plugin-jxr Maven plugin for JXR. %prep %setup -q -n jxr-%{version} %{?scl:scl enable %{scl} - <<"EOF"} set -e -x cp %{SOURCE1} . # Missing dependency %pom_add_dep oro:oro maven-jxr %mvn_package :maven-jxr-plugin maven-plugin-jxr # maven-core has scope "provided" in Plugin Testing Harness, so we # need to provide it or tests will fail to compile. This works for # upstream because upstream uses a different version of Plugin Testing # Harness in which scope of maven-core dependency is "compile". %pom_xpath_inject pom:project "" %pom_add_dep org.apache.maven:maven-core::test %{?scl:EOF} %build %{?scl:scl enable %{scl} - <<"EOF"} set -e -x # The test failures seem to have something to do with: # http://jira.codehaus.org/browse/MCHANGES-88 # We can investigate when we upgrade to 2.2.x to see if they still occur. # Update: Seems that tests fail because they are trying to access # plexus component descriptors which seem to be different? %mvn_build -f %{?scl:EOF} %install %{?scl:scl enable %{scl} - <<"EOF"} set -e -x %mvn_install %{?scl:EOF} %files -f .mfiles %dir %{_mavenpomdir}/%{pkg_name} %dir %{_javadir}/%{pkg_name} %doc LICENSE LICENSE-BSD NOTICE %files javadoc -f .mfiles-javadoc %doc LICENSE LICENSE-BSD NOTICE %files -n %{?scl_prefix}maven-plugin-jxr -f .mfiles-maven-plugin-jxr %changelog * Thu Jan 15 2015 Mikolaj Izdebski - 0:2.3-11.9 - Add directory ownership on %%{_mavenpomdir} subdir * Wed Jan 14 2015 Mikolaj Izdebski - 0:2.3-11.8 - Fix BR on maven-parent POM * Tue Jan 13 2015 Michael Simacek - 0:2.3-11.8 - Mass rebuild 2015-01-13 * Tue Jan 06 2015 Michael Simacek - 0:2.3-11.7 - Mass rebuild 2015-01-06 * Mon May 26 2014 Mikolaj Izdebski - 0:2.3-11.6 - Mass rebuild 2014-05-26 * Wed Feb 19 2014 Mikolaj Izdebski - 0:2.3-11.5 - Mass rebuild 2014-02-19 * Tue Feb 18 2014 Mikolaj Izdebski - 0:2.3-11.4 - Mass rebuild 2014-02-18 * Fri Feb 14 2014 Michael Simacek - 0:2.3-11.3 - SCL-ize BR's - SCL-ize plugin subpackage * Thu Feb 13 2014 Mikolaj Izdebski - 0:2.3-11.2 - Rebuild to regenerate auto-requires * Tue Feb 11 2014 Mikolaj Izdebski - 0:2.3-11.1 - First maven30 software collection build * Fri Dec 27 2013 Daniel Mach - 02.3-11 - Mass rebuild 2013-12-27 * Tue Jul 23 2013 Michal Srb - 0:2.3-10 - Build with XMvn - Add BSD license text - Drop group tag - Replace patch with %%pom_ macro - Fix BR * Fri Jul 12 2013 Mikolaj Izdebski - 0:2.3-9 - Remove workaround for rpm bug #646523 * Fri Jun 28 2013 Mikolaj Izdebski - 0:2.3-8 - Rebuild to regenerate API documentation - Resolves: CVE-2013-1571 * Mon Mar 11 2013 Mikolaj Izdebski - 0:2.3-7 - Add maven-core to test dependencies - Resolves: rhbz#914171 * Thu Feb 14 2013 Fedora Release Engineering - 0:2.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Feb 06 2013 Java SIG - 0:2.3-5 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Wed Nov 21 2012 Stanislav Ochotnicky - 0:2.3-4 - Install license files and add BSD to license tag (#876984) * Thu Jul 19 2012 Fedora Release Engineering - 0:2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0:2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Jul 20 2011 Alexander Kurtakov 0:2.3-1 - Update to upstream 2.3. release. * Sun Mar 13 2011 Mat Booth 0:2.2-3 - Maven plug-in sub-package should require the core package. - Use _mavenpomdir macro. - Don't install versioned javadocs. * Tue Feb 08 2011 Fedora Release Engineering - 0:2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Dec 17 2010 Alexander Kurtakov 0:2.2-1 - Update to upstream 2.2. - Adapt to current guidelines. * Tue Sep 7 2010 Stanislav Ochotnicky - 0:2.1-7 - Fix build bug (javadoc:aggregate) * Sat Sep 12 2009 Alexander Kurtakov 0:2.1-6 - Install maven-jxr parent pom. * Sat Sep 12 2009 Alexander Kurtakov 0:2.1-5 - Fix jxr plugin pom name. * Fri Sep 11 2009 Alexander Kurtakov 0:2.1-4 - Add BR for maven2-plugin.site. - BR tomcat5-servlet-api. - BR tomcat5.eclipse-subclipse - update to 1.6.16 in both rawhide and F-14 - BR maven-surefire-provider-junit. - BR maven-plugin-plugin. - BR maven-shared-plugin-testing-harness. * Fri Sep 11 2009 Alexander Kurtakov 0:2.1-3 - Add BR for doxia-sitetools. * Fri Sep 11 2009 Alexander Kurtakov 0:2.1-2 - Fix depmap for the plugin. * Thu Sep 10 2009 Andrew Overholt 2.1-1 - 2.1 - Add maven-plugin-jxr. * Sat Jul 25 2009 Fedora Release Engineering - 0:1.0-4.8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0:1.0-3.8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Aug 13 2008 Deepak Bhole 1.0-2.8 - Build for ppc64 * Wed Jul 9 2008 Tom "spot" Callaway 1.0-2.7 - drop repotag * Thu May 29 2008 Tom "spot" Callaway 1.0-2jpp.6 - fix license tag * Thu Feb 28 2008 Deepak Bhole 1.0-2jpp.5 - Rebuild * Fri Sep 21 2007 Deepak Bhole 1.0-2jpp.4 - Build without maven - ExcludeArch ppc64 * Fri Aug 31 2007 Deepak Bhole 0:1.0-2jpp.3 - Build without maven (for initial ppc build) * Tue Mar 20 2007 Deepak Bhole 0:1.0-2jpp.2 - Build with maven * Tue Feb 27 2007 Tania Bento 0:1.0-2jpp.1 - Fixed %%Release. - Fixed %%BuildRoot. - Removed period from %%Summary. - Removed %%Vendor. - Removed %%Distribution. - Removed %%post and %%postun sections for javadoc. - Added gcj support option. - Fixed instructions on how to generate source drops. * Tue Oct 17 2006 Deepak Bhole - 0:1.0-2jpp - Update for maven 9jpp. * Fri Jun 16 2006 Deepak Bhole - 0:1.0-1jpp - Initial build