[Jpackage-commits] rpms/devel/google-collections08 google-collections-0.8.pom, NONE, 1.1 google-collections08.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Tue Dec 14 18:17:03 CET 2010


Update of /home/projects/jpackage/cvs/rpms/devel/google-collections08
In directory ryu.zarb.org:/tmp/z0JL4GqbqI/rpms/devel/google-collections08

Added Files:
	google-collections-0.8.pom google-collections08.spec 
Log Message:
0.8-1.jpp6

--- NEW FILE: google-collections-0.8.pom ---
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <!-- remove the reference to the parent until the google repo is synced with central -->
  <!-- <parent>
    <groupId>com.google</groupId>
    <artifactId>google</artifactId>
    <version>1</version>
  </parent> -->
  <groupId>com.google.collections</groupId>
  <artifactId>google-collections</artifactId>
  <version>0.8</version>
  <packaging>jar</packaging>
  <name>Google Collections Library</name>
  <description>Google Collections Library is a suite of new collections and collection-related goodness for Java 5.0</description>
  <inceptionYear>2007</inceptionYear>
  <url>http://code.google.com/p/google-collections/</url>
  <organization>
    <name>Google</name>
    <url>http://www.google.com</url>
  </organization>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <url>http://code.google.com/p/google-collections/source/browse/</url>
    <connection>scm:svn:http://google-collections.googlecode.com/svn/trunk/</connection>
  </scm>
  <!-- this is temporarily copied from the parent pom.  remove this section when that is used -->
  <distributionManagement>
    <repository>
      <id>google-maven-repository</id>
      <name>Google Maven Repository</name>
      <url>dav:https://google-maven-repository.googlecode.com/svn/repository/</url>
    </repository>
    <snapshotRepository>
      <id>google-maven-snapshot-repository</id>
      <name>Google Maven Snapshot Repository</name>
      <url>dav:https://google-maven-repository.googlecode.com/svn/snapshot-repository/</url>
      <uniqueVersion>true</uniqueVersion>
    </snapshotRepository>
  </distributionManagement>
  <dependencies>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

--- NEW FILE: google-collections08.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 section free

Name:           google-collections08
Version:        0.8
Release:        1%{?dist}
Epoch:          0
Summary:        Google Collections Library
License:        ASL 2.0
Group:          Development/Libraries/Java
URL:            http://code.google.com/p/google-collections/
Source0:        google-collections08-0.8.tar.bz2
# svn export -r {20080820} http://google-collections.googlecode.com/svn/trunk/ google-collections08-0.8 
# tar cjf google-collections08-0.8.tar.bz2 google-collections08-0.8/
Source1:        http://google-maven-repository.googlecode.com/svn/repository/com/google/collections/google-collections/0.8/google-collections-0.8.pom
#Patch0:         google-collections-javadoc-crosslink.patch
Provides:       google-collect = %{epoch}:%{version}-%{release}
Requires:       jpackage-utils
BuildRequires:  ant
BuildRequires:  java-devel
BuildRequires:  java-javadoc
BuildRequires:  jpackage-utils
Buildarch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
The Google Collections Library is a suite of new collections and
collection-related goodness for Java 5.0, brought to you by Google.

This library is a natural extension of the Java Collections Framework you
already know and love.

The major new types are:

    * BiMap. A Map that guarantees unique values, and supports an inverse view.
    * Multiset. A Collection that may contain duplicate values like a List, yet
      has order-independent equality like a Set. Often used to represent a
      histogram.
    * Multimap. Similar to Map, but may contain duplicate keys. Has subtypes
      SetMultimap and ListMultimap providing more specific behavior. 

There are also more than a dozen collection implementations, mostly of the
interfaces above, but not all. ReferenceMap, for example, is a ConcurrentMap
implementation which easily handles any combination of strong, soft or weak
keys with strong, soft or weak values.

Static utility classes include:

    * Comparators. Natural order, compound, null-friendly, ad-hoc . . .
    * Iterators and Iterables. Element-based equality, cycle, concat,
      partition, filter with predicate, transform with function . . .
    * Lists, Sets and Maps. A plethora of convenient factory methods and much
      more.
    * PrimitiveArrays: "boxing"/"unboxing" of primitive arrays 

And there's more:

    * Forwarding collections
    * Constrained collections
    * Implementation helpers like AbstractIterator 

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

%description javadoc
Javadoc for %{name}.

%prep
%setup -q 
#%patch0 -p1

%build
export OPT_JAR_LIST=:
export CLASSPATH=
%{ant} -Dversion=%{version} jar javadoc

%install
%{__rm} -rf %{buildroot}

# jars
%{__mkdir_p} %{buildroot}%{_javadir}
%{__cp} -p build/dist/google-collect-%{version}/google-collect-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
%{__ln_s} %{name}-%{version}.jar %{buildroot}%{_javadir}/google-collect08-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} ${jar/-%{version}/}; done)

# poms
%add_to_maven_depmap com.google.code.google-collections %{name} %{version} JPP %{name}

%{__mkdir_p} %{buildroot}%{_datadir}/maven2/poms
%{__cp} -p %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}.pom

# javadoc
%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__cp} -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/google-collect08-%{version}
%{__ln_s} google-collect-%{version} %{buildroot}%{_javadocdir}/google-collect08

%clean
%{__rm} -rf %{buildroot}

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%doc COPYING
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%{_javadir}/google-collect08-%{version}.jar
%{_javadir}/google-collect08.jar
%{_datadir}/maven2/poms/JPP.%{name}.pom
%{_mavendepmapfragdir}/%{name}

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

%changelog
* Wed Nov 10 2010 Ralph Apel <r.apel at r-apel.de> 0:0.8-1
- downgrade to 0.8 (20080820) as google-collections08

* Mon Sep 14 2009 David Walluck <dwalluck at redhat.com> 0:1.0-0.rc2.1
- 1.0-rc2 (20090604)
- remove GCJ support

* Mon Apr 20 2009 David Walluck <dwalluck at redhat.com> 0:1.0-0.rc1.1
- 1.0-rc1 (20090406)
- add javadoc symlinks for google-collect

* Thu Aug 07 2008 David Walluck <dwalluck at redhat.com> 0:0.7-1
- release




More information about the JPackage-commits mailing list