gil b3a9d01
%global oname jaxb-api
gil b3a9d01
Name:          glassfish-jaxb-api
1b1859b
Version:       2.2.12
10f38f0
Release:       6%{?dist}
gil b3a9d01
Summary:       Java Architecture for XML Binding
gil b3a9d01
License:       CDDL or GPLv2 with exception
gil b3a9d01
URL:           http://jaxb.java.net/
7ed05bd
# jaxb api and impl have different version
9755d4c
# svn export https://svn.java.net/svn/jaxb~version2/tags/jaxb-2_2_6/tools/lib/redist/jaxb-api-src.zip
7ed05bd
2dcf95f
Source0:       http://repo1.maven.org/maven2/javax/xml/bind/%{oname}/%{version}/%{oname}-%{version}-b141001.1542-sources.jar
2dcf95f
Source1:       http://repo1.maven.org/maven2/javax/xml/bind/%{oname}/%{version}/%{oname}-%{version}-b141001.1542.pom
7ed05bd
7ed05bd
d9346c5
BuildRequires:  java-javadoc
d9346c5
BuildRequires:  maven-local
d9346c5
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
d9346c5
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
d9346c5
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
d9346c5
gil b3a9d01
BuildArch:     noarch
gil b3a9d01
bd163b5
# The Fedora Packaging Committee granted openjdk a bundling exception to carry JAXP and
bd163b5
# JAX-WS (glassfish doesn't need one, since it is the upstream for these files).
bd163b5
# Reference: https://fedorahosted.org/fpc/ticket/292
bd163b5
gil b3a9d01
%description
gil b3a9d01
Glassfish - JAXB (JSR 222) API.
gil b3a9d01
gil b3a9d01
%package javadoc
gil b3a9d01
Summary:       Javadoc for %{oname}
gil b3a9d01
Requires:      %{name} = %{version}-%{release} 
gil b3a9d01
gil b3a9d01
%description javadoc
gil b3a9d01
Glassfish - JAXB (JSR 222) API.
gil b3a9d01
gil b3a9d01
This package contains javadoc for %{name}.
gil b3a9d01
gil b3a9d01
%prep
gil b3a9d01
%setup -T -q -c
gil b3a9d01
gil b3a9d01
# fixing incomplete source directory structure
7ed05bd
mkdir -p src/main/java
gil b3a9d01
gil b3a9d01
(
gil b3a9d01
  cd src/main/java
7ed05bd
  unzip -qq %{SOURCE0}
gil b3a9d01
  rm -rf META-INF
gil b3a9d01
)
gil b3a9d01
gil b3a9d01
cp -p %{SOURCE1} pom.xml
gil b3a9d01
1b1859b
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
1b1859b
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin
1b1859b
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
1b1859b
%pom_remove_plugin org.apache.maven.plugins:maven-gpg-plugin
1b1859b
%pom_remove_plugin org.glassfish.build:gfnexus-maven-plugin
1b1859b
2dcf95f
gil b3a9d01
sed -i 's|<location>${basedir}/offline-javadoc</location>|<location>%{_javadocdir}/java</location>|' pom.xml
gil b3a9d01
gil b3a9d01
%build
gil b3a9d01
c964e9f
%mvn_file :%{oname} %{oname}
c964e9f
%mvn_build
gil b3a9d01
gil b3a9d01
%install
c964e9f
%mvn_install
gil b3a9d01
c964e9f
mv %{buildroot}%{_javadocdir}/%{name} \
c964e9f
 %{buildroot}%{_javadocdir}/%{oname}
gil b3a9d01
c964e9f
%files -f .mfiles
gil b3a9d01
gil b3a9d01
%files javadoc
gil b3a9d01
%{_javadocdir}/%{oname}
gil b3a9d01
gil b3a9d01
%changelog
10f38f0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.12-6
10f38f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
10f38f0
d9346c5
* Sat Jul 23 2016 Mat Booth <mat.booth@redhat.com> - 2.2.12-5
d9346c5
- Regenerate BRs
d9346c5
eb07038
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.12-4
eb07038
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
eb07038
88226df
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.12-3
88226df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
88226df
2dcf95f
* Tue Jan 20 2015 gil cattaneo <puntogil@libero.it> 2.2.12-2
2dcf95f
- Update to 2.2.12-b141001.1542
2dcf95f
1b1859b
* Tue Jan 20 2015 gil cattaneo <puntogil@libero.it> 2.2.12-1
1b1859b
- Update to 2.2.12
1b1859b
fbf6292
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.9-6
fbf6292
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fbf6292
a086720
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.2.9-5
a086720
- Use Requires: java-headless rebuild (#1067528)
a086720
7622f94
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.9-4
7622f94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7622f94
c964e9f
* Sat Jul 06 2013 gil cattaneo <puntogil@libero.it> 2.2.9-3
c964e9f
- switch to XMvn
c964e9f
- minor changes to adapt to current guideline
c964e9f
5488e40
* Mon Jun 10 2013 Orion Poplawski <orion@cora.nwra.com> 2.2.9-2
5488e40
- Add requires jvnet-parent
5488e40
9d7ed9f
* Thu May 02 2013 gil cattaneo <puntogil@libero.it> 2.2.9-1
9d7ed9f
- update to 2.2.9
9d7ed9f
56a0740
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.7-3
56a0740
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
56a0740
Stanislav Ochotnicky 2a4dcb4
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.2.7-2
Stanislav Ochotnicky 2a4dcb4
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky 2a4dcb4
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky 2a4dcb4
9755d4c
* Sat Aug 04 2012 gil cattaneo <puntogil@libero.it> 2.2.7-1
9755d4c
- update to 2.2.7
9755d4c
fe78c30
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.6-2
fe78c30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fe78c30
7ed05bd
* Fri Apr 27 2012 gil cattaneo <puntogil@libero.it> 2.2.6-1
7ed05bd
- update to 2.2.6
7ed05bd
- remove Build/Requires: bea-stax-api
7ed05bd
gil b3a9d01
* Tue Jan 24 2012 gil cattaneo <puntogil@libero.it> 2.2.3-2
gil b3a9d01
- revert to 2.2.3 (stable release)
gil b3a9d01
- fix License field
gil b3a9d01
gil b3a9d01
* Fri Jul 22 2011 gil cattaneo <puntogil@libero.it> 2.2.3-1
5488e40
- initial rpm