[Jpackage-commits] rpms/free/jargs jargs-1.0.pom, NONE, 1.1 jargs.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Fri Jul 10 18:16:43 CEST 2009


Update of /home/projects/jpackage/cvs/rpms/free/jargs
In directory ryu.zarb.org:/tmp/9Bc7rshpz0/rpms/free/jargs

Added Files:
	jargs-1.0.pom jargs.spec 
Log Message:
1.0-2.jpp6

--- NEW FILE: jargs.spec ---
# Copyright (c) 2000-2009, 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:           jargs
Version:        1.0
Release:        2%{?dist}
Epoch:          0
Summary:        Java command line option parsing suite
Group:          Development/Libraries/Java
License:        ASL 2.0
URL:            http://jargs.sourceforge.net/
Source0:        http://dl.sourceforge.net/sourceforge/jargs/jargs-1.0.tar.bz2
Source1:        http://repository.jboss.com/maven2/net/sf/jargs/1.0/jargs-1.0.pom
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch:      noarch
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  ant

Requires:  java >= 0:1.5.0

Requires(post):   jpackage-utils >= 0:1.7.5
Requires(postun): jpackage-utils >= 0:1.7.5

%description
This tiny project provides a convenient, compact, pre-packaged
and comprehensively documented suite of command line option 
parsers for the use of Java programmers. Initially, parsing 
compatible with GNU-style 'getopt' is provided.
Why use JArgs rather than other similar libraries? Because 
it's easy to use, thoroughly tested, well documented and 
liberally licenced (BSD licence so no GNU messiness).
The package is small and without frills, but is functional,
and contains code that has been in production use for quite 
some time.
Originally started by Steve Purcell, this project is now 
maintained by Ewan Mellor. 

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

%description    javadoc
%{summary}.

%prep
%setup -q 
find . -name "*.jar" | xargs -t rm

%build
export OPT_JAR_LIST=:
export CLASSPATH=
%{ant}

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -p -m 644 lib/jargs.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar | sed "s|-%{version}||g"`; done)

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

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

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap

%postun
%update_maven_depmap

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

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

%changelog
* Fri Jul 10 2009 David Walluck <dwalluck at redhat.com> 0:1.0-2
- spec cleanup

* Fri Jun 12 2009 Ralph Apel <r.apel at r-apel.de> - 0:1.0-1.jpp5
- First release

--- NEW FILE: jargs-1.0.pom ---
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.sf</groupId>
  <artifactId>jargs</artifactId>
  <version>1.0</version>
  <licenses>
    <license>
      <name>jargs</name>
      <url>http://jargs.cvs.sourceforge.net/jargs/jargs/LICENCE</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <distributionManagement>
    <status>deployed</status>
  </distributionManagement>
</project>




More information about the JPackage-commits mailing list