[Jpackage-commits] dist/spymemcached/devel .cvsignore, 1.1, 1.2 memcached-2.5.pom, NONE, 1.1 sources, 1.1, 1.2 spymemcached-manifest.mf, NONE, 1.1 spymemcached.spec, NONE, 1.1

David Walluck david at ryu.zarb.org
Sat Dec 11 05:44:09 CET 2010


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

Modified Files:
	.cvsignore sources 
Added Files:
	memcached-2.5.pom spymemcached-manifest.mf spymemcached.spec 
Log Message:
- initial import

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/spymemcached/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	11 Dec 2010 04:40:31 -0000	1.1
--- .cvsignore	11 Dec 2010 04:44:07 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ spymemcached-2.5.tar.bz2

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/spymemcached/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	11 Dec 2010 04:40:31 -0000	1.1
--- sources	11 Dec 2010 04:44:07 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ fab252c5bad791b1be39dfa8613361aa  spymemcached-2.5.tar.bz2

--- NEW FILE: spymemcached.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 with()          %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without()       %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
%define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}

%define section free

Name:           spymemcached
Version:        2.5
Release:        0.1%{?dist}
Epoch:          0
Summary:        Java client for memcached
License:        BSD
URL:            http://code.google.com/p/spymemcached
Group:          Development/Java
# git clone https://github.com/dustin/java-memcached-client.git
# cd java-memcached-client.git && git checkout 2.5
# cd .. && mv java-memcached-client.git spymemcached-2.5 && tar cjf spymemcached-2.5.tar.bz2 spymemcached-2.5
Source0:        spymemcached-2.5.tar.bz2
Source1:        spymemcached-manifest.mf
Source2:        http://bleu.west.spy.net/~dustin/m2repo/spy/memcached/2.5/memcached-2.5.pom
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
Requires:       jpackage-utils
# FIXME: (dwalluck): really BuildRequires: apache-buildr
BuildRequires:  java-devel
BuildRequires:  jpackage-utils
%if 0
BuildRequires:  junit4
%endif
BuildRequires:  log4j
%if 0
BuildRequires:  jmock
%endif
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Java client for memcached.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation
Requires:       jpackage-utils

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
%{__mkdir_p} classes
%{__mkdir_p} javadoc

%build
export OPT_JAR_LIST=:
%if 0
export CLASSPATH=$(%{_bindir}/build-classpath jmock junit4 log4j); javac `find -type f -name "*.java"`
%else
export CLASSPATH=$(%{_bindir}/build-classpath log4j)
%endif
pushd src/main
%{javac} -d ../../classes `%{_bindir}/find -type f -name "*.java"`
%{javadoc} -d ../../javadoc `%{_bindir}/find -type f -name "*.java"`
popd
pushd classes
%{jar} cfm ../memcached-%{version}.jar %{SOURCE1} *
popd

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

# jars
%{__mkdir_p} %{buildroot}%{_javadir}
%{__cp} -p memcached-%{version}.jar %{buildroot}%{_javadir}/memcached-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} ${jar/-%{version}/}; done)

# poms
%{__mkdir_p} %{buildroot}%{_datadir}/maven2/poms
%{__cp} -p %{SOURCE2} %{buildroot}%{_datadir}/maven2/poms/JPP-memcached.pom
%add_to_maven_depmap spy memcached %{version} JPP memcached

# javadoc
%{__mkdir_p} %{buildroot}%{_javadocdir}/memcached-%{version}
%{__cp} -pr javadoc/* %{buildroot}%{_javadocdir}/memcached-%{version}
%{__ln_s} memcached-%{version} %{buildroot}%{_javadocdir}/memcached

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

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%doc LICENSE.txt
%{_javadir}*/memcached-%{version}.jar
%{_javadir}*/memcached.jar
%{_datadir}/maven2/poms/JPP-memcached.pom
%{_mavendepmapfragdir}/%{name}

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

%changelog
* Fri Dec 10 2010 David Walluck <dwalluck at redhat.com> 0:2.5-0.1
- release

--- NEW FILE: memcached-2.5.pom ---
<?xml version="1.0" encoding="UTF-8"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>spy</groupId>
  <artifactId>memcached</artifactId>
  <version>2.5</version>
</project>

--- NEW FILE: spymemcached-manifest.mf ---
Implementation-Title: Java memcached client
Implementation-Version: 
Implementation-Vendor: 2006-2009  Dustin Sallings
Main-Class: net.spy.memcached.BuildInfo
Manifest-Version: 1.0





More information about the JPackage-commits mailing list