153452
Name:           lzo
153452
Version:        2.06
153452
Release:        8%{?dist}
153452
Summary:        Data compression library with very fast (de)compression
153452
Group:          System Environment/Libraries
153452
License:        GPLv2+
153452
URL:            http://www.oberhumer.com/opensource/lzo/
153452
Source0:        http://www.oberhumer.com/opensource/lzo/download/%{name}-%{version}.tar.gz
153452
Patch0:         lzo-2.06-configure.patch
153452
Patch1:         lzo-2.06-CVE-2014-4607.patch
153452
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
153452
BuildRequires:  zlib-devel
153452
153452
%description
153452
LZO is a portable lossless data compression library written in ANSI C.
153452
It offers pretty fast compression and very fast decompression.
153452
Decompression requires no memory. In addition there are slower
153452
compression levels achieving a quite competitive compression ratio
153452
while still decompressing at this very high speed.
153452
153452
153452
%package minilzo
153452
Summary:        Mini version of lzo for apps which don't need the full version
153452
Group:          System Environment/Libraries
153452
153452
%description minilzo
153452
A small (mini) version of lzo for embedding into applications which don't need
153452
full blown lzo compression support.
153452
153452
153452
%package devel
153452
Summary:        Development files for the lzo library
153452
Group:          Development/Libraries
153452
Requires:       %{name} = %{version}-%{release}
153452
Requires:       %{name}-minilzo = %{version}-%{release}
153452
Requires:       zlib-devel
153452
153452
%description devel
153452
LZO is a portable lossless data compression library written in ANSI C.
153452
It offers pretty fast compression and very fast decompression.
153452
This package contains development files needed for lzo.
153452
153452
153452
%prep
153452
%setup -q
153452
%patch0 -p1 -z .configure
153452
%patch1 -p1 -b .CVE-2014-4607
153452
# mark asm files as NOT needing execstack
153452
for i in asm/i386/src_gas/*.S; do
153452
  echo '.section .note.GNU-stack,"",@progbits' >> $i
153452
done
153452
153452
153452
%build
153452
%configure --disable-dependency-tracking --disable-static --enable-shared
153452
make %{?_smp_mflags} CFLAGS="%{optflags} -fno-strict-aliasing"
153452
# build minilzo too (bz 439979)
153452
gcc %{optflags} -fno-strict-aliasing -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c
153452
gcc -g -shared -o libminilzo.so.0 -Wl,-soname,libminilzo.so.0 minilzo/minilzo.o
153452
153452
153452
%install
153452
rm -rf $RPM_BUILD_ROOT
153452
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
153452
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
153452
install -m 755 libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir}
153452
ln -s libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir}/libminilzo.so
153452
install -p -m 644 minilzo/minilzo.h $RPM_BUILD_ROOT%{_includedir}/lzo
153452
153452
#Remove doc
153452
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/lzo
153452
153452
%check
153452
make check test
153452
153452
153452
%clean
153452
rm -rf $RPM_BUILD_ROOT
153452
153452
153452
%post -p /sbin/ldconfig
153452
153452
%postun -p /sbin/ldconfig
153452
153452
%post minilzo -p /sbin/ldconfig
153452
153452
%postun minilzo -p /sbin/ldconfig
153452
153452
153452
%files
153452
%defattr(-,root,root,-)
153452
%doc AUTHORS COPYING THANKS NEWS
153452
%{_libdir}/liblzo2.so.*
153452
153452
%files minilzo
153452
%defattr(-,root,root,-)
153452
%doc minilzo/README.LZO
153452
%{_libdir}/libminilzo.so.0
153452
153452
%files devel
153452
%defattr(-,root,root,-)
153452
%doc doc/LZOAPI.TXT doc/LZO.FAQ doc/LZO.TXT
153452
%{_includedir}/lzo
153452
%{_libdir}/lib*lzo*.so
153452
153452
153452
%changelog
153452
* Wed Jul  2 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 2.06-8
153452
- Built with -fno-strict-aliasing (rpmdiff)
153452
  Related: CVE-2014-4607
153452
153452
* Mon Jun 30 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 2.06-7
153452
- Fixed integer overflow in decompressor
153452
  Resolves: CVE-2014-4607
153452
153452
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.06-6
153452
- Mass rebuild 2014-01-24
153452
153452
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.06-5
153452
- Mass rebuild 2013-12-27
153452
153452
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.06-4
153452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
153452
153452
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.06-3
153452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
153452
153452
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.06-2
153452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
153452
153452
* Wed Sep 14 2011 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 2.06-1
153452
- Upgrade to latest upstream
153452
- Apply patch from Nicolas Chauvet
153452
153452
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-4
153452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
153452
153452
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-3
153452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
153452
153452
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.03-2
153452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
153452
153452
* Thu May  1 2008 Lubomir Rintel <lkundrak@v3.sk> 2.03-1
153452
- New upstream release
153452
- Changed the license to GPLv2+
153452
153452
* Wed Apr  2 2008 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-5
153452
- Fix configure failure with -Werror-implicit-function-declaration in CFLAGS
153452
- Add a minilzo subpackage which contains a shared version of minilzo, to be
153452
  used by all applications which ship with their own copy of it (bz 439979)
153452
153452
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.02-4
153452
- Autorebuild for GCC 4.3
153452
153452
* Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-3
153452
- Update License tag for new Licensing Guidelines compliance
153452
153452
* Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-2
153452
- FE6 Rebuild
153452
153452
* Wed Jul 26 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 2.02-1
153452
- New upstream release 2.02, soname change!
153452
153452
* Mon Jul 24 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.08-7
153452
- Taking over as maintainer since Anvil has other priorities
153452
- Add a patch to fix asm detection on i386 (bug 145882, 145893). Thanks to
153452
  Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe> for the initial patch.
153452
- Removed unused build dependency on nasm
153452
- Remove static lib
153452
- Cleanup %%doc a bit
153452
153452
* Thu Mar 16 2006 Dams <anvil[AT]livna.org> - 1.08-6.fc5
153452
- Rebuild for new gcc
153452
153452
* Tue Jan 17 2006 Dams <anvil[AT]livna.org> - 1.08-5.fc5
153452
- Bumped release for gcc 4.1 rebuild
153452
153452
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.08-4
153452
- rebuild on all arches
153452
153452
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
153452
- rebuilt
153452
153452
* Sun Apr 27 2003 Dams <anvil[AT]livna.org> 0:1.08-0.fdr.2
153452
- Typo un devel description
153452
- Added post and postun scriptlets
153452
- Added URL in Source0
153452
153452
* Fri Apr 25 2003 Dams <anvil[AT]livna.org>
153452
- Initial build.