Summary: A program to extract Microsoft Cabinet files
Summary(pl): Program do rozpakowywania plików MS Cabinet
Name: cabextract
-Version: 1.1
-Release: 3
+Version: 1.2
+Release: 1
License: GPL
Group: Applications/Archiving
Source0: http://www.kyz.uklinux.net/downloads/%{name}-%{version}.tar.gz
-# Source0-md5: f4b729c0be7d288660f4fc167de199a1
-URL: http://www.kyz.uklinux.net/cabextract.php3
+# Source0-md5: dc421a690648b503265c82ade84e143e
+Patch0: %{name}-libmspack.patch
+URL: http://www.kyz.uklinux.net/cabextract.php
BuildRequires: autoconf >= 2.57
BuildRequires: automake
-BuildRequires: libtool
+BuildRequires: libmspack-devel >= 0.0.20060920alpha
+Requires: libmspack >= 0.0.20060920alpha
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
+%patch0 -p1
+rm -rf mspack
%build
-cp -f /usr/share/automake/config.sub .
-%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install -D doc/ja/cabextract.1 $RPM_BUILD_ROOT%{_mandir}/ja/man1
+install -D doc/ja/cabextract.1 $RPM_BUILD_ROOT%{_mandir}/ja/man1/cabextract.1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS NEWS README TODO
+%doc AUTHORS ChangeLog NEWS README TODO
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*
-%lang(ja) %{_mandir}/ja/man1*
+%lang(ja) %{_mandir}/ja/man1/*