File unrar.spec of Package unrar

#
# spec file for package unrar (Version 3.80.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           unrar
BuildRequires:  gcc-c++
Version:        3.80.2
Release:        1
AutoReqProv:    on
Group:          Productivity/Archiving/Compression
License:        Any Noncommercial
Url:            http://www.rarlab.com
Summary:        A program to extract, test, and view RAR archives
Source:         %{name}src-3.8.2.tar.bz2
Patch1:         %{name}src-3.8-types.patch
Patch2:         %{name}src-3.8-gcc.patch
Patch3:         %{name}src-3.8-variablesize.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The unRAR utility is a freeware program distributed with source code
and developed for extracting, testing, and viewing the contents of
archives created with the RAR archiver.



Authors:
--------
    Eugene Roshal <roshal@creabel.com>

%prep
%setup -q -n %{name}
%patch1
%patch2
%patch3

%build
make -f makefile.unix CXXFLAGS="$RPM_OPT_FLAGS -Wall -fmessage-length=0 -fno-strict-aliasing -fstack-protector" STRIP=true

%install
install -d -m755 $RPM_BUILD_ROOT%{_bindir}
install -m755 unrar $RPM_BUILD_ROOT%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc license.txt readme.txt
%{_bindir}/*

%changelog
* Fri Jul 18 2008 lmichnovic@suse.cz
- update to 3.8.2 beta
  * no changelog available
- obsoletes *strcmp.patch
* Mon Nov 26 2007 lmichnovic@suse.cz
- update to 3.7.8 beta
  * RAR can close a corrupt encrypted archive
  * fix for CVE-2007-3726, obsoletes patch
* Tue Jul 17 2007 lmichnovic@suse.cz
- fix for crash on corrupted file (CVE-2007-3726.patch) [#291702]
* Fri Jun 08 2007 lmichnovic@suse.cz
- update to 3.7.6 final
  * minor code rework
  * fixed CR-LF in file with License
* Mon Mar 12 2007 lmichnovic@suse.cz
- update to version 3.7.4 beta
  * minor code rework
* Fri Feb 23 2007 lmichnovic@suse.cz
- corrected typo in code (variablesize.patch)
* Tue Feb 13 2007 lmichnovic@suse.cz
- update to version 3.7.3 beta
  * rewritten work with memory in VM
* Tue Jan 23 2007 lmichnovic@suse.cz
- update to version 3.7.2 beta
  * Stack overflow vulnerability has been corrected in password
  processing module of console RAR and UnRAR.
  * New switch -sc[objects] allowing to select character sets for
  archive comments and list files. It replaces -fcu switch, which
  was removed from list of supported switches. Now you need to
  specify -scuc instead of -fcu to use Unicode comments.
  Unlike -fcu, -sc also supports OEM and ANSI charset.
  * workaround for one occasional bug with unicode
* Sun Dec 17 2006 schwab@suse.de
- Fix last change.
* Fri Dec 15 2006 lmichnovic@suse.cz
- corrected and readded reverted *strcmp.patch
* Fri Dec 15 2006 mmarek@suse.cz
- revert last change (it worked previously and the strcmp patch
  breaks --help output)
* Wed Dec 13 2006 lmichnovic@suse.cz
- fixed string comparing (*strcmp.patch)
* Fri Jul 14 2006 lmichnovic@suse.cz
- update to version 3.60
  - non beta version
- update to version 3.60 beta 7
  - in unrar changed only version, version changed due to fix in rar
* Mon Jul 10 2006 lmichnovic@suse.cz
- upgrade to version 3.60 beta 6
  - no changelog available
* Wed Jun 21 2006 lmichnovic@suse.cz
- upgrade to version 3.60 beta 5
  - no changelog available
* Tue Jun 13 2006 lmichnovic@suse.cz
- upgrade to version 3.6.4
  - no changelog available
- change the numbering to 3.6.0.4 because it is 3.60 beta 4
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 20 2006 schwab@suse.de
- Don't strip binaries.
* Thu Jan 12 2006 lmichnovic@suse.cz
- added -fstack-protector into CXXFLAGS
* Mon Nov 21 2005 lmichnovic@suse.cz
- added no-strict-aliasing option for compiling
* Tue Oct 11 2005 lmichnovic@suse.cz
- update to version 3.5.4
* Fri Sep 16 2005 lmichnovic@suse.cz
- update to version 3.5.3
* Tue Aug 02 2005 mjancar@suse.cz
- update ro 3.5.2
* Tue Apr 19 2005 mjancar@suse.cz
- fix for gcc 4.0
* Thu Feb 17 2005 mjancar@suse.cz
- update to 3.4.3
* Fri Aug 06 2004 mjancar@suse.cz
- update to 3.4.2
* Fri Feb 27 2004 mjancar@suse.cz
- update to 3.3.6
* Tue Oct 21 2003 mjancar@suse.cz
- update to 3.2.3
* Thu Jul 24 2003 mjancar@suse.cz
- update to 3.2.2
* Wed May 14 2003 mjancar@suse.cz
- update to version 3.2.1
* Tue May 06 2003 ro@suse.de
- fix build with latest gcc
* Mon Feb 17 2003 vbobek@suse.cz
- updated to version 3.1.3
- removed obsolete patch for CFLAGS
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Tue May 21 2002 nadvornik@suse.cz
- updated to 3.00 [bug #16183]
* Thu Apr 18 2002 stepan@suse.de
- update to 2.71, drop 64bit patch
* Thu Feb 21 2002 stepan@suse.de
- Fix archive corruption on 64bit systems. Linux GNU systems
  always have 32bit int, so using int instead of long for
  UDWORD.
* Mon Apr 17 2000 nadvornik@suse.cz
- added BuildRoot
* Thu Feb 17 2000 grimmer@suse.de
- use full URL to source archive
- use version macro
- spec file cleanups
- added Group tag
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Mon Jul 05 1999 grimmer@suse.de
- initial package created (Version 2.50)
openSUSE Build Service is sponsored by