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