[Jpackage-commits] dist/l2fprod-common/devel .cvsignore, 1.1, 1.2 l2fprod-common.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Sat Jun 26 12:16:01 CEST 2010


Update of /home/projects/jpackage/cvs/dist/l2fprod-common/devel
In directory ryu.zarb.org:/tmp/cvs-serv11985/devel

Modified Files:
	.cvsignore sources 
Added Files:
	l2fprod-common.spec 
Log Message:
Import l2fprod-common into devel

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/l2fprod-common/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	26 Jun 2010 10:15:06 -0000	1.1
--- .cvsignore	26 Jun 2010 10:15:58 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ l2fprod-common-7.3-20090428cvs.tar.bz2

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/l2fprod-common/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	26 Jun 2010 10:15:06 -0000	1.1
--- sources	26 Jun 2010 10:15:58 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 0f8ec318a705fcce7a447815f645e080  l2fprod-common-7.3-20090428cvs.tar.bz2

--- NEW FILE: l2fprod-common.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 reldate 20090428
%define cvstag %{reldate}cvs

Name:           l2fprod-common
Version:        7.3
Release:        0.%{cvstag}.7%{?dist}
Summary:        In JavaSE missing Swing components, inspired from modern user interfaces
Group:          Development/Libraries
License:        ASL 2.0
URL:            http://www.l2fprod.com/common/
# cvs -d:pserver:guest at cvs.dev.java.net:/cvs login
# cvs -d:pserver:guest at cvs.dev.java.net:/cvs co l2fprod-common
# tar -cjf l2fprod-common-%{version}-%{cvstag}.tar.bz2 l2fprod-common
Source0:        %{name}-%{version}-%{cvstag}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:     java-devel >= 0:1.6.0
BuildRequires:     jpackage-utils >= 0:5.0.0
BuildRequires:     jcalendar
BuildRequires:     nachocalendar
Requires:          java >= 0:1.6.0
Requires:          jpackage-utils >= 0:5.0.0

%description
Swing has lot of components built-in but still some are missing. This
provides the developer community with these missing components,
components inspired from modern user interfaces.


%package javadoc
Summary:           Javadocs for l2fprod-common
Group:             Documentation
Requires:          %name = %{version}-%{release}
Requires:          jpackage-utils

%description javadoc
l2fprod-common development documentation.


%prep
%setup -q -n %{name}

# Clean up the CVS directories contained in the cvs-snapshot tarball
find . -type d -name CVS | xargs rm -rf

# Change the line endings but preserve the timestamp
%{__sed} -i.tmp 's/\r//' LICENSE.txt
touch -r LICENSE.txt.tmp LICENSE.txt

# We can't build this module without the spring framework.
# The spring framework is not yet in the Fedora repos.
rm -rf docs lib src/java/springrcp

# The only file with another license. We don't need/use it, therefore we delete it to keep this ASL 2.0 only.
rm -f src/tests/com/l2fprod/common/demo/MainUnitTest.java


%build
mkdir target

cp -a src/java target
find target -name '*.java' -exec rm -f {} \;

find src/java -name '*.java' -print0 | xargs -0 javac -d target -cp `build-classpath nachocalendar jcalendar`
jar -cf %{name}-%{version}.jar -C target .

find src/java -name '*.java' -print0 | xargs -0 javadoc -d doc -classpath `build-classpath nachocalendar jcalendar`


%install
rm -rf $RPM_BUILD_ROOT

# jar
install -d $RPM_BUILD_ROOT%{_javadir}/%{name}
install -m644 %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-all-%{version}.jar
ln -s %{name}-all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-all.jar
for dir in src/java/*/; do
 subname=$(basename $dir)
 for exception in demo springrcp; do
  if [ $subname = $exception ] ; then continue 2 ; fi
 done
 ln -sf %{name}-all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-${subname}.jar
 ln -sf %{name}-all-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-${subname}-%{version}.jar
done

# javadoc
install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -rp doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc LICENSE.txt
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/%{name}-*.jar

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


%changelog
* Sat Jun 26 2010 Ralph Apel <r.apel at r-apel.de> - 7.3-0.20090428cvs.7
- Adapt to JPP-6

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

* Thu Apr 30 2009 Sandro Mathys <red at fedoraproject.org> - 7.3-5.20090428cvs
- Finishing touch before importing into Fedora CVS.

* Wed Apr 29 2009 Sandro Mathys <red at fedoraproject.org> - 7.3-4.20090428cvs
- Added deletion of the only file that is not ASL 2.0 to prep.
- CVS directories are now being removed in prep.
- Several minor changes to the spec file mainly for non-technical reasons (i.e. easier to maintain/read output).

* Tue Apr 28 2009 Sandro Mathys <red at fedoraproject.org> - 7.3-3.20090428cvs
- Moved to latest cvs as license issues have been fixed there but no new upstream archive has been released.

* Thu Dec 18 2008 Sandro Mathys <red at fedoraproject.org> - 7.3-2
- The classpath for javac and javadoc is no longer hardcoded with the absolute path. Instead, build-classpath is used to retrieve the absolute path.

* Tue Dec 16 2008 Sandro Mathys <red at fedoraproject.org> - 7.3-1
- initial build




More information about the JPackage-commits mailing list