SPECS: gnu.trove.spec (NEW) - new; based on jpackage

glen glen at pld-linux.org
Sun Dec 2 16:22:37 CET 2007


Author: glen                         Date: Sun Dec  2 15:22:37 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new; based on jpackage

---- Files affected:
SPECS:
   gnu.trove.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/gnu.trove.spec
diff -u /dev/null SPECS/gnu.trove.spec:1.1
--- /dev/null	Sun Dec  2 16:22:37 2007
+++ SPECS/gnu.trove.spec	Sun Dec  2 16:22:32 2007
@@ -0,0 +1,89 @@
+# $Revision$, $Date$
+%include	/usr/lib/rpm/macros.java
+Summary:	High performance collections for Java
+Name:		gnu.trove
+Version:	1.0.2
+Release:	0.1
+License:	LGPL
+Group:		Development/Languages/Java
+URL:		http://trove4j.sourceforge.net/
+Source0:	http://dl.sourceforge.net/trove4j/trove-%{version}.tar.gz
+# Source0-md5:	a246a09db112b7986b02c2a9f771bae0
+Source1:	%{name}-build.xml
+BuildRequires:	ant >= 0:1.6
+BuildRequires:	ant-junit >= 0:1.6
+BuildRequires:	jpackage-utils >= 0:1.5.32
+BuildRequires:	junit
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.300
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The GNU Trove library has two objectives:
+
+Provide "free" (as in "free speech" and "free beer"), fast,
+lightweight implementations of the java.util Collections API. These
+implementations are designed to be pluggable replacements for their
+JDK equivalents.
+
+Whenever possible, provide the same collections support for primitive
+types. This gap in the JDK is often addressed by using the "wrapper"
+classes (java.lang.Integer, java.lang.Float, etc.) with Object-based
+collections. For most applications, however, collections which store
+primitives directly will require less space and yield significant
+performance gains.
+
+%package javadoc
+Summary:	Javadoc for %{name}
+Group:		Documentation
+Requires:	jpackage-utils
+
+%description javadoc
+Documentation for %{name}.
+
+%prep
+%setup -q -n trove-%{version}
+cp %{SOURCE1} build.xml
+
+%build
+export OPT_JAR_LIST="ant/ant-junit junit"
+export CLASSPATH=
+%ant -Dbuild.sysclasspath=only dist
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# jars
+install -d $RPM_BUILD_ROOT%{_javadir}
+cp -a target/trove-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post javadoc
+ln -nfs %{name}-%{version} %{_javadocdir}/%{name}
+
+%files
+%defattr(644,root,root,755)
+%{_javadir}/*.jar
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
+%ghost %{_javadocdir}/%{name}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007-12-02 15:22:32  glen
+- new; based on jpackage
+
================================================================


More information about the pld-cvs-commit mailing list