On Tue, Jul 26, 2005 at 07:51:51AM -0400, David Walluck wrote: > Both blowfish-j and itext are already in JPackage. However, they are > outdated, > 2.12 -> 2.14 and 1.02b -> 1.3, respectively. Attached is my spec for blowfish-j 2.14. -- Robin
%define name blowfish-j %define version 2.14 %define release 1rdg %define section free Name: %{name} Version: %{version} Release: %{release} Epoch: 0 Summary: A Blowfish implementation in Java License: Apache License 2.0 Url: http://blowfishj.sourceforge.net/ Source: http://prdownloads.sourceforge.net/blowfishj/blowfishj-%{version}-src.tar.gz BuildRequires: ant BuildRequires: jpackage-utils >= 0:1.5 Group: Development/Java Buildarch: noarch Buildroot: %{_tmppath}/%{name}-%{version}-buildroot Vendor: JPackage Project %description The Blowfish implementation in Java, very fast ECB and CBC encryption. Comes with the BlowfishEasy class for simple string encryption, plus a solution for streaming. %package demo Summary: Examples for %{name} Group: Development/Java %description demo Examples for %{name}. %package javadoc Summary: Javadoc for %{name} Group: Development/Documentation %description javadoc Javadoc for %{name} %prep %setup -q -n blowfishj-%{version} %build [ ! -e "$JAVA_HOME" ] && export JAVA_HOME="%{_jvmdir}/java" unset CLASSPATH ant clean dist %install # jar install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 dist/blowfishj-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar cd target/test-classes jar cf ../../dist/%{name}-test.jar * cd - install -m 644 dist/%{name}-test.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-test-%{version}.jar (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do \ ln -sf ${jar} ${jar/-%{version}/}; done) # javadoc install -p -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} (cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name}) %clean rm -rf $RPM_BUILD_ROOT %post javadoc rm -f %{_javadocdir}/%{name} ln -s %{name}-%{version} %{_javadocdir}/%{name} %postun javadoc if [ $1 -eq 0 ]; then rm -f %{_javadocdir}/%{name} fi %files %defattr(0644,root,root,755) %doc LICENSE.txt %{_javadir}/%{name}.jar %{_javadir}/%{name}-%{version}.jar %files demo %defattr(0644,root,root,0755) %doc src/test/java/test/net/sourceforge/blowfishj/*.java %{_javadir}/%{name}-test.jar %{_javadir}/%{name}-test-%{version}.jar %files javadoc %defattr(0644,root,root,0755) %dir %{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name}-%{version}/* %ghost %dir %{_javadocdir}/%{name} %changelog * Sun Mar 20 2005 Robin Green <greenrd@xxxxxxxxxxx> 0:2.14-1rdg - 2.14 - Adjust for upstream package name change and license change * Sat Oct 16 2004 David Walluck <david@xxxxxxxxxxxx> 0:2.12-1jpp - 2.12 - rebuild for JPackage 1.6 * Thu Mar 27 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 0:2.01-1jpp - Initial packaging
Attachment:
pgpgDgRFEH8YR.pgp
Description: PGP signature