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