File fastjar.spec of Package fastjar

#
# spec file for package fastjar (Version 0.95)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           fastjar
BuildRequires:  zlib-devel
License:        GPL v2 or later
Group:          Development/Languages/Java
AutoReqProv:    on
Provides:       libgcj:/usr/bin/fastjar
PreReq:         %install_info_prereq
Version:        0.95
Release:        1
Summary:        The fastjar Java package archiver
Url:            http://savannah.nongnu.org/projects/fastjar/
Source:         fastjar-%{version}.tar.bz2
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

%build
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%clean
rm -rf $RPM_BUILD_ROOT

%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
* Wed Aug 13 2008 mvyskocil@suse.cz
- Update to 0.95
  - included an fix of a directory traversal to parents of the extraction root.
  - some fixes in build system - Makefile.{am,in}, configure.ac, ...
  - enable fastjar to update an existing .jar with an META-INF/INDEX.LIST aka
    -i support. Still, it doesn't process the MANIFEST.MF to index files
  coming from dependant archives.
  - use '\n' instead of '\0' before adding the index to the jar file to avoid
  having a zero byte at the end of the index file.
  - Fallback on the method used for non-seekable files when reading the
  central-header-end section does not work, i.e. in archives with a zipfile
  comment at the end.
  - Added support for native libraries for libfastjar.
  - jartool.c: Include regex.h, as recommended by  gnulib-tool for the gnulib
  getopt functionality
* Thu Mar 29 2007 rguenther@suse.de
- Add zlib-devel BuildRequires.
* Mon Aug 07 2006 rguenther@suse.de
- Update fix for 191845 to upstream version.
* Wed Jul 12 2006 rguenther@suse.de
- Fix 191845, directory traversal on unpacking.
* Mon May 29 2006 rguenther@suse.de
- New fastjar package from savannah sources.
openSUSE Build Service is sponsored by