-
Summary: Jar file creation utility
Summary(pl): Narzêdzie do tworzenia plików jar
Name: fastjar
-Version: 0.90
-Release: 1
+Version: 0.93
+Release: 2
License: GPL
-Group: Development/Languages
-Group(pl): Programowanie/Jêzyki
-Source0: %{name}-%{version}.tgz
-Patch0: fastjar-DESTDIR_and_install.patch
-URL: http://fastjar.sourceforge.net
+Group: Development/Languages/Java
+Source0: ftp://download.sourceforge.net/pub/sourceforge/fastjar/%{name}-%{version}.tgz
+URL: http://fastjar.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: zlib-devel
+Provides: jar
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
+FastJar is an attempt at creating a feature-for-feature copy of Sun's
+JDK's 'jar' command. Sun's jar (or Blackdown's for that matter) is
+written entirely in Java which makes it dog slow. Since FastJar is
+written in C, it can create the same .jar file as Sun's tool in a
+fraction of the time. On my system, Sun's jar takes 50 seconds to
+create a 10MB jar file, while FastJar only takes a little over a
+second.
%description -l pl
+FastJar to próba stworzenia dok³adnej pod wzglêdem mo¿liwo¶ci kopii
+polecenia jar z Sun JDK. jar Suna (lub Blackdowna) jest napisany
+ca³kowicie w Javie, co powoduje, ¿e jest bardzo wolny. Poniewa¿
+FastJar jest napisany w C, mo¿e tworzyæ te same pliki .jar co
+narzêdzie Suna kilka razy szybciej. Na systemie autora jar Suna
+potrzebuje 50 sekund na stworzenie 10MB pliku jar, natomiast fastjar
+robi to w nieco ponad sekundê.
%prep
%setup -q
-%patch0 -p1
%build
+rm -f missing
+aclocal
+autoconf
+automake -a -c -f
%configure
%{__make}
ln -sf fastjar $RPM_BUILD_ROOT%{_bindir}/jar
-gzip -9nf README LICENSE INSTALL CHANGES
+gzip -9nf README CHANGES
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc {README,LICENSE,INSTALL,CHANGES}.gz
-%attr(755, root, root) %{_bindir}/jar
-%attr(755, root, root) %{_bindir}/fastjar
+%doc *.gz
+%attr(755,root,root) %{_bindir}/*