[Jpackage-commits] dist/backport-util-concurrent/devel .cvsignore, 1.1, 1.2 backport-util-concurrent-3.1.pom, NONE, 1.1 backport-util-concurrent.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 19:48:02 CEST 2008


Update of /home/projects/jpackage/cvs/dist/backport-util-concurrent/devel
In directory ryu.zarb.org:/tmp/cvs-serv6441/devel

Modified Files:
	.cvsignore sources 
Added Files:
	backport-util-concurrent-3.1.pom backport-util-concurrent.spec 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/backport-util-concurrent/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 17:47:43 -0000	1.1
--- .cvsignore	28 May 2008 17:48:00 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ backport-util-concurrent-3.1-src.tar.gz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/backport-util-concurrent/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 17:47:43 -0000	1.1
--- sources	28 May 2008 17:48:00 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 229fb7da5a20a9f4807edd5ae431cc44  backport-util-concurrent-3.1-src.tar.gz

--- NEW FILE: backport-util-concurrent-3.1.pom ---
<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>backport-util-concurrent</groupId>
    <artifactId>backport-util-concurrent</artifactId>
    <version>3.1</version>
    <packaging>jar</packaging>
    <name>Backport of JSR 166</name>
    <url>http://backport-jsr166.sourceforge.net/</url>
    <description>Dawid Kurzyniec's backport of JSR 166</description>
    <licenses>
        <license>
            <name>Public Domain</name>
            <url>http://creativecommons.org/licenses/publicdomain</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <scm>
        <url>svn://dcl.mathcs.emory.edu/software/harness2/trunk/util/backport-util-concurrent/</url>
    </scm>
    <organization>
        <name>Dawid Kurzyniec</name>
        <url>http://www.mathcs.emory.edu/~dawidk/</url>
    </organization>
    <dependencies/>
</project>

--- NEW FILE: backport-util-concurrent.spec ---
# Copyright (c) 2000-2008, 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 section         free

Name:		backport-util-concurrent
Summary:	Backport of java.util.concurrent API, introduced in Java 5.0	
Version: 	3.1
Release:	1jpp
Epoch:		0
URL: 		http://www.mathcs.emory.edu/dcl/util/backport-util-concurrent/
License: 	Creative Commons Public Domain
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Group: 		Development/Libraries/Java
Source0: 	%{name}-%{version}-src.tar.gz
Source1: 	http://repo1.maven.org/maven2/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.pom

BuildRequires:	jpackage-utils >= 0:1.7.4
BuildRequires:	java-devel = 0:1.5.0
BuildRequires:	ant >= 0:1.6.5
BuildRequires:	junit
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:	noarch
Requires:	java >= 0:1.5.0
Requires(post):    jpackage-utils >= 0:1.7.4
Requires(postun):  jpackage-utils >= 0:1.7.4

%description
This package is the backport of java.util.concurrent API, introduced in
Java 5.0, to Java 1.4. The backport is based on public-domain sources 
from the JSR 166 CVS repository, and the dl.util.concurrent package. 

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

%description javadoc
Javadoc for %{name}.

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

find . -name '*.?ar' | xargs rm -f

build-jar-repository -s -p external \
    junit

%build
unset CLASSPATH
export JAVA_HOME=%{_jvmdir}/java-1.5.0
ant dist test

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 backport-util-concurrent-dist/%{name}.jar \
    $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar \
    $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}

# pom
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom


# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr backport-util-concurrent-dist/doc/api/* \
    $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%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

%post
%update_maven_depmap

%postun
%update_maven_depmap

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

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

%changelog
* Fri Feb 08 2008 Ralph Apel <r.apel at r-apel.de> 0:3.1-1jpp
- Upgrade to 3.1 
- Always test

* Wed Jun 14 2006 Ralph Apel <r.apel at r-apel.de> 0:2.1-1jpp
- Upgrade to 2.1 - no licensing issues any more
- Create option --with tests to optionally run tck

* Thu Jan 19 2006 Deepak Bhole <dbhole at redhat.com> 0:2.0.01-1jpp
- Initial build.




More information about the JPackage-commits mailing list