Blame SPECS/libmspack.spec

08863e
Name:           libmspack
08863e
Version:        0.5
ddbc83
Release:        0.8.alpha%{?dist}
08863e
Summary:        Library for CAB and related files compression and decompression
08863e
08863e
Group:          System Environment/Libraries
08863e
License:        LGPLv2
08863e
URL:            http://www.cabextract.org.uk/libmspack/
08863e
Source0:        http://www.cabextract.org.uk/libmspack/%{name}-%{version}alpha.tar.gz
08863e
Patch0:         %{name}-0.4alpha-doc.patch
08863e
BuildRequires:  doxygen
08863e
08863e
# Fixes for CVE-2018-14679 CVE-2018-14680 CVE-2018-14681 CVE-2018-14682
08863e
Patch1:         0001-Fix-off-by-one-bounds-check-on-CHM-PMGI-PMGL-chunk-n.patch
08863e
Patch2:         0002-kwaj_read_headers-fix-handling-of-non-terminated-str.patch
08863e
Patch3:         0003-Fix-off-by-one-error-in-chmd-TOLOWER-fallback.patch
08863e
# Fixes for CVE-2018-18584 CVE-2018-18585
ddbc83
Patch4:         0004-Avoid-returning-CHM-file-entries-that-are-blank-beca.patch
ddbc83
Patch5:         0005-CAB-block-input-buffer-is-one-byte-too-small-for-max.patch
ddbc83
# Fix for CVE-CVE-2019-1010305
ddbc83
Patch6:         0006-length-checks-when-looking-for-control-files.patch
08863e
08863e
# Patch 2 has a bunch of binary files that cannot be applied using
08863e
# plain patch.  So I removed them and packaged them separately in this
08863e
# source tarball.
08863e
Source2:        kwajd.tar.gz
08863e
08863e
# We need to rerun autotools after applying the patches above.
08863e
BuildRequires:  autoconf, automake, libtool
08863e
08863e
%description
08863e
The purpose of libmspack is to provide both compression and decompression of
08863e
some loosely related file formats used by Microsoft.
08863e
08863e
%package        devel
08863e
Summary:        Development files for %{name}
08863e
Group:          Development/Libraries
08863e
Requires:       %{name} = %{version}-%{release}
08863e
Obsoletes:      %{name}-doc < 0.2
08863e
08863e
%description    devel
08863e
The %{name}-devel package contains libraries, header files and documentation
08863e
for developing applications that use %{name}.
08863e
08863e
08863e
%prep
08863e
%setup -q -n %{name}-%{version}alpha
08863e
%patch0 -p1
08863e
%patch1 -p3
08863e
%patch2 -p3
08863e
%patch3 -p3
08863e
%patch4 -p3
08863e
%patch5 -p3
ddbc83
%patch6 -p3
08863e
pushd test
08863e
zcat %{SOURCE2} | tar xvf -
08863e
popd
08863e
08863e
chmod a-x mspack/mspack.h
08863e
08863e
autoreconf -i
08863e
08863e
08863e
%build
08863e
CFLAGS="%{optflags} -fno-strict-aliasing" \
08863e
%configure --disable-static --disable-silent-rules
08863e
make %{?_smp_mflags}
08863e
08863e
08863e
%install
08863e
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
08863e
rm $RPM_BUILD_ROOT%{_libdir}/libmspack.la
08863e
08863e
iconv -f ISO_8859-1 -t utf8 ChangeLog --output Changelog.utf8
08863e
touch -r ChangeLog Changelog.utf8
08863e
mv Changelog.utf8 ChangeLog
08863e
08863e
pushd doc
08863e
doxygen
08863e
find html -type f | xargs touch -r %{SOURCE0}
08863e
rm -f html/installdox
08863e
popd
08863e
08863e
08863e
%post -p /sbin/ldconfig
08863e
08863e
%postun -p /sbin/ldconfig
08863e
08863e
08863e
%files
08863e
%doc README TODO COPYING.LIB ChangeLog AUTHORS
08863e
%{_libdir}/*.so.*
08863e
08863e
%files devel
08863e
%doc doc/html
08863e
%{_includedir}/*
08863e
%{_libdir}/*.so
08863e
%{_libdir}/pkgconfig/%{name}.pc
08863e
08863e
08863e
%changelog
ddbc83
* Fri Aug  2 2019 Richard W.M. Jones <rjones@redhat.com> - 0.5-0.8.alpha
ddbc83
- Fix for CVE-2019-1010305
ddbc83
  resolves: rhbz#1736744
ddbc83
08863e
* Fri Dec  7 2018 Richard W.M. Jones <rjones@redhat.com> - 0.5-0.7.alpha
08863e
- Fixes for CVE-2018-18584 CVE-2018-18585.
08863e
  resolves: rhbz#1648384 rhbz#1648385
08863e
08863e
* Thu Aug  2 2018 Richard W.M. Jones <rjones@redhat.com> - 0.5-0.6.alpha
08863e
- Fixes for CVE-2018-14679 CVE-2018-14680 CVE-2018-14681 CVE-2018-14682
08863e
- resolves: rhbz#1611550 rhbz#1611551 rhbz#1611552 rhbz#1611553
08863e
08863e
* Thu Mar 16 2017 Richard W.M. Jones <rjones@redhat.com> - 0.5-0.5.alpha
08863e
- Remove ExclusiveArch
08863e
  resolves: rhbz#1422266
08863e
08863e
* Thu Jul 30 2015 Richard W.M. Jones <rjones@redhat.com> - 0.5-0.4.alpha
08863e
- Avoid 'test/md5.c:126:3: warning: dereferencing type-punned pointer
08863e
  will break strict-aliasing rules' by adding -fno-strict-aliasing flag.
08863e
08863e
* Wed Jul 29 2015 Richard W.M. Jones <rjones@redhat.com> - 0.5-0.3.alpha
08863e
- Import into RHEL 7.2.
08863e
- Add ExcludeArch x86_64
08863e
- resolves: rhbz#1223486
08863e
08863e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-0.2.alpha
08863e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
08863e
08863e
* Tue Mar 03 2015 Dan Horák <dan[at]danny.cz> - 0.5-0.1.alpha
08863e
- updated to 0.5alpha
08863e
08863e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-0.4.alpha
08863e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
08863e
08863e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-0.3.alpha
08863e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
08863e
08863e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-0.2.alpha
08863e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
08863e
08863e
* Tue May 28 2013 Dan Horák <dan[at]danny.cz> - 0.4-0.1.alpha
08863e
- updated to 0.4alpha
08863e
08863e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.4.alpha
08863e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
08863e
08863e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.3.alpha
08863e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
08863e
08863e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.2.alpha
08863e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
08863e
08863e
* Mon May 16 2011 Dan Horák <dan[at]danny.cz> - 0.3-0.1.alpha
08863e
- updated to 0.3alpha
08863e
08863e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-0.2.20100723alpha
08863e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
08863e
08863e
* Mon Aug 30 2010 Dan Horák <dan[at]danny.cz> - 0.2-0.1.20100723alpha
08863e
- updated to 0.2alpha released 2010/07/23
08863e
- merged the doc subpackage with devel
08863e
08863e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0-0.7.20060920alpha
08863e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
08863e
08863e
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0-0.6.20060920alpha
08863e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
08863e
08863e
* Wed Feb 13 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 0.0-0.5-20060920alpha
08863e
- Rebuild for gcc4.3
08863e
08863e
* Sun Jan 20 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 0.0-0.4.20060920alpha
08863e
- installed documentation into html subdir
08863e
- manually installed doc's for main package
08863e
08863e
* Sun Jan 20 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 0.0-0.3.20060920alpha
08863e
- Got source using wget -N
08863e
- Removed some doc's
08863e
- Shifted doc line for doc package
08863e
- Added install -p
08863e
08863e
* Sun Jan 20 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 0.0-0.2.20060920alpha
08863e
- Changed install script for doc package
08863e
- Fixed rpmlint issue with debug package
08863e
08863e
* Fri Jan 18 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 20060920cvs.a-1
08863e
- Initial release