# TODO: # - upgrade to 0.99 https://github.com/FauxFaux/fastjar # - Obsoletes: icedtea[67]-jar? Summary: Jar file creation utility Summary(pl.UTF-8): Narzędzie do tworzenia plików jar Name: fastjar Version: 0.94 Release: 1 License: GPL v2+ Group: Development/Languages/Java Source0: http://downloads.sourceforge.net/fastjar/%{name}-%{version}.tar.gz # Source0-md5: 14d4bdfac236e347d806c6743dba48c6 URL: http://fastjar.sourceforge.net/ BuildRequires: autoconf BuildRequires: automake BuildRequires: zlib-devel Provides: jar Provides: java-shared Obsoletes: java-shared 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.UTF-8 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 %build %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT ln -sf fastjar $RPM_BUILD_ROOT%{_bindir}/jar %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc AUTHORS CHANGES ChangeLog NEWS README CHANGES %attr(755,root,root) %{_bindir}/fastjar %attr(755,root,root) %{_bindir}/grepjar %attr(755,root,root) %{_bindir}/jar