Blame SPECS/lz4.spec

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