[Jpackage-commits] dist/swingx/devel .cvsignore, 1.1, 1.2 sources, 1.1, 1.2 swingx-jpp-depmap.xml, NONE, 1.1 swingx-pom.patch, NONE, 1.1 swingx-settings.xml, NONE, 1.1 swingx.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Wed Jun 23 09:00:03 CEST 2010


Update of /home/projects/jpackage/cvs/dist/swingx/devel
In directory ryu.zarb.org:/tmp/cvs-serv1962/devel

Modified Files:
	.cvsignore sources 
Added Files:
	swingx-jpp-depmap.xml swingx-pom.patch swingx-settings.xml 
	swingx.spec 
Log Message:
Import swingx into devel

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/swingx/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	23 Jun 2010 06:54:35 -0000	1.1
--- .cvsignore	23 Jun 2010 07:00:00 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ swingx-1.6-src.zip

--- NEW FILE: swingx-pom.patch ---
--- pom.xml.orig	2009-11-02 08:15:27.000000000 +0100
+++ pom.xml	2010-06-15 17:07:54.000000000 +0200
@@ -78,11 +78,12 @@
         <executions>
           <execution>
             <goals>
-              <goal>instrument</goal>
+              <goal>instr</goal>
             </goals>
           </execution>
         </executions>
       </plugin>
+<!--
       <plugin>
         <groupId>net.sf.jmd</groupId>
         <artifactId>maven-crap4j-plugin</artifactId>
@@ -103,6 +104,7 @@
             </execution>
         </executions>
       </plugin>
+-->
     </plugins>
   </build>
     <dependencies>
@@ -112,7 +114,6 @@
 			<version>2.0.235</version>
 			<scope>compile</scope>
 		</dependency>
-        </dependency>
         <dependency>
             <groupId>org.swinglabs</groupId>
             <artifactId>multiplegradientpaint</artifactId>

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

    <dependency>
        <maven>
            <groupId>com.jhlabs</groupId>
            <artifactId>filters</artifactId>
            <version>2.0.235</version>
        </maven>
        <jpp>
            <groupId>JPP</groupId>
            <artifactId>jhlabs-filters</artifactId>
            <version>2.0.235</version>
        </jpp>
    </dependency>

    <dependency>
        <maven>
            <groupId>org.swinglabs</groupId>
            <artifactId>multiplegradientpaint</artifactId>
            <version>1.0</version>
        </maven>
        <jpp>
            <groupId>JPP/maven2</groupId>
            <artifactId>empty-dep</artifactId>
            <version>2.0.8</version>
        </jpp>
    </dependency>

</dependencies>

--- NEW FILE: swingx.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.
#

Name:           swingx
Version:        1.6
Release:        1%{?dist}
Summary:        Extensions to the Swing GUI toolkit

Group:          Development/Libraries
License:        LGPL
URL:            https://swingx.dev.java.net/

Source0:        https://swingx.dev.java.net/files/documents/2981/144879/swingx-1.6-src.zip

Source1:        %{name}-settings.xml
Source2:        %{name}-jpp-depmap.xml 
Patch0:         swingx-pom.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  maven2 >= 0:2.0.8
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  jpackage-utils >= 0:5.0.0
BuildRequires:  junit4

Requires:  java >= 0:1.6.0
Requires:  jpackage-utils >= 0:5.0.0

Requires(post):    jpackage-utils >= 0:5.0.0
Requires(postun):  jpackage-utils >= 0:5.0.0

BuildArch:      noarch

%description
Contains extensions to the Swing GUI toolkit, including new
and enhanced components that provide functionality commonly
required by rich client applications. Highlights include:
* Sorting, filtering, highlighting for tables, trees, and lists
* Find/search
* Auto-completion
* Login/authentication framework
* TreeTable component
* Collapsible panel component
* Date picker component
* Tip-of-the-Day component
Many of these features will eventually be incorporated into
the Swing toolkit, although API compatibility will not be
guaranteed. The SwingX project focuses exclusively on the
raw components themselves.

%package javadoc 
Summary:        Javadocs for %{name} 
Group:          Documentation 
Requires:       %{name} = %{version}-%{release} 
 
%description javadoc 
%{summary}. 

%prep
%setup -q -n %{name}-%{version}-src 
cp -p %{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
sed -i -e "s|<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/maven2/plugins</url>|g" settings.xml
%patch0 -b .orig
mkdir external_repo
ln -s %{_javadir} external_repo/JPP

%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p ${MAVEN_REPO_LOCAL}
export MAVEN_OPTS="-Dmaven2.jpp.mode=true -Dmaven2.jpp.depmap.file=%{SOURCE2} -Dmaven.repo.local=${MAVEN_REPO_LOCAL} -Djava.awt.headless=true -Daggregate=true -Dallow.test.failure.ignore=true -Dmaven.test.failure.ignore=true"
export MAVEN_SETTINGS=$(pwd)/settings.xml

%{_bindir}/mvn-jpp \
        -e \
        -s $MAVEN_SETTINGS \
        install javadoc:javadoc


%install
%__rm -rf %{buildroot}

# jar
%__mkdir_p %{buildroot}%{_javadir}
%__install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \
%__ln_s ${jar} ${jar/-%{version}/}; done)

# poms
%__mkdir_p %{buildroot}%{_datadir}/maven2/poms
%__install -m 644 pom.xml \
               $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}

# javadoc 
%__mkdir_p %{buildroot}%{_javadocdir}/%{name}-%{version} 
%__cp -a target/site/apidocs/* \
               %{buildroot}%{_javadocdir}/%{name}-%{version}
%__ln_s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} 

%clean
%__rm -rf %{buildroot}

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(-,root,root,-)
%{_javadir}/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*

%files javadoc 
%defattr(-,root,root,-) 
%{_javadocdir}/%{name}-%{version} 
%{_javadocdir}/%{name} 

%changelog
* Wed Jun 23 2010 Ralph Apel <r.apel at r-apel.de> 1.6-1
- First release


Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/swingx/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	23 Jun 2010 06:54:35 -0000	1.1
--- sources	23 Jun 2010 07:00:00 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ e487182300826faa4ff021df6e70ca06  swingx-1.6-src.zip

--- NEW FILE: swingx-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>
				<repository>
					<id>bootstrap_repo</id>
					<layout>jpp</layout>
					<url>__BOOTSTRAP_DIR_DISABLED__</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>
				<pluginRepository>
					<id>bootstrap_repo</id>
					<layout>jpp</layout>
					<url>__BOOTSTRAP_DIR_DISABLED__</url>
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>
	<activeProfiles>
		<activeProfile>JPP</activeProfile>
	</activeProfiles>
</settings>




More information about the JPackage-commits mailing list