[RPM (6.0)] [DIST generic] maven-artifact-ant-2.0.4-2.jpp6

Ralph Apel <[email protected]>
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : maven-artifact-ant           Relocations: (not relocatable)
Version     : 2.0.4                             Vendor: JPackage Project
Release     : 2.jpp6                        Build Date: Sat 18 Aug 2012 12:02:47 PM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Java              Source RPM: (none)
Size        : 87355                            License: Apache Software License 2.0
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://maven.apache.org/
Summary     : Maven Artifact Ant
Description :
Maven Artifact Ant.

---------------
Ralph Apel <r.apel at r-apel.de> 0:2.0.4-2
- First JPP-6 release
---------------
maven-artifact-ant.src: W: source-or-patch-not-bzipped maven-artifact-ant-DependenciesTask.patch
maven-artifact-ant.src: W: source-or-patch-not-bzipped maven-artifact-ant-LocalRepository.patch
maven-artifact-ant.src: W: non-standard-group Development/Java
maven-artifact-ant.src: W: no-signature
maven-artifact-ant.src: W: invalid-license Apache Software License 2.0
1 packages and 0 specfiles checked; 0 errors, 5 warnings.

---------------
Index: maven-artifact-ant.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/maven-artifact-ant/maven-artifact-ant.spec,v
retrieving revision 1.1
diff -u -r1.1 maven-artifact-ant.spec
--- maven-artifact-ant.spec	6 Mar 2008 12:25:24 -0000	1.1
+++ maven-artifact-ant.spec	18 Aug 2012 10:11:11 -0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2008, JPackage Project
+# Copyright (c) 2000-2012, JPackage Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -29,6 +29,10 @@
 #
 
 %define section   free
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
 
 # If you don't want to build with maven, and use straight ant instead,
 # give rpmbuild option '--without maven'
@@ -42,13 +46,11 @@
 
 Name:           maven-artifact-ant
 Version:        2.0.4
-Release:        1jpp
+Release:        2%{dist}
 Epoch:          0
 Summary:        Maven Artifact Ant
 License:        Apache Software License 2.0
 Group:          Development/Java
-Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
-Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
 URL:            http://maven.apache.org/
 Source0:        %{name}-%{version}.tar.gz
 # svn export http://svn.apache.org/repos/asf/maven/components/tags/maven-artifact-ant-2.0.4/
@@ -56,13 +58,14 @@
 Source1:        %{name}-build.xml
 Source2:        %{name}-jpp-depmap.xml
 Source3:        %{name}-settings.xml
-
+Patch0:         maven-artifact-ant-LocalRepository.patch
+Patch1:         maven-artifact-ant-DependenciesTask.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 
 BuildArch:      noarch
-BuildRequires:  jpackage-utils >= 0:1.7.4
-BuildRequires:  java-devel = 0:1.5.0
-BuildRequires:  ant >= 0:1.6.5
+BuildRequires:  jpackage-utils >= 0:1.7.5
+BuildRequires:  java-devel = 0:1.6.0
+BuildRequires:  ant >= 0:1.7.1
 BuildRequires:  junit >= 0:3.8.2
 %if %{with_maven}
 BuildRequires:  maven2 >= 0:2.0.4
@@ -75,7 +78,8 @@
 BuildRequires:  maven2-plugin-plugin
 BuildRequires:  maven2-plugin-resources
 BuildRequires:  maven2-plugin-site
-BuildRequires:  maven2-plugin-surefire
+BuildRequires:  maven-surefire-plugin
+BuildRequires:  maven-surefire-provider-junit3
 BuildRequires:  plexus-maven-plugin >= 0:1.3.5
 %endif
 BuildRequires:  maven2-bootstrap
@@ -85,13 +89,13 @@
 
 
 Requires:  maven2
-Requires:  ant >= 0:1.6.5
+Requires:  ant >= 0:1.7.1
 Requires:  maven-wagon
 Requires:  plexus-container-default
 Requires:  plexus-utils >= 0:1.4.8
 
-Requires(post):   jpackage-utils >= 0:1.7.4
-Requires(postun): jpackage-utils >= 0:1.7.4
+Requires(post):   jpackage-utils >= 0:1.7.5
+Requires(postun): jpackage-utils >= 0:1.7.5
 
 %description
 Maven Artifact Ant.
@@ -99,8 +103,6 @@
 %package javadoc
 Summary:        Javadoc for %{name}
 Group:          Development/Documentation
-Requires(post):   /bin/rm,/bin/ln
-Requires(postun): /bin/rm
 
 %description javadoc
 %{summary}.
@@ -112,10 +114,10 @@
 sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
 sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" settings.xml
 sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
+%patch0 -b .sav0
+%patch1 -b .sav1
 
 %build
-export JAVA_HOME=%{_jvmdir}/java-1.5.0
-
 export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
 mkdir -p $MAVEN_REPO_LOCAL
 
@@ -174,27 +176,21 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post javadoc
-rm -f %{_javadocdir}/%{name}
-ln -s %{name}-%{version} %{_javadocdir}/%{name}
-
-%postun javadoc
-if [ "$1" = "0" ]; then
-  rm -f %{_javadocdir}/%{name}
-fi
-
 %files
 %defattr(-,root,root,-)
 %{_javadir}/maven2/%{bname}*.jar
-%{_datadir}/maven2
-%{_mavendepmapfragdir}
+%{_datadir}/maven2/poms/*
+%{_mavendepmapfragdir}/*
 
 %files javadoc
 %defattr(-,root,root,-)
 %doc %{_javadocdir}/%{name}-%{version}
-%ghost %doc %{_javadocdir}/%{name}
+%doc %{_javadocdir}/%{name}
 
 %changelog
+* Sat Aug 18 2012 Ralph Apel <r.apel at r-apel.de> 0:2.0.4-2
+- First JPP-6 release
+
 * Thu Mar 06 2008 Ralph Apel <r.apel at r-apel.de> 0:2.0.4-1jpp
 - First release
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.