[Jpackage-commits] dist/jgoodies-forms/JPP-6 Makefile, NONE, 1.1 jgoodies-forms-build.patch, NONE, 1.1 jgoodies-forms.spec, NONE, 1.1 sources, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Thu Jun 24 09:44:23 CEST 2010


Update of /home/projects/jpackage/cvs/dist/jgoodies-forms/JPP-6
In directory ryu.zarb.org:/tmp/cvs-serv2103/JPP-6

Added Files:
	Makefile jgoodies-forms-build.patch jgoodies-forms.spec 
	sources 
Log Message:
Import jgoodies-forms into JPP-6

--- NEW FILE: jgoodies-forms.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 shortname forms

Name: jgoodies-forms
Summary: Framework to lay out and implement elegant Swing panels in Java
URL: http://www.jgoodies.com/freeware/forms/
Group: Development/Libraries
Version: 1.3.0
Release: 1%{?dist}
License: BSD

BuildRequires: jpackage-utils >= 0:5.0.0
BuildRequires: java-devel >= 0:1.6.0
BuildRequires: ant
Requires: java >= 0:1.6.0
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

# Unfortunately, the filename has the version in an annoying way
Source0: http://www.jgoodies.com/download/libraries/forms/forms-1_3_0.zip
Patch0: %{name}-build.patch

%description
The JGoodies Forms framework helps you lay out and implement elegant Swing
panels quickly and consistently. It makes simple things easy and the hard
stuff possible, the good design easy and the bad difficult.

Main Benefits:

* Powerful, flexible and precise layout
* Easy to work with and quite easy to learn
* Faster UI production
* Better UI code readability
* Leads to better style guide compliance

%package javadoc
Summary: Javadoc for %{name}
Group: Documentation
%description javadoc
%{summary}.

%prep
%setup -q -n %{shortname}-%{version}
%patch0 -p1
rm %{shortname}-%{version}.jar
rm -r docs/api

%build
export CLASSPATH=""
%ant compile jar javadoc

%install
rm -rf $RPM_BUILD_ROOT
install -p -d $RPM_BUILD_ROOT%{_javadir} \
        $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
install -p -m 644 build/%{shortname}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
cp -pr build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
# Fix the line endings and the encodings
for file in *.txt *.html docs/*.* docs/reference/* docs/tutorial/* \
        src/tutorial/com/jgoodies/forms/tutorial/*.java \
        src/tutorial/com/jgoodies/forms/tutorial/*/*.java
do
    sed -i 's/\r//' $file
done
for file in docs/reference/*.html docs/tutorial/*.html
do
    iconv --from=ISO-8859-1 --to=UTF-8 $file > $file.new
    sed -i 's/iso-8859-1/utf-8/' $file.new
    mv $file.new $file
done
cd $RPM_BUILD_ROOT%{_javadocdir}
ln -s %{name}-%{version} %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%doc RELEASE-NOTES.txt LICENSE.txt README.html docs/ src/tutorial/

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

%changelog
* Thu Jun 24 2010 Ralph Apel <r.apel at r-apel.de> - 1.3.0-1
- 1.3.0 - welcome back to JPP :-)

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Mon May 19 2008 Mary Ellen Foster <mefoster at gmail.com> 1.2.0-1
- Update to 1.2.0

* Tue Oct 16 2007 Mary Ellen Foster <mefoster at gmail.com> 1.1.0-2
- Fix encoding on HTML files
- Use empty CLASSPATH when building
- Fix indentation in spec file

* Wed Sep  5 2007 Mary Ellen Foster <mefoster at gmail.com> 1.1.0-1
- Initial version for Fedora, based on JPackage spec by Eric Lavarde

--- NEW FILE: sources ---
d10c2de2476e7ef05057370e9c663cd0  forms-1_3_0.zip

--- NEW FILE: Makefile ---
# Makefile for source rpm: jgoodies-forms
# $Id: Makefile,v 1.1 2010/06/24 07:44:20 jpackage Exp $
NAME := jgoodies-forms
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef

MAKEFILE_COMMON := $(shell $(find-makefile-common))

ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif

include $(MAKEFILE_COMMON)

--- NEW FILE: jgoodies-forms-build.patch ---
--- forms-1.0.7/build.xml.orig	2007-04-12 10:43:01.000000000 +0200
+++ forms-1.0.7/build.xml	2007-04-12 11:02:21.000000000 +0200
@@ -118,8 +118,7 @@
 			optimize     ="${build.compile.optimize}"
             source       ="${build.compile.source}"
 			target       ="${build.compile.target}"
-			verbose      ="${build.compile.verbose}"
-			bootclasspath="${build.boot.classpath}" />
+                        verbose      ="${build.compile.verbose}"/>
 	</target>
 	
     <!-- ***************************************************************** -->
@@ -139,7 +138,6 @@
             source       ="${build.compile.source}"
 			target       ="${build.compile.target}"
 			verbose      ="${build.compile.verbose}"
-			bootclasspath="${build.boot.classpath}"
 			classpathref ="classpath.core" />
 	</target>
 	
@@ -182,7 +180,6 @@
             source       ="${build.compile.source}"
 			target       ="${build.compile.target}"
 			verbose      ="${build.compile.verbose}"
-			bootclasspath="${build.boot.classpath}"
 			classpathref ="classpath.tutorial" />
 	</target>
 
@@ -202,7 +199,6 @@
             author="true" 
             version="true" 
             use="true" 
-            link="${javadoc.link}"
             overview="${javadoc.overview}"
             windowtitle="${Name} ${spec.version} API" 
             doctitle="${Name} ${spec.version} API"




More information about the JPackage-commits mailing list