SPECS: javamail.spec - javamail is now opensource. - updated License, Sourc...

pawelz pawelz at pld-linux.org
Mon Feb 2 08:03:26 CET 2009


Author: pawelz                       Date: Mon Feb  2 07:03:26 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- javamail is now opensource.
- updated License, Source0.
- it is no longer nosrc package.
- removed docs as there are no docs nor examples in new source.
- rel 1.1 (needs testing).

---- Files affected:
SPECS:
   javamail.spec (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: SPECS/javamail.spec
diff -u SPECS/javamail.spec:1.26 SPECS/javamail.spec:1.27
--- SPECS/javamail.spec:1.26	Mon Jan 26 16:46:36 2009
+++ SPECS/javamail.spec	Mon Feb  2 08:03:21 2009
@@ -1,28 +1,25 @@
 # $Revision$, $Date$
 # TODO:
-# - javamail is opensource now and can be downloaded here
-#   https://maven-repository.dev.java.net/nonav/repository/javax.mail/
-#   so it no longer has to be nosrc package
+# - not tested after changing Source0 !!!
+# - what about docs, examples etc. ?
+# - build from sources. It is possible now.
 %include	/usr/lib/rpm/macros.java
 Summary:	JavaMail - Java mail system
 Summary(pl.UTF-8):	JavaMail - system pocztowy w Javie
 Name:		javamail
 Version:	1.4.1
-Release:	1
-License:	restricted, non-distributable (Sun Binary Code License - see LICENSE.txt)
+Release:	1.1
+License:	CDDL
 Group:		Development/Languages/Java
 # download through forms from http://java.sun.com/products/javamail/downloads/
-Source0:	%{name}-%(echo %{version} | tr . _).zip
-# NoSource0-md5:	21296bdf2e55f2449ab4471b02503a5b
-NoSource:	0
+Source0:	https://maven-repository.dev.java.net/nonav/repository/javax.mail/jars/mail-1.4.1.jar
+# Source0-md5:	584010e5e62f4fa4b8ccfdf35a2c3a8a
 URL:		http://java.sun.com/products/javamail/
 BuildRequires:	jpackage-utils
 BuildRequires:	rpm-javaprov
 BuildRequires:	rpmbuild(macros) >= 1.300
-BuildRequires:	unzip
 Requires:	jaf
 Requires:	jpackage-utils
-Requires:	jre >= 1.1
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -37,52 +34,22 @@
 pocztowy. API daje niezależne od platformy i protokołu środowisko do
 tworzenia aplikacji pocztowych i komunikacyjnych w oparciu o Javę.
 
-%package doc
-Summary:	JavaMail documentation
-Summary(pl.UTF-8):	Dokumentacja do JavaMail
-Group:		Development/Languages/Java
-
-%description doc
-JavaMail documentation.
-
-%description doc -l pl.UTF-8
-Dokumentacja do JavaMail.
-
 %prep
 %setup -q
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_javadir}/%{name}
-cp -a mail.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+install -d $RPM_BUILD_ROOT%{_javadir}
+cp -a $SOURCE0 $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
 ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/mail.jar
 
-# put into our own dir so other implementations can override symlinks
-cp -a lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}
-for a in lib/*.jar; do
-	ln -s %{name}/${a##*/} $RPM_BUILD_ROOT%{_javadir}
-done
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES.txt COMPAT.txt LICENSE.txt NOTES.txt README.txt SSLNOTES.txt distributionREADME.txt
 %{_javadir}/javamail-%{version}.jar
 %{_javadir}/mail.jar
-# lib symlinks
-%{_javadir}/dsn.jar
-%{_javadir}/imap.jar
-%{_javadir}/mailapi.jar
-%{_javadir}/pop3.jar
-%{_javadir}/smtp.jar
-%dir %{_javadir}/%{name}
-%{_javadir}/%{name}/*.jar
-
-%files doc
-%defattr(644,root,root,755)
-%doc demo docs
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -90,6 +57,13 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27  2009/02/02 07:03:21  pawelz
+- javamail is now opensource.
+- updated License, Source0.
+- it is no longer nosrc package.
+- removed docs as there are no docs nor examples in new source.
+- rel 1.1 (needs testing).
+
 Revision 1.26  2009/01/26 15:46:36  pawelz
 - added todo (it is open source now and we can redistribute it).
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/javamail.spec?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list