Summary: A program to extract Microsoft Cabinet files
Summary(pl.UTF-8): Program do rozpakowywania plików MS Cabinet
Name: cabextract
-Version: 1.2
-Release: 2
-License: GPL
+Version: 1.11
+Release: 1
+License: GPL v2+
Group: Applications/Archiving
-Source0: http://www.cabextract.org.uk/%{name}-%{version}.tar.gz
-# Source0-md5: dc421a690648b503265c82ade84e143e
-Patch0: %{name}-libmspack.patch
-URL: http://www.cabextract.org.uk/
+Source0: https://www.cabextract.org.uk/%{name}-%{version}.tar.gz
+# Source0-md5: 3f678e8cb815f26d73e9413913b20505
+URL: https://www.cabextract.org.uk/
BuildRequires: autoconf >= 2.57
BuildRequires: automake
-BuildRequires: libmspack-devel >= 0.0.20060920alpha
-Requires: libmspack >= 0.0.20060920alpha
+BuildRequires: libmspack-devel >= 0.8alpha-5
+Requires: libmspack >= 0.8alpha
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
-%patch0 -p1
-rm -rf mspack
%build
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
-%configure
+%configure \
+ CPPFLAGS="%{rpmcppflags} -I/usr/include/libmspack" \
+ --with-external-libmspack
%{__make}
+%{__make} check
+
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README TODO
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
-%lang(ja) %{_mandir}/ja/man1/*
+%attr(755,root,root) %{_bindir}/cabextract
+%{_mandir}/man1/cabextract.1*
+%lang(ja) %{_mandir}/ja/man1/cabextract.1*