File crackxls2003.spec of Package crackxls2003

#
# spec file for package crackxls2003
#
# 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:           crackxls2003
Version:        0.4
Release:        0
License:        GPL-3.0+
Summary:        Word and Excel 97/2000/XP/2003 Files Decryptor
Url:            https://github.com/GavinSmith0123/crackxls2003
Group:          Productivity/Security
# Repacked to remove binaries from https://github.com/GavinSmith0123/crackxls2003/archive/v%%{version}.tar.gz
Source0:        %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE crackxls2003-0.3-optimflags.patch lazy.kent@opensuse.org -- use default openSUSE optflags
Patch0:         crackxls2003-0.3-optimflags.patch
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(libcrypto)
BuildRequires:  pkgconfig(libgsf-1)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
crackxls2003 breaks the encryption on Microsoft Excel and Word
97/2000/XP/2002/2003 files which have been encrypted using the RC4
method. These files are encrypted using a 40-bit-long key. It will not
work on files encrypted using versions later than 2007 or versions 95 or
earlier, or if a non-default encryption method was used.

%prep
%setup -q
%patch0 -p1

%build
%configure
make %{?_smp_mflags}

%install
install -Dm 755 %{name} %{buildroot}%{_bindir}/%{name}

%files
%defattr(-,root,root,-)
%doc LICENSE LICENSE.GPL NEWS README
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by