[Jpackage-commits] rpms/free/paranamer paranamer-distribution-pom.patch, NONE, 1.1 paranamer-distribution-skin.patch, NONE, 1.1 paranamer-generator-pom.patch, NONE, 1.1 paranamer-jpp-depmap.xml, NONE, 1.1 paranamer-paranamer-pom.patch, NONE, 1.1 paranamer-settings.xml, NONE, 1.1 paranamer.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Mon Dec 13 21:54:41 CET 2010


Update of /home/projects/jpackage/cvs/rpms/free/paranamer
In directory ryu.zarb.org:/tmp/0bLAQuWvzs/rpms/free/paranamer

Added Files:
	paranamer-distribution-pom.patch 
	paranamer-distribution-skin.patch 
	paranamer-generator-pom.patch paranamer-jpp-depmap.xml 
	paranamer-paranamer-pom.patch paranamer-settings.xml 
	paranamer.spec 
Log Message:
1.5-1.jpp6

--- NEW FILE: paranamer-settings.xml ---
<settings>
	<profiles>
		<profile>
			<id>JPP</id>
			<repositories>
				<repository>
					<id>internal</id>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>external</id>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>local</id>
					<layout>jpp</layout>
					<url>__MAVENREPO_DIR_PLACEHOLDER__</url>
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id>plugins-internal</id>
					<name>plugins-internal</name>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-external</id>
					<name>plugins-external</name>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-maven</id>
					<name>plugins-maven</name>
					<layout>jpp</layout>
					<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>
	<activeProfiles>
		<activeProfile>JPP</activeProfile>
	</activeProfiles>
</settings>

--- NEW FILE: paranamer-jpp-depmap.xml ---
<dependencies>
	<dependency>
	  <maven>
		<groupId>junit</groupId>
		<artifactId>junit</artifactId>
		<version>4.3.1</version>
	  </maven>
	  <jpp>
		<groupId>JPP</groupId>
		<artifactId>junit4</artifactId>
		<version>4.5</version>
	  </jpp>
	</dependency>

</dependencies>

--- NEW FILE: paranamer.spec ---
# Copyright (c) 2000-2010, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

# If you don't want to build with maven, and use straight ant instead,
# give rpmbuild option '--without maven'

%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
%define without_maven %{?_without_maven:1}%{!?_without_maven:0}

%define section free

Summary:        Method parameter name access
Name:           paranamer
Version:        1.5
Release:        1%{?dist}
Epoch:          0
License:        Apache-style Software License
URL:            http://paranamer.codehaus.org/
Group:          Development/Libraries/Java
Source0:        paranamer-1.5.tar.gz
# svn export http://svn.codehaus.org/paranamer/tags/paranamer-1.5/
# tar czf paranamer-1.5.tar.gz paranamer-1.5/


Source1:        %{name}-settings.xml
Source2:        %{name}-jpp-depmap.xml
Patch0:         paranamer-generator-pom.patch
Patch1:         paranamer-paranamer-pom.patch
Patch2:         paranamer-distribution-pom.patch
Patch3:         paranamer-distribution-skin.patch

BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  ant >= 0:1.7.1
BuildRequires:  ant-junit
%if %{with_maven}
BuildRequires:  maven2 >= 2.0.8
BuildRequires:  maven2-plugin-ant
BuildRequires:  maven2-plugin-antrun
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-dependency
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-pmd
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-common-poms >= 1.0
BuildRequires:  maven-plugin-tools
BuildRequires:  maven-surefire-maven-plugin
BuildRequires:  maven-surefire-provider-junit4
BuildRequires:  maven-surefire-report-maven-plugin
BuildRequires:  maven-release
BuildRequires:  mojo-maven2-plugin-cobertura
BuildRequires:  apache-commons-parent
BuildRequires:  jmock >= 0:1.0
BuildRequires:  xsite
%endif

Requires:          java >= 0:1.6.0
Requires(post):    jpackage-utils >= 0:1.7.5
Requires(postun):  jpackage-utils >= 0:1.7.5

%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%if %{gcj_support}
BuildRequires:    gnu-crypto
BuildRequires:    java-gcj-compat-devel
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
%endif


%description
Paranamer is a library that allows the parameter names of 
non-private methods and constructors to be accessed at 
runtime. Normally this information is dropped by the 
compiler. In effect, methods like 
'doSometing(mypkg.Person toMe)' currently look like 
'doSomething(mypackage.Person ???)' to people using i
Java's reflection to inspect methods.  

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description javadoc
%{summary}.

%if %{with_maven}
%package manual
Summary:        Documents for %{name}
Group:          Development/Documentation

%description manual
%{summary}.
%endif

%prep
%setup -q 
cp %{SOURCE1} settings.xml
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
%patch2 -b .sav2
%patch3 -b .sav3

%build
%if %{with_maven}
mkdir external_repo
ln -s %{_javadir} external_repo/JPP

export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL

mkdir -p target/site

mvn-jpp \
        -e \
        -s settings.xml \
        -Dproject.build.directory=$(pwd)/target \
        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven.test.failure.ignore=true \
	install
#       ant:ant install javadoc:javadoc site

%else
ant -Dbuild.sysclasspath=only jar test javadoc
%endif

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
install -m 644 %{name}-ant/target/%{name}-ant-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}/ant-%{version}.jar
install -m 644 %{name}-generator/target/%{name}-generator-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}/generator-%{version}.jar
install -m 644 %{name}-maven-plugin/target/%{name}-maven-plugin-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}/maven-plugin-%{version}.jar
install -m 644 %{name}-more-integration-tests/target/%{name}-more-integration-tests-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}/more-integration-tests-%{version}.jar
install -m 644 %{name}/target/%{name}-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}/core-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)



# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-parent.pom
%add_to_maven_depmap  com.thoughtworks.paranamer paranamer-parent %{version} JPP/%{name} parent
install -m 644 %{name}-ant/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-ant.pom
%add_to_maven_depmap  com.thoughtworks.paranamer paranamer-ant %{version} JPP/%{name} ant
install -m 644 %{name}-generator/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-generator.pom
%add_to_maven_depmap  com.thoughtworks.paranamer paranamer-generator %{version} JPP/%{name} generator
install -m 644 %{name}-maven-plugin/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-maven-plugin.pom
%add_to_maven_depmap  com.thoughtworks.paranamer paranamer-maven-plugin %{version} JPP/%{name} maven-plugin
install -m 644 %{name}-more-integration-tests/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-more-integration-tests.pom
%add_to_maven_depmap  com.thoughtworks.paranamer paranamer-more-integration-tests %{version} JPP/%{name} more-integration-tests
install -m 644 %{name}/pom.xml \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-core.pom
%add_to_maven_depmap  com.thoughtworks.paranamer paranamer %{version} JPP/%{name} core


# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr target/docs/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
rm -rf target/docs/javadoc

# manual
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp LICENSE.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%if %{with_maven}
cp -pr target/docs $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%endif

%if %{gcj_support}
export CLASSPATH=$(build-classpath gnu-crypto)
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/LICENSE.txt
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%if %{gcj_support}
%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/*

%if %{with_maven}
%files manual
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}
%endif

%changelog
* Sat Dec 11 2010 Ralph Apel <r.apel at r-apel.de> 0:1.5-1
- First JPP-6 release


--- NEW FILE: paranamer-distribution-pom.patch ---
--- paranamer-distribution/pom.xml.sav2	2009-05-19 13:10:23.000000000 +0200
+++ paranamer-distribution/pom.xml	2010-12-11 11:59:47.000000000 +0100
@@ -24,9 +24,9 @@
   <build>
     <plugins>
       <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>dependency-maven-plugin</artifactId>
-        <version>1.0</version>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <version>2.0</version>
         <executions>
           <execution>
             <id>unpack</id>

--- NEW FILE: paranamer-distribution-skin.patch ---
--- paranamer-distribution/src/site/templates/skin.html.sav	2010-12-11 12:00:23.000000000 +0100
+++ paranamer-distribution/src/site/templates/skin.html	2010-12-11 12:04:47.000000000 +0100
@@ -44,15 +44,6 @@
             <#list sitemap.sections as section>
                 <div class="MenuGroup">
                     <h1>${section.name}</h1>
-                    <ul>
-                        <#list section.entries as entry>
-                            <#if entry = page>
-                                <li class="currentLink">${entry.title}</li>
-                            <#else>
-                                <li><a href="${entry.href}">${entry.title}</a></li>
-                            </#if>
-                        </#list>
-                    </ul>
                 </div>
             </#list>
         </div>

--- NEW FILE: paranamer-paranamer-pom.patch ---
--- paranamer/pom.xml.sav1	2009-05-19 13:10:23.000000000 +0200
+++ paranamer/pom.xml	2010-12-11 11:21:46.000000000 +0100
@@ -14,6 +14,12 @@
         <version>1.6.3</version>
         <scope>test</scope>
       </dependency>
+      <dependency>
+        <groupId>jmock</groupId>
+        <artifactId>jmock</artifactId>
+        <version>1.2.0</version>
+        <scope>test</scope>
+      </dependency>
     </dependencies>
 	<build>
 	  <plugins>
@@ -30,8 +36,8 @@
 	           </execution>
 	         </executions>
 	         <configuration>
-	              <sourceDirectory>${pom.build.sourceDirectory}</sourceDirectory>
-	              <outputDirectory>${pom.build.outputDirectory}</outputDirectory>
+	              <sourceDirectory>src</sourceDirectory>
+	              <outputDirectory>target</outputDirectory>
 	          </configuration>
 	       </plugin>
 	  </plugins>

--- NEW FILE: paranamer-generator-pom.patch ---
--- paranamer-generator/pom.xml.sav	2010-12-11 10:40:42.000000000 +0100
+++ paranamer-generator/pom.xml	2010-12-11 10:41:12.000000000 +0100
@@ -16,7 +16,7 @@
       <scope>compile</scope>
     </dependency>
     <dependency>
-      <groupId>asm</groupId>
+      <groupId>org.objectweb.asm</groupId>
       <artifactId>asm</artifactId>
       <version>3.0</version>
       <scope>compile</scope>




More information about the JPackage-commits mailing list