Blame SPECS/istack-commons.spec

c9fa25
Name:           istack-commons
c9fa25
Version:        2.17
888ffb
Release:        4%{?dist}
c9fa25
Summary:        Common code for some Glassfish projects
c9fa25
Group:          Development/Libraries
c9fa25
License:        CDDL and GPLv2 with exceptions
c9fa25
URL:            http://istack-commons.java.net
c9fa25
c9fa25
# svn export https://svn.java.net/svn/istack-commons~svn/tags/istack-commons-2.17/ istack-commons-2.17
c9fa25
# find istack-commons-2.17/ -name '*.class' -delete
c9fa25
# find istack-commons-2.17/ -name '*.jar' -delete
c9fa25
# tar -zcvf istack-commons-2.17.tar.gz istack-commons-2.17
c9fa25
Source0:        %{name}-%{version}.tar.gz
c9fa25
BuildArch:      noarch
c9fa25
c9fa25
BuildRequires:  ant
c9fa25
BuildRequires:  ant-junit
c9fa25
BuildRequires:  args4j
c9fa25
BuildRequires:  bea-stax-api
c9fa25
BuildRequires:  codemodel >= 2.6-4
c9fa25
BuildRequires:  dom4j
c9fa25
BuildRequires:  java-devel
c9fa25
BuildRequires:  jpackage-utils
c9fa25
BuildRequires:  jvnet-parent
c9fa25
BuildRequires:  junit
c9fa25
BuildRequires:  maven-local
c9fa25
BuildRequires:  maven-clean-plugin
c9fa25
BuildRequires:  maven-compiler-plugin
c9fa25
BuildRequires:  maven-install-plugin
c9fa25
BuildRequires:  maven-jar-plugin
c9fa25
BuildRequires:  maven-javadoc-plugin
c9fa25
BuildRequires:  maven-plugin-build-helper
c9fa25
BuildRequires:  maven-plugin-plugin
c9fa25
BuildRequires:  maven-release-plugin
c9fa25
BuildRequires:  maven-resources-plugin
c9fa25
BuildRequires:  maven-shared-file-management
c9fa25
BuildRequires:  plexus-archiver
c9fa25
BuildRequires:  plexus-io
c9fa25
BuildRequires:  testng
c9fa25
c9fa25
Requires:       jpackage-utils
c9fa25
Requires:       java
c9fa25
Requires:       jvnet-parent
c9fa25
c9fa25
c9fa25
%description
c9fa25
Code shared between JAXP, JAXB, SAAJ, and JAX-WS projects.
c9fa25
c9fa25
c9fa25
%package -n maven-istack-commons-plugin
c9fa25
Summary:        istack-commons Maven Mojo
c9fa25
Group:          Development/Libraries
c9fa25
Requires:       %{name} = %{version}-%{release}
c9fa25
Requires:       codemodel >= 2.6-4
c9fa25
Requires:       maven-shared-file-management
c9fa25
Requires:       plexus-archiver
c9fa25
Requires:       plexus-io
c9fa25
c9fa25
c9fa25
%description -n maven-istack-commons-plugin
c9fa25
This package contains the istack-commons Maven Mojo.
c9fa25
c9fa25
c9fa25
%package javadoc
c9fa25
Summary:        Javadocs for %{name}
c9fa25
Group:          Documentation
c9fa25
Requires:       jpackage-utils
c9fa25
c9fa25
c9fa25
%description javadoc
c9fa25
This package contains the API documentation for %{name}.
c9fa25
c9fa25
c9fa25
%prep
c9fa25
%setup -q
c9fa25
rm -rf test/lib/*.zip runtime/lib/*.zip
c9fa25
c9fa25
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin
c9fa25
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
c9fa25
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
888ffb
%pom_remove_plugin org.codehaus.mojo:cobertura-maven-plugin
c9fa25
c9fa25
%build
c9fa25
c9fa25
# The "-Pdefault-tools.jar" option is needed in order to make sure that the
c9fa25
# "tools.jar" file is added to the dependencies, otherwise it will not be added
c9fa25
# if the "java.vendor" property is "Oracle Corporation", which happens to be
c9fa25
# the value in JDK7:
c9fa25
mvn-rpmbuild \
c9fa25
  -Dproject.build.sourceEncoding=UTF-8 \
c9fa25
  -Pdefault-tools.jar \
c9fa25
  install \
c9fa25
  javadoc:aggregate
c9fa25
c9fa25
c9fa25
%install
c9fa25
c9fa25
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
c9fa25
install -d -m 755 %{buildroot}%{_javadir}
c9fa25
install -d -m 755 %{buildroot}%{_mavenpomdir}
c9fa25
c9fa25
# JAR
c9fa25
cp -p runtime/target/istack-commons-runtime-%{version}.jar %{buildroot}%{_javadir}/%{name}-runtime.jar
c9fa25
cp -p tools/target/istack-commons-tools-%{version}.jar %{buildroot}%{_javadir}/%{name}-tools.jar
c9fa25
cp -p test/target/istack-commons-test-%{version}.jar %{buildroot}%{_javadir}/%{name}-test.jar
c9fa25
cp -p buildtools/target/%{name}-buildtools-%{version}.jar %{buildroot}%{_javadir}/%{name}-buildtools.jar
c9fa25
cp -p maven-plugin/target/%{name}-maven-plugin-%{version}.jar %{buildroot}%{_javadir}/%{name}-maven-plugin.jar
c9fa25
cp -p soimp/target/%{name}-soimp-%{version}.jar %{buildroot}%{_javadir}/%{name}-soimp.jar
c9fa25
c9fa25
# JAVADOC
c9fa25
cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
c9fa25
c9fa25
# POM
c9fa25
cp -p pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
c9fa25
cp -p runtime/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-runtime.pom
c9fa25
cp -p tools/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-tools.pom
c9fa25
cp -p test/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-test.pom
c9fa25
cp -p buildtools/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-buildtools.pom
c9fa25
cp -p maven-plugin/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-maven-plugin.pom
c9fa25
cp -p soimp/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-soimp.pom
c9fa25
c9fa25
# DEPMAP
c9fa25
%add_maven_depmap JPP-%{name}.pom
c9fa25
%add_maven_depmap JPP-%{name}-runtime.pom %{name}-runtime.jar
c9fa25
%add_maven_depmap JPP-%{name}-tools.pom %{name}-tools.jar
c9fa25
%add_maven_depmap JPP-%{name}-test.pom %{name}-test.jar
c9fa25
%add_maven_depmap JPP-%{name}-buildtools.pom %{name}-buildtools.jar
c9fa25
%add_maven_depmap JPP-%{name}-maven-plugin.pom %{name}-maven-plugin.jar -f maven-plugin
c9fa25
%add_maven_depmap JPP-%{name}-soimp.pom %{name}-soimp.jar
c9fa25
c9fa25
%files
c9fa25
%{_mavenpomdir}/JPP-%{name}-runtime.pom
c9fa25
%{_mavenpomdir}/JPP-%{name}-test.pom
c9fa25
%{_mavenpomdir}/JPP-%{name}-tools.pom
c9fa25
%{_mavenpomdir}/JPP-%{name}.pom
c9fa25
%{_mavenpomdir}/JPP-%{name}-buildtools.pom
c9fa25
%{_mavenpomdir}/JPP-%{name}-soimp.pom
c9fa25
%{_mavendepmapfragdir}/%{name}
c9fa25
%{_javadir}/%{name}-buildtools.jar
c9fa25
%{_javadir}/%{name}-runtime.jar
c9fa25
%{_javadir}/%{name}-soimp.jar
c9fa25
%{_javadir}/%{name}-test.jar
c9fa25
%{_javadir}/%{name}-tools.jar
c9fa25
%doc Licence.txt
c9fa25
c9fa25
%files -n maven-istack-commons-plugin
c9fa25
%{_javadir}/%{name}-maven-plugin.jar
c9fa25
%{_mavenpomdir}/JPP-%{name}-maven-plugin.pom
c9fa25
%{_mavendepmapfragdir}/%{name}-maven-plugin
c9fa25
%doc Licence.txt
c9fa25
c9fa25
%files javadoc
c9fa25
%{_javadocdir}/%{name}
c9fa25
%doc Licence.txt
c9fa25
c9fa25
c9fa25
%changelog
888ffb
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.17-4
888ffb
- Mass rebuild 2013-12-27
888ffb
888ffb
* Fri Dec 6 2013 Ade Lee <alee@redhat.com> - 2.17-3
888ffb
- Remove cobertura dependency
888ffb
 
888ffb
* Fri Jul 26 2013 Ade Lee <alee@redhat.com> - 2.17-2
c9fa25
- Bugzilla BZ#988933 - Removed unneeded build dependencies.
c9fa25
c9fa25
* Thu May 16 2013 Tom Callaway <spot@fedoraproject.org> - 2.17-1
c9fa25
- update to 2.17
c9fa25
c9fa25
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-7
c9fa25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c9fa25
c9fa25
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.6.1-6
c9fa25
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
c9fa25
- Replace maven BuildRequires with maven-local
c9fa25
c9fa25
* Sat Jul 21 2012 Juan Hernandez <juan.hernandez@redhat.com> - 2.6.1-5
c9fa25
- Add maven-enforcer-plugin as build time dependency
c9fa25
c9fa25
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-4
c9fa25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c9fa25
c9fa25
* Sat Mar 31 2012 Gil Cattaneo <puntogil@libero.it> 2.6.1-3
c9fa25
- Rebuilt with codemodel support
c9fa25
- Enable maven-plugin, test and buildtools modules
c9fa25
c9fa25
* Mon Feb 13 2012 Juan Hernandez <juan.hernandez@redhat.com> 2.6.1-2
c9fa25
- Minor cleanups of the spec file
c9fa25
c9fa25
* Mon Jan 16 2012 Marek Goldmann <mgoldman@redhat.com> 2.6.1-1
c9fa25
- Initial packaging