--- /dev/null
+--- unrar-3.00/rartypes.hpp.orig Tue May 14 14:41:23 2002
++++ unrar-3.00/rartypes.hpp Sun Oct 13 16:33:41 2002
+@@ -8,7 +8,7 @@
+ typedef unsigned int uint32; //32 bits exactly
+ #define PRESENT_INT32
+
+-#ifdef _WIN_32
++#if defined(_WIN_32) || (defined(__GNUC__) && __GNUC__ >= 3)
+ typedef wchar_t wchar;
+ #elif defined(__GNUC__)
+ typedef __wchar_t wchar;
+@@ -18,4 +18,4 @@
+
+ #define SHORT16(x) (sizeof(ushort)==2 ? (ushort)(x):((x)&0xffff))
+
+-#endif
+\ No newline at end of file
++#endif
Summary(uk): òÏÚÐÁËÏ×Õ×ÁÞ ÆÁÊÌ¦× .zip
Name: unrar
Version: 3.00
-Release: 1
+Release: 2
License: Freeware
Group: Applications/Archiving
Source0: http://www.rarlab.com/rar/%{name}src.tar.gz
Source1: %{name}.1
Source2: %{name}.1.pl
Patch0: %{name}-makefile.patch
-BuildRequires: gcc-c++
+Patch1: %{name}-gcc3.patch
+BuildRequires: libstdc++-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q -c
%patch0 -p1
+%patch1 -p1
%build
%{__make} -f makefile.gcc CC=%{__cc} CXX=%{__cxx} OPT="%{rpmcflags}"
install unrar $RPM_BUILD_ROOT%{_bindir}
install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1
install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
-gzip -9nf *.txt
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc *.txt.gz
+%doc *.txt
%{_mandir}/man1/*
%lang(pl) %{_mandir}/pl/man1/*
%attr(755,root,root) %{_bindir}/*