File fastjar.spec of Package fastjar
#
# spec file for package fastjar
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: fastjar
BuildRequires: zlib-devel
Provides: libgcj:/usr/bin/fastjar
PreReq: %install_info_prereq
Version: 0.98
Release: 0
Summary: The fastjar Java package archiver
License: GPL-2.0+
Group: Development/Languages/Java
Url: http://savannah.nongnu.org/projects/fastjar/
Source: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
Patch0: fastjar-0.98-fix.patch
Patch1: fastjar-0.98-directory-traversal.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Fastjar is an implementation of Sun's jar utility that comes with the
JDK, written entirely in C, and runs in a fraction of the time while
being 100% feature compatible.
%prep
%setup -q
%patch0
%patch1 -p1 -b .directory-traversal
%build
%configure
make %{?_smp_mflags}
%install
%makeinstall
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%defattr(-,root,root)
%doc AUTHORS README NEWS ChangeLog
%{_mandir}/man1/fastjar.1.gz
%{_mandir}/man1/grepjar.1.gz
%{_infodir}/fastjar.info.gz
%{_bindir}/fastjar
%{_bindir}/grepjar
%changelog