Blame SPECS/lz4.spec

6efcc9
%{?scl:%scl_package lz4}
6efcc9
%{!?scl:%global pkg_name %{name}}
6efcc9
6efcc9
%global _hardened_build 1
6efcc9
%global commit d86dc916771c126afb797637dda9f6421c0cb998
6efcc9
6efcc9
%bcond_with static
6efcc9
6efcc9
Name:           %{?scl_prefix}lz4
6efcc9
Version:        r131
6efcc9
Release:        5%{?dist}
6efcc9
Summary:        Extremely fast compression algorithm
6efcc9
6efcc9
Group:          Applications/System
6efcc9
License:        GPLv2+ and BSD
6efcc9
URL:            https://code.google.com/p/lz4/
6efcc9
Source0:        https://github.com/Cyan4973/%{pkg_name}/archive/%{commit}/%{pkg_name}-%{commit}.tar.gz
6efcc9
6efcc9
%if 0%{?rhel}
6efcc9
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-buildroot
6efcc9
%endif
6efcc9
6efcc9
%{?scl:BuildRequires:%scl_runtime}
6efcc9
%{?scl:Requires:%scl_runtime}
6efcc9
6efcc9
%description
6efcc9
LZ4 is an extremely fast loss-less compression algorithm, providing compression
6efcc9
speed at 400 MB/s per core, scalable with multi-core CPU. It also features
6efcc9
an extremely fast decoder, with speed in multiple GB/s per core, typically
6efcc9
reaching RAM speed limits on multi-core systems.
6efcc9
6efcc9
%package        devel
6efcc9
Summary:        Development library for lz4
6efcc9
Group:          Development/Libraries
6efcc9
License:        BSD
6efcc9
Requires:       %{name}%{?_isa} = %{version}-%{release}
6efcc9
%{?scl:Requires:%scl_runtime}
6efcc9
6efcc9
%description    devel
6efcc9
This package contains the header(.h) and library(.so) files required to build
6efcc9
applications using liblz4 library.
6efcc9
6efcc9
6efcc9
%if %{with static}
6efcc9
%package        static
6efcc9
Summary:        Static library for lz4
6efcc9
Group:          Development/Libraries
6efcc9
License:        BSD
6efcc9
%{?scl:Requires:%scl_runtime}
6efcc9
6efcc9
%description    static
6efcc9
LZ4 is an extremely fast loss-less compression algorithm. This package
6efcc9
contains static libraries for static linking of applications.
6efcc9
%endif
6efcc9
6efcc9
%prep
6efcc9
%setup -q -n %{pkg_name}-%{commit}
6efcc9
echo '#!/bin/sh' > ./configure
6efcc9
chmod +x ./configure
6efcc9
6efcc9
sed -i -e 's/^LIBVER_MAJOR=/LIBVER_MAJOR=%{?scl_prefix}/' lib/Makefile
6efcc9
6efcc9
%build
6efcc9
%{?scl:scl enable %{scl} - << \EOF}
6efcc9
%configure
6efcc9
make %{?_smp_mflags}
6efcc9
%{?scl:EOF}
6efcc9
6efcc9
%install
6efcc9
%{?scl:scl enable %{scl} - << \EOF}
6efcc9
%configure
6efcc9
%make_install LIBDIR=%{_libdir} PREFIX=%{_prefix} INSTALL="install -p"
6efcc9
chmod -x %{buildroot}%{_includedir}/*.h
6efcc9
%if %{without static}
6efcc9
rm -f %{buildroot}%{_libdir}/liblz4.a
6efcc9
%endif
6efcc9
%{?scl:EOF}
6efcc9
6efcc9
6efcc9
%post -p /sbin/ldconfig
6efcc9
%postun -p /sbin/ldconfig
6efcc9
6efcc9
6efcc9
%files
6efcc9
%doc programs/COPYING NEWS
6efcc9
%{_bindir}/lz4
6efcc9
%{_bindir}/lz4c
6efcc9
%{_bindir}/lz4cat
6efcc9
%{_bindir}/unlz4
6efcc9
%{_mandir}/man1/lz4*
6efcc9
%{_mandir}/man1/unlz4*
6efcc9
%{_libdir}/liblz4.so.*
6efcc9
6efcc9
6efcc9
%files devel
6efcc9
%doc lib/LICENSE
6efcc9
%{_includedir}/*.h
6efcc9
%{_libdir}/liblz4.so
6efcc9
%{_libdir}/pkgconfig/liblz4.pc
6efcc9
6efcc9
6efcc9
%if %{with static}
6efcc9
%files static
6efcc9
%doc lib/LICENSE
6efcc9
%{_libdir}/liblz4.a
6efcc9
%endif
6efcc9
6efcc9
6efcc9
%changelog
6efcc9
* Sun Jul 17 2016 Honza Horak <hhorak@redhat.com> - r131-5
6efcc9
- Prefix major version of the library with the scl name
6efcc9
6efcc9
* Fri Jul 15 2016 Honza Horak <hhorak@redhat.com> - r131-4
6efcc9
- Require runtime package from the scl
6efcc9
6efcc9
* Fri Jul 15 2016 Honza Horak <hhorak@redhat.com> - r131-3
6efcc9
- Convert to SCL package
6efcc9
6efcc9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - r131-2
6efcc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6efcc9
6efcc9
* Mon Jul 06 2015 pjp <pjp@fedoraproject.org> - r131-1
6efcc9
- New: Dos/DJGPP target #114.
6efcc9
- Added: Example using lz4frame library #118.
6efcc9
- Changed: liblz4.a no longer compiled with -fPIC by default.
6efcc9
6efcc9
* Thu Jun 18 2015 pjp <pjp@fedoraproject.org> - r130-1
6efcc9
- Fixed: incompatibility sparse mode vs console.
6efcc9
- Fixed: LZ4IO exits too early when frame crc not present.
6efcc9
- Fixed: incompatibility sparse mode vs append mode.
6efcc9
- Performance fix: big compression speed boost for clang(+30%).
6efcc9
6efcc9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - r129-2
6efcc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6efcc9
6efcc9
* Wed May 27 2015 pjp <pjp@fedoraproject.org> - r129-1
6efcc9
- New LZ4_compress_fast() API.
6efcc9
- New LZ4 CLI improved performance with multiple files.
6efcc9
- Other bug fix and documentation updates.
6efcc9
6efcc9
* Mon Apr 06 2015 pjp <pjp@fedoraproject.org> - r128-2
6efcc9
- Update files section to install unlz4 & its manual
6efcc9
6efcc9
* Wed Apr 01 2015 pjp <pjp@fedoraproject.org> - r128-1
6efcc9
- lz4cli sparse file support
6efcc9
- Restored lz4hc compression ratio
6efcc9
- lz4 cli supports long commands
6efcc9
- Introduced lz4-static sub package BZ#1208203
6efcc9
6efcc9
* Thu Jan 08 2015 pjp <pjp@fedoraproject.org> - r127-2
6efcc9
- Bump dist to override an earlier build.
6efcc9
6efcc9
* Wed Jan 07 2015 pjp <pjp@fedoraproject.org> - r127-1
6efcc9
- Fixed a bug in LZ4 HC streaming mode
6efcc9
- New lz4frame API integrated into liblz4
6efcc9
- Fixed a GCC 4.9 bug on highest performance settings
6efcc9
6efcc9
* Thu Nov 13 2014 pjp <pjp@fedoraproject.org> - r124-1
6efcc9
- New LZ4 HC Streaming mode
6efcc9
6efcc9
* Tue Sep 30 2014 pjp <pjp@fedoraproject.org> - r123-1
6efcc9
- Added experimental lz4frame API.
6efcc9
- Fix s390x support.
6efcc9
6efcc9
* Sat Aug 30 2014 pjp <pjp@fedoraproject.org> - r122-1
6efcc9
- new release
6efcc9
- Fixed AIX & AIX64 support (SamG)
6efcc9
- Fixed mips 64-bits support (lew van)
6efcc9
6efcc9
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - r121-3
6efcc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6efcc9
6efcc9
* Fri Aug 08 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - r121-2
6efcc9
- fix destdir
6efcc9
6efcc9
* Fri Aug 08 2014 pjp <pjp@fedoraproject.org> - r121-1
6efcc9
- new release
6efcc9
- Added a pkg-config file.
6efcc9
- Fixed a LZ4 streaming crash bug.
6efcc9
6efcc9
* Thu Jul 03 2014 pjp <pjp@fedoraproject.org> - r119-1
6efcc9
- new release
6efcc9
- Fixed a high Address allocation issue in 32-bits mode.
6efcc9
6efcc9
* Sat Jun 28 2014 pjp <pjp@fedoraproject.org> - r118-1
6efcc9
- new release
6efcc9
- install libraries under appropriate _libdir directories.
6efcc9
6efcc9
* Sat Jun 14 2014 pjp <pjp@fedoraproject.org> - r117-3
6efcc9
- Move shared library object to -devel package.
6efcc9
6efcc9
* Sat Jun 07 2014 pjp <pjp@fedoraproject.org> - r117-2
6efcc9
- Skip static library from installation.
6efcc9
6efcc9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - r117-2
6efcc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6efcc9
6efcc9
* Fri Jun 06 2014 pjp <pjp@fedoraproject.org> - r117-1
6efcc9
- new release
6efcc9
- added lz4c & lz4cat manual pages.
6efcc9
6efcc9
* Sun Apr 13 2014 pjp <pjp@fedoraproject.org> - r116-1
6efcc9
- new release 116
6efcc9
- added lz4cat utility for posix systems
6efcc9
6efcc9
* Sat Mar 15 2014 pjp <pjp@fedoraproject.org> - r114-1
6efcc9
- new release r114
6efcc9
- added RPM_OPT_FLAGS to CFLAGS
6efcc9
- introduced a devel package to build liblz4
6efcc9
6efcc9
* Thu Jan 02 2014 pjp <pjp@fedoraproject.org> - r110-1
6efcc9
- new release r110
6efcc9
6efcc9
* Sun Nov 10 2013 pjp <pjp@fedoraproject.org> - r108-1
6efcc9
- new release r108
6efcc9
6efcc9
* Wed Oct 23 2013 pjp <pjp@fedoraproject.org> - r107-1
6efcc9
- new release r107
6efcc9
6efcc9
* Mon Oct 07 2013 pjp <pjp@fedoraproject.org> - r106-3
6efcc9
- fixed install section to replace /usr/ with a macro.
6efcc9
  -> https://bugzilla.redhat.com/show_bug.cgi?id=1015263#c5
6efcc9
6efcc9
* Sat Oct 05 2013 pjp <pjp@fedoraproject.org> - r106-2
6efcc9
- fixed install section above as suggested in the review.
6efcc9
  -> https://bugzilla.redhat.com/show_bug.cgi?id=1015263#c1
6efcc9
6efcc9
* Sun Sep 22 2013 pjp <pjp@fedoraproject.org> - r106-1
6efcc9
- Initial RPM release of lz4-r106