Name: jbcrypt Version: 0.3 Release: 2%{?dist} Summary: Strong password hashing for Java Group: Development/Libraries License: ISC URL: http://www.mindrot.org/projects/jBCrypt/ Source0: http://www.mindrot.org/files/jBCrypt/jBCrypt-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: java-devel BuildRequires: jpackage-utils Requires: java Requires: jpackage-utils %description A Java implementation of OpenBSD's Blowfish password hashing code. %prep %setup -q -n jBCrypt-%{version} %build javac BCrypt.java jar cvf jbcrypt.jar BCrypt.class %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_javadir} cp jbcrypt.jar $RPM_BUILD_ROOT%{_javadir}/jbcrypt.jar %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE README %{_javadir}/jbcrypt.jar %changelog * Thu Jun 17 2010 Sebastian Dziallas - 0.3-2 - let's package the class file instead of the jar one * Sat May 08 2010 Sebastian Dziallas - 0.3-1 - initial update to try new stable branch