%define name gnu.getopt %define version 1.0.9 %define release 4jpp %define section free Name: %{name} Version: %{version} Release: %{release} Epoch: 0 Summary: Java getopt implementation License: LGPL Url: http://www.urbanophile.com/arenn/hacking/download.html Source0: ftp://ftp.urbanophile.com/pub/arenn/software/sources/java-getopt-1.0.9.tar.gz BuildRequires: ant Group: Development/Libraries/Java Buildarch: noarch BuildRequires: jpackage-utils >= 0:1.5 Buildroot: %{_tmppath}/%{name}-%{version}-buildroot Distribution: JPackage Vendor: JPackage Project %description The GNU Java getopt classes support short and long argument parsing in a manner 100% compatible with the version of GNU getopt in glibc 2.0.6 with a mostly compatible programmer's interface as well. Note that this is a port, not a new implementation. I am currently unaware of any bugs in this software, but there certainly could be some lying about. I would appreciate bug reports as well as hearing about positive experiences. %package javadoc Summary: Javadoc for %{name} Group: Development/Documentation %description javadoc Javadoc for %{name}. %prep %setup -q -c # Aaron, where did you put my build script :-) ? mv gnu/getopt/buildx.xml build.xml %build ant jar ant javadoc %install # jars install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 build/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done) # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr build/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} %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 %files %defattr(0644,root,root,0755) %doc gnu/getopt/COPYING.LIB gnu/getopt/README %{_javadir}/* %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-%{version} %changelog * Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:1.0.9-4jpp - fix groups * Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:1.0.9-3jpp - update for JPackage 1.5 * Wed Mar 26 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 1.0.9-2jpp - For jpackage-utils 1.5 * Sat Feb 16 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0.9-1jpp - 1.0.9 - build script merged upstream * Sat Jan 19 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0.8-2jpp - versioned dir for javadoc - no dependencies for javadoc package - additional sources in individual archives - section macro * Sat Dec 8 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.0.8-1jpp - first JPackage release