2 # - upgrade to 0.99 https://github.com/FauxFaux/fastjar
3 # - Obsoletes: icedtea[67]-jar?
4 Summary: Jar file creation utility
5 Summary(pl.UTF-8): Narzędzie do tworzenia plików jar
10 Group: Development/Languages/Java
11 Source0: http://downloads.sourceforge.net/fastjar/%{name}-%{version}.tar.gz
12 # Source0-md5: 14d4bdfac236e347d806c6743dba48c6
13 URL: http://fastjar.sourceforge.net/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: zlib-devel
19 Obsoletes: java-shared
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 FastJar is an attempt at creating a feature-for-feature copy of Sun's
24 JDK's 'jar' command. Sun's jar (or Blackdown's for that matter) is
25 written entirely in Java which makes it dog slow. Since FastJar is
26 written in C, it can create the same .jar file as Sun's tool in a
27 fraction of the time. On my system, Sun's jar takes 50 seconds to
28 create a 10MB jar file, while FastJar only takes a little over a
31 %description -l pl.UTF-8
32 FastJar to próba stworzenia dokładnej pod względem możliwości kopii
33 polecenia jar z Sun JDK. jar Suna (lub Blackdowna) jest napisany
34 całkowicie w Javie, co powoduje, że jest bardzo wolny. Ponieważ
35 FastJar jest napisany w C, może tworzyć te same pliki .jar co
36 narzędzie Suna kilka razy szybciej. Na systemie autora jar Suna
37 potrzebuje 50 sekund na stworzenie 10MB pliku jar, natomiast fastjar
38 robi to w nieco ponad sekundę.
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
57 ln -sf fastjar $RPM_BUILD_ROOT%{_bindir}/jar
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc AUTHORS CHANGES ChangeLog NEWS README CHANGES
65 %attr(755,root,root) %{_bindir}/fastjar
66 %attr(755,root,root) %{_bindir}/grepjar
67 %attr(755,root,root) %{_bindir}/jar