SPECS: grendel.spec (NEW) - new, needs .jar and deps

glen glen at pld-linux.org
Thu Mar 16 17:09:24 CET 2006


Author: glen                         Date: Thu Mar 16 16:09:24 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new, needs .jar and deps

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

---- Diffs:

================================================================
Index: SPECS/grendel.spec
diff -u /dev/null SPECS/grendel.spec:1.1
--- /dev/null	Thu Mar 16 17:09:24 2006
+++ SPECS/grendel.spec	Thu Mar 16 17:09:18 2006
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+%define		_snap 20060316
+Summary:	A Java mail/news client
+Name:		grendel
+Version:	cvs
+Release:	0.%{_snap}.1
+License:	LGPL
+Group:		Libraries
+Source0:	%{name}-%{_snap}.tar.bz2
+# Source0-md5:	77d59a5174837c2b4339529b174e8793
+Source1:	http://wired.st-and.ac.uk/~hash9/grendel/%{name}-jar-pack-20051224.zip
+# NoSource1-md5:	c7269520a662a9b3c9eac426fe4679da
+# not sure about licenses, so NoSource for now
+NoSource:	1
+URL:		http://wiki.mozilla.org/Grendel
+BuildRequires:	jakarta-ant >= 1.6
+BuildRequires:	jdk >= 1.5.0
+BuildRequires:	unzip
+Requires:	java >= 1.5.0
+# JavaBeans Activation Framework (JAF) (http://java.sun.com/beans/glasgow/jaf.html)
+# JavaMail (http://java.sun.com/products/javamail/)
+# Netscape Directory SDK for Java (http://www.mozilla.org/directory/)
+# ORO Matcher (http://www.savarese.org/oro/)
+# MozCreator XUL Parser
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Grendel is the mail-news portion of the Xena project written in Java.
+Its goal is to be a true cross-platform application with a feature set
+that satisfies the poweruser.
+
+%prep
+%setup -qc
+rm -f mozilla/grendel/extlib/rhino.jar
+%{__unzip} -qd mozilla/grendel/extlib %{SOURCE1}
+
+%build
+cd mozilla/grendel
+ant build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_javadir}}
+cd mozilla/grendel
+
+# should make jar from dist/ with manifest but 'ant jar' doesn't exist.
+ant makeZip 
+
+install %{name}.zip $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/%{name}
+#!/bin/sh
+exec /usr/bin/java -jar %{name}.jar
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}
+%{_javadir}/*.jar
+
+%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  2006/03/16 16:09:18  glen
+- new, needs .jar and deps
+
================================================================


More information about the pld-cvs-commit mailing list