Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 90824f085d9b13f87a8f0e12390f2bf6 > files > 6

libmspack-0.5-0.2.alpha.1.mga6.src.rpm

%define major 0
%define libname %mklibname mspack %{major}
%define develname %mklibname mspack -d
%define rel 2

Summary:	Library for CAB and related files compression and decompression
Name:		libmspack
Version:	0.5
%define         subrel 1
Release:	%mkrel 0.%{rel}.alpha
Group:		System/Libraries
License:	LGPLv2
URL:		http://www.cabextract.org.uk/libmspack/
Source0:	http://www.cabextract.org.uk/libmspack/%{name}-%{version}alpha.tar.gz
Patch0:		%{name}-0.4alpha-doc.patch
Patch1:         0001-Correct-rejection-of-empty-strings.patch
Patch2:         libmspack-0.5alpha-CVE-2017-11423.patch
Patch3:         libmspack-0.5alpha-CVE-2017-6419.patch

BuildRequires:	doxygen

%description
The purpose of libmspack is to provide both compression and decompression of 
some loosely related file formats used by Microsoft.

%package -n	%{libname}
Summary:	Library for CAB and related files compression and decompression
Group:		System/Libraries

%description -n	%{libname}
The purpose of libmspack is to provide both compression and decompression of 
some loosely related file formats used by Microsoft.

%package -n	%{develname}
Summary:	The development libraries and header files for libmspack
Group:		Development/C
Requires:	%{libname} >= %{version}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
This package contains libraries, header files and documentation for developing
applications that use %{name}.

%prep

%setup -q -n %{name}-%{version}alpha
%autopatch -p1

chmod a-x mspack/mspack.h

%build
%configure2_5x \
    --disable-static \
    --disable-silent-rules
%make

%install
%makeinstall_std INSTALL='install -p'


iconv -f ISO_8859-1 -t utf8 ChangeLog --output Changelog.utf8
touch -r ChangeLog Changelog.utf8
mv Changelog.utf8 ChangeLog

pushd doc
doxygen
find html -type f | xargs touch -r %{SOURCE0}
rm -f html/installdox
popd

rm %{buildroot}%{_libdir}/*.la

%files -n %{libname}
%doc README TODO COPYING.LIB ChangeLog AUTHORS
%{_libdir}/*.so.%{major}
%{_libdir}/*.so.%{major}.*

%files -n %{develname}
%doc doc/html
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc


%changelog
* Thu Aug 17 2017 neoclust <neoclust> 0.5-0.2.alpha.1.mga6
+ Revision: 1141410
- Add debian patch fix rejcetion of empty strings
  Add P2 - Fixes CVE-2017-11423 (mga#21556)
  Add P3 - Fixes CVE-2017-6419 (mga#21556)'

* Wed Mar 09 2016 pterjan <pterjan> 0.5-0.2.alpha.mga6
+ Revision: 988481
- Make the package compatible with the mass rebuild

* Sat Sep 12 2015 ovitters <ovitters> 0.5-0.1.alpha.mga6
+ Revision: 878513
+ rebuild (emptylog)

* Fri Feb 06 2015 oden <oden> 0.5-0.1.alpha.mga5
+ Revision: 813673
- imported package libmspack