Blame SPECS/libmspack.spec

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