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