[jtnef] Initial import
Orion Poplawski
orion at fedoraproject.org
Thu Dec 9 15:56:55 UTC 2010
commit e48a1eaf816d9f103e608b056ffa57109b93b1c6
Author: Orion Poplawski <orion at cora.nwra.com>
Date: Thu Dec 9 08:56:48 2010 -0700
Initial import
.gitignore | 1 +
jtnef.spec | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e171683 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jtnef-1_6_0.zip
diff --git a/jtnef.spec b/jtnef.spec
new file mode 100644
index 0000000..9e54efa
--- /dev/null
+++ b/jtnef.spec
@@ -0,0 +1,98 @@
+Name: jtnef
+Version: 1.6.0
+Release: 3%{?dist}
+Summary: Java TNEF package
+
+Group: Development/Libraries
+License: GPLv2+
+URL: http://www.freeutils.net/source/jtnef/
+Source0: http://www.freeutils.net/source/jtnef/jtnef-1_6_0.zip
+BuildArch: noarch
+
+BuildRequires: jpackage-utils
+BuildRequires: java-devel
+BuildRequires: javamail
+BuildRequires: apache-poi
+Requires: jpackage-utils
+Requires: java
+Requires: javamail
+Requires: apache-poi
+
+%description
+The Java TNEF package is an open source code implementation of a TNEF message
+handler, which can be used as a command-line utility or integrated into Java-
+based mail applications to extract the original message content.
+
+Transport-Neutral Encapsulation Format (TNEF) is Microsoft's non-standard
+format for encapsulating mail which has any non-plain-text content or
+properties (such as rich text, embedded OLE objects, voting buttons, and
+sometimes just attachments). Whether or not a given message is encoded using
+TNEF is determined by the Outlook default settings, per-recipient setting,
+Exchange Server settings, and message type and content.
+
+Once a TNEF message is used, the entire message, including all the original
+attachments and properties, is encapsulated in a single attachment of mime
+type "application/ms-tnef" added to the message to be sent over the Internet.
+This attachment is usually named "WINMAIL.DAT", and when sent to any non-MS
+mail client, is useless, and makes access to the original message attachments
+impossible.
+
+
+%package javadoc
+Summary: Javadocs for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+
+%prep
+%setup -q -c
+find -name '*.jar' -delete
+sed -i -e 's/\r//' *.txt
+mkdir classes
+
+
+%build
+export CLASSPATH=$(build-classpath javamail poi)
+javac -d classes `find src -name *.java`
+jar -cf %{name}.jar -C classes .
+
+javadoc -quiet -windowtitle "Java TNEF package %version" -use -d javadoc -sourcepath src net.freeutils.tnef
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{_javadir}
+cp -p %{name}.jar \
+ $RPM_BUILD_ROOT%{_javadir}/
+
+mkdir -p $RPM_BUILD_ROOT%{_javadocdir}
+cp -rp javadoc $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGES.txt LICENSE.txt README.txt
+%{_javadir}/%{name}.jar
+
+%files javadoc
+%defattr(-,root,root,-)
+%doc LICENSE.txt
+%{_javadocdir}/%{name}
+
+
+%changelog
+* Mon Dec 6 2010 Orion Poplawski <orion at cora.nwra.com> - 1.6.0-3
+- Drop versioned jar and javadoc
+- Remove BuildRoot and %%clean
+
+* Fri Sep 3 2010 Orion Poplawski <orion at cora.nwra.com> - 1.6.0-2
+- Change to javamail from classpathx-mail
+
+* Thu Jun 24 2010 Orion Poplawski <orion at cora.nwra.com> - 1.6.0-1
+- Update to 1.6.0
+
+* Mon Oct 5 2009 Orion Poplawski <orion at cora.nwra.com> - 1.5.0-1
+- Initial Fedora Package
diff --git a/sources b/sources
index e69de29..b31ac85 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+790cf94af9d5ab859fddee09f4cd884c jtnef-1_6_0.zip
More information about the scm-commits
mailing list