File fcrackzip.spec of Package fcrackzip

Summary: Free/Fast Zip Password Cracker
Name: fcrackzip
Version: 1.0
Release: 1
License: GPL-2.0-only
URL: http://oldhome.schmorp.de/marc/fcrackzip.html
Group: Productivity/Archiving/Compression
Source: http://oldhome.schmorp.de/marc/data/%{name}-%{version}.tar.gz
# PATCH-FEATURE-UPSTREAM conrad@quisquis.de
Patch: fcrackzip-forkexec-ac.patch
BuildRequires: unzip
%if 0%{?suse_version} >= 1100 && 0%{?suse_version} < 1150
BuildRequires: licenses
Requires: licenses
%endif
%if 0%{?suse_version} > 1210
BuildRequires: automake
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build

%description
fcrackzip searches each zipfile given for encrypted files and tries to guess
the password. All files must be encrypted with the same password, the more
files you provide, the better.

%prep
%setup -q
%patch -p1

%build
aclocal
automake --add-missing
autoconf
autoheader
%configure
%__make %{?_smp_mflags}
lic="`md5sum COPYING | cut -d' ' -f 1`"
if [ -r "/usr/share/doc/licenses/md5/$lic" ]; then
    ln -sf /usr/share/doc/licenses/md5/"$lic" COPYING
fi

%install
%if 0%{?suse_version} < 1130
%__make DESTDIR="%{buildroot}" install
%endif
%if 0%{?suse_version} >= 1130
%make_install
%endif
rm "%{buildroot}%{_bindir}/zipinfo"

%clean
[ "%{buildroot}" = "/" ] || rm -rf "%{buildroot}"

%files
%defattr(-,root,root,-)
%doc AUTHORS NEWS README fcrackzip.html
%license COPYING
%{_bindir}/fcrackzip
%{_mandir}/man1/fcrackzip.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by