Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > fbb02f21b0db45388ef104c7c5f6ff7a > files > 5

maven-jaxb2-plugin-0.9.1-1.mga5.src.rpm

Name:          maven-jaxb2-plugin
Version:       0.9.1
Release:       %mkrel 1
Summary:       Provides the capability to generate java sources from schemas
Group:         Development/Java
License:       BSD and ASL 2.0
URL:           http://java.net/projects/maven-jaxb2-plugin/pages/Home
# svn export https://svn.java.net/svn/maven-jaxb2-plugin~svn/tags/0.9.1/ maven-jaxb2-plugin-0.9.1
# tar -zcvf maven-jaxb2-plugin-0.9.1.tar.gz maven-jaxb2-plugin-0.9.1
Source0:       %{name}-%{version}.tar.gz
# Don't try to use an internal bundled resolver, as this is not available in
# Fedora:
Patch0:        %{name}-0.9.1-dont-use-internal-resolver.patch
# Adapt for Maven 3:
Patch1:        %{name}-adapt-for-maven-3.patch
# Remove the enconding option as the version of the XJC compiler that we build
# in Fedora doesn't have it:
Patch2:        %{name}-remove-enconding-option.patch

BuildArch:     noarch

BuildRequires: java-headless
BuildRequires: maven-local
BuildRequires: xml-commons-resolver
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-surefire-provider-junit
BuildRequires: glassfish-jaxb
BuildRequires: codemodel

%description
This Maven 2 plugin wraps the JAXB 2.x XJC compiler and provides the capability
to generate Java sources from XML Schemas.

%package       javadoc
Summary:       API documentation for %{name}
Group:         Documentation

%description   javadoc
The API documentation of %{name}.

%prep
%setup -q
%patch0 -p1
# Build only version 2.2
%pom_disable_module plugin-2.0
%pom_disable_module plugin
%pom_disable_module testing
%patch1 -p1
# Add dependency on codemodel:
%pom_add_dep com.sun.codemodel:codemodel:2.6 plugin-2.2
%patch2 -p1

sed -i "s|MavenProjectBuilder.ROLE|org.apache.maven.project.MavenProjectHelper.ROLE|" \
 plugin-2.1/src/test/java/org/jvnet/mjiip/v_2_1/JAXBGenerateTest.java

%pom_xpath_remove "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:configuration"

# use glassfish-jaxb >= 2.1.14 and < 2.2.7
%pom_disable_module plugin-2.2
%mvn_file :maven-jaxb21-plugin %{name}

%mvn_file :%{name}-core %{name}-core

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


%changelog
* Wed Jan 28 2015 pterjan <pterjan> 0.9.1-1.mga5
+ Revision: 812621
- Sync with Fedora 21 (Update to 0.9.1)
- Sync with Fedora 21

  + umeabot <umeabot>
    - Second Mageia 5 Mass Rebuild
    - Mageia 5 Mass Rebuild

* Wed Jan 08 2014 dmorgan <dmorgan> 0.8.1-3.mga4
+ Revision: 565537
- Fix BuildRequires

* Fri Oct 18 2013 umeabot <umeabot> 0.8.1-2.mga4
+ Revision: 521193
- Mageia 4 Mass Rebuild

* Thu Jan 17 2013 dmorgan <dmorgan> 0.8.1-1.mga3
+ Revision: 389206
- New version

  + umeabot <umeabot>
    - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Dec 02 2011 gil <gil> 0.8.0-0.mga2
+ Revision: 175134
- imported package maven-jaxb2-plugin