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