[Jpackage-commits] dist/irclib/devel .cvsignore, 1.1, 1.2 irclib-1.10.pom, NONE, 1.1 irclib.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Sun Oct 2 11:49:51 CEST 2011


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

Modified Files:
	.cvsignore sources 
Added Files:
	irclib-1.10.pom irclib.spec 
Log Message:
Import irclib into devel

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/irclib/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	2 Oct 2011 09:46:36 -0000	1.1
--- .cvsignore	2 Oct 2011 09:49:48 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ irclib-1.10.tar.gz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/irclib/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	2 Oct 2011 09:46:37 -0000	1.1
--- sources	2 Oct 2011 09:49:48 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 7bb209d78f5a4db74012da3a9c17c70f  irclib-1.10.tar.gz

--- NEW FILE: irclib-1.10.pom ---
<?xml version="1.0" encoding="UTF-8"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.schwering</groupId>
  <artifactId>irclib</artifactId>
  <version>1.10</version>
  <name>IRC client library</name>
  <url>http://moepii.sourceforge.net/</url>

  <description>A Java implementation of the IRC protocol</description>
  <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>
    <license>
      <name>Eclipse Public License, Version 1.0</name>
      <url>http://www.eclipse.org/legal/epl-v10.html</url>
      <distribution>repo</distribution>
    </license>
    <license>
      <name>GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1</name>
      <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <url>http://moepii.svn.sourceforge.net/viewvc/moepii/trunk/</url>
  </scm>
</project>

--- NEW FILE: irclib.spec ---
# Copyright (c) 2000-2011, 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:           irclib
Version:        1.10
Release:        1%{?dist}
Epoch:          0
Summary:        IRC client library
License:        Apache Software License 2.0, LGPL, EPL
Url:            http://moepii.sourceforge.net
Source0:        http://prdownloads.sourceforge.net/moepii/irclib-1.10.tar.gz
Source1:        http://repo1.maven.org/maven2/org/schwering/irclib/1.10/irclib-1.10.pom
Group:          Development/Java
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.6.0
Buildroot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch:      noarch
Requires(post):   jpackage-utils >= 0:1.7.5
Requires(postun): jpackage-utils >= 0:1.7.5
Requires:  java >= 0:1.6.0

%description
IRClib is a free Java implementation of the IRC protocol.

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

%description javadoc
Javadoc for %{name}.

%prep
%setup -q

%build
export JAVA_HOME=%{java_home}
export PATH=%{java_home}/bin:$PATH
export CLASSPATH=
cd src
%javac -source 5 `find . -name \*.java`
%javadoc -source 5 -d ../apidocs `find . -name \*.java`

%install
rm -rf $RPM_BUILD_ROOT

# jar
export JAVA_HOME=%{java_home}
%__mkdir_p %{buildroot}%{_datadir}/maven2/poms
%__cp -a %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap org.schwering %{name} %{version} JPP %{name}

cd src
%__mkdir_p %{buildroot}%{_javadir}
%jar cvmf /dev/null %{name}.jar -C . org/
%__cp -a %{name}.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \
%__ln_s ${jar} ${jar/-%{version}/}; done)

# javadoc
%__mkdir_p %{buildroot}%{_javadocdir}/%{name}-%{version}
%__cp -a ../apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
(cd %{buildroot}%{_javadocdir} && %__ln_s %{name}-%{version} %{name})


%clean
%__rm -rf %{buildroot}

%post
%update_maven_depmap

%postun
%update_maven_depmap

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

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/*

%changelog
* Tue Jul 19 2011 Ralph Apel <r.apel at r-apel.de> 0:1.10-1
- First release





More information about the JPackage-commits mailing list