Create EPEL 6 package using the maven ant plugin
This commit is contained in:
parent
397f73a1c4
commit
f3218ffdb7
4 changed files with 408 additions and 19 deletions
|
|
@ -6,18 +6,26 @@ Summary: Virtual Organization Membership Service Java API
|
|||
License: ASL 2.0
|
||||
URL: https://wiki.italiangrid.it/VOMS
|
||||
Source0: https://github.com/italiangrid/%{name}/archive/v%{version}.tar.gz
|
||||
# These are build instructions for ant generated from the maven
|
||||
# build instructions using the maven ant plugin.
|
||||
# These are used for building on EPEL 6 since there is no maven
|
||||
# available there.
|
||||
Source1: build.xml
|
||||
Source2: maven-build.xml
|
||||
Source3: maven-build.properties
|
||||
# Disable tests using non-local network interface
|
||||
Patch0: %{name}-no-local.patch
|
||||
# Adapt to canl-java version 2.5
|
||||
Patch1: %{name}-canl-2.5.patch
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(eu.eu-emi.security:canl) >= 2.5
|
||||
BuildRequires: mvn(junit:junit)
|
||||
BuildRequires: mvn(org.mockito:mockito-core)
|
||||
BuildRequires: mvn(net.jcip:jcip-annotations)
|
||||
Requires: mvn(eu.eu-emi.security:canl) >= 2.5
|
||||
BuildRequires: java-devel >= 1:1.6
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: ant
|
||||
BuildRequires: canl-java >= 2.5
|
||||
Requires: java >= 1:1.6
|
||||
Requires: jpackage-utils
|
||||
Requires: canl-java >= 2.5
|
||||
|
||||
%description
|
||||
The Virtual Organization Membership Service (VOMS) is an attribute authority
|
||||
|
|
@ -39,34 +47,49 @@ Virtual Organization Membership Service (VOMS) Java API Documentation.
|
|||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
# Do not create source jars
|
||||
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin
|
||||
|
||||
# Cobertura no longer in Fedora due to licensing issues
|
||||
%pom_remove_plugin org.codehaus.mojo:cobertura-maven-plugin
|
||||
|
||||
# Remove license plugin
|
||||
%pom_remove_plugin com.mycila.maven-license-plugin:maven-license-plugin
|
||||
cp -p %{SOURCE1} .
|
||||
cp -p %{SOURCE2} .
|
||||
cp -p %{SOURCE3} .
|
||||
|
||||
%build
|
||||
%mvn_build
|
||||
export CLASSPATH=$(build-classpath bcprov bcpkix commons-io canl)
|
||||
# The tests use mockito which is not available in EPEL 6 - skipping tests
|
||||
%ant -Dbuild.sysclasspath=last -Dmaven.test.skip=true package javadoc
|
||||
|
||||
%install
|
||||
%mvn_install -J target/site/javadoc/apidocs
|
||||
mkdir -p %{buildroot}%{_javadir}
|
||||
install -m 644 target/%{name}-%{version}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}.jar
|
||||
|
||||
%files -f .mfiles
|
||||
%dir %{_javadir}/%{name}
|
||||
mkdir -p %{buildroot}%{_mavenpomdir}
|
||||
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%add_to_maven_depmap org.italiangrid %{name} %{version} JPP %{name}
|
||||
|
||||
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr target/site/apidocs %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%post
|
||||
%update_maven_depmap
|
||||
|
||||
%postun
|
||||
%update_maven_depmap
|
||||
|
||||
%files
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
%doc AUTHORS README.md
|
||||
%license LICENSE
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%files javadoc
|
||||
%doc %{_javadocdir}/%{name}
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Fri Jan 05 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 3.2.0-5
|
||||
- Adapt to canl-java 2.5
|
||||
- Use jcip-annotations for EPEL 7 build
|
||||
- Create EPEL 6 package using the maven ant plugin
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue