%ifarch %{ix86} %bcond_without assembler %else %bcond_with assembler %endif # JIT in bundled libzpaq is supported on x86 and x86_64 only, bug #1309772 %ifarch %{ix86} x86_64 %bcond_without jit %else %bcond_with jit %endif # These utilities do not use the standalone library Name: lrzip Version: 0.631 Release: 4%{?dist} Summary: Compression program optimized for large files Group: Applications/File # libzpaq: MIT # lzma: Public Domain # md5.{c,h}: GPLv3+ # other files: GPLv2+ License: GPLv2+ and GPLv3+ and MIT and Public Domain URL: http://ck.kolivas.org/apps/%{name}/ Source0: %{url}%{name}-%{version}.tar.bz2 BuildRequires: bash BuildRequires: bzip2-devel BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: glibc-common BuildRequires: lzo-devel BuildRequires: make %if %{with assembler} BuildRequires: nasm %endif BuildRequires: %{_bindir}/pod2man BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Bundled zpaq . lrzip does not work with # newer zpaq versions. Provides: bundled(zpaq) = 5.01 %description Long Range ZIP or Lzma RZIP This is a compression program optimized for large files. The larger the file and the more memory you have, the better the compression advantage this will provide, especially once the files are larger than 100 MB. The advantage can be chosen to be either size (much smaller than bzip2) or speed (much faster than bzip2). Decompression is always much faster than bzip2. %package libs Summary: Long Range ZIP library Group: System Environment/Libraries Provides: bundled(zpaq) %description libs Dynamic library implementing Long Range ZIP or Lzma RZIP algorithm and archive format. %package devel Summary: Development files for Long Range ZIP library Group: Development/Libraries Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel Files needed to develop application using Long Range ZIP library. %package static Summary: Static Long Range ZIP library Group: Development/Libraries Requires: %{name}-devel%{?_isa} = %{version}-%{release} Provides: bundled(zpaq) %description static Static library implementing Long Range ZIP or Lzma RZIP algorithm and archive format. %prep %setup -q for F in lzma/history.txt; do iconv -f ISO-8859-1 -t UTF-8 < "$F" > "${F}.utf8" touch -r "$F" "${F}.utf8" mv "${F}.utf8" "$F" done %global docdir %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} %global docdir_devel %{_docdir}/%{name}-devel%{!?_pkgdocdir:%-%{version}} %build %configure \ --docdir='%{docdir}' --disable-doc \ --enable-shared --enable-static --disable-static-bin \ --%{?with_assembler:enable}%{!?with_assembler:disable}-asm \ --enable-largefile %{!?with_jit:CPPFLAGS="${CPPFLAGS} -DNOJIT"} make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm {} + # Install devel documentation here because %%doc and direct installation # cannot be used at the same same install -d $RPM_BUILD_ROOT%{docdir_devel} install -m 0644 -t $RPM_BUILD_ROOT%{docdir_devel} \ decompress_demo.c liblrzip_demo.c %check ./lrzip -z COPYING ./lrzip --info COPYING.lrz ./lrzip -d -o COPYING.new COPYING.lrz cmp COPYING COPYING.new rm COPYING.new %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files %{docdir} %{_bindir}/* %{_mandir}/man1/*.1.gz %{_mandir}/man5/*.5.gz %files libs %license COPYING %{_libdir}/lib%{name}.so.* %files devel %{docdir_devel} %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %{_includedir}/* %files static %{_libdir}/lib%{name}.a %changelog * Thu Aug 03 2017 Fedora Release Engineering - 0.631-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.631-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.631-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Oct 21 2016 Petr Pisar - 0.631-1 - 0.631 bump * Wed Jun 15 2016 Petr Pisar - 0.630-1 - 0.630 bump * Fri Feb 19 2016 Petr Pisar - 0.621-6 - Enable JIT only on x86 and x86_64 architectures (bug #1309772) * Thu Feb 18 2016 Petr Pisar - 0.621-5 - Fix GCC 6 warnings (bug #1306292) - Add a simple test - Specify all dependencies - Disable tests on ARM (bug #1309772) * Thu Feb 04 2016 Fedora Release Engineering - 0.621-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.621-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0.621-2 - Rebuilt for GCC 5 C++11 ABI change * Thu Mar 12 2015 Petr Pisar - 0.621-1 - 0.621 bump - License declaration corrected to (GPLv2+ and GPLv3+ and MIT and Public Domain) * Tue Mar 03 2015 Petr Pisar - 0.620-1 - 0.620 bump - License declaration corrected from (GPLv2+) to (GPLv2+ and GPLv3+ and Public Domain) * Sun Aug 17 2014 Fedora Release Engineering - 0.616-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.616-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Sep 10 2013 Petr Pisar - 0.616-2 - Correct assembler usage * Tue Sep 10 2013 Petr Pisar - 0.616-1 - 0.616 bump * Mon Sep 02 2013 Petr Pisar - 0.615-1 - 0.615 bump * Fri Jul 26 2013 Ville Skyttä - 0.614-4 - Install docs to %%{_pkgdocdir} where available. * Thu Feb 14 2013 Fedora Release Engineering - 0.614-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 0.614-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jul 13 2012 Petr Pisar - 0.614-1 - 0.614 bump * Mon Jul 09 2012 Petr Pisar - 0.613-1 - 0.613 bump * Mon Mar 19 2012 Petr Pisar - 0.612-1 - 0.612 bump * Wed Mar 14 2012 Petr Pisar - 0.611-1 - 0.611 bump - The lrzip implementation is available as standalone library now * Fri Jan 13 2012 Fedora Release Engineering - 0.608-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Sep 26 2011 Petr Pisar - 0.608-1 - 0.608 bump - Obsolete lrzip-bash sub-package as upstream removed bash completion support * Mon Sep 19 2011 Petr Pisar - 0.607-1 - 0.607 bump - Fix bash completion installation - Remove defattr spec code - Package bash completion helper into standalone sub-package * Mon May 16 2011 Petr Pisar - 0.606-1 - 0.606 bump * Tue May 10 2011 Petr Pisar - 0.605-1 - 0.605 bump * Wed Apr 27 2011 Petr Pisar - 0.604-1 - 0.604 bump * Fri Apr 22 2011 Petr Pisar - 0.603-1 - 0.603 bump * Thu Apr 14 2011 Petr Pisar - 0.602-1 - 0.602 bump * Thu Mar 24 2011 Petr Pisar - 0.601-1 - 0.601 bump - Fix symlink installation * Wed Mar 23 2011 Petr Pisar - 0.600-1 - 0.600 bump - Archives generated by this version are not backward compatible - Fix manual pages generation - Fix symlinks installation - Recode non-UTF-8 documentation * Tue Mar 08 2011 Petr Pisar - 0.571-1 - 0.571 bump * Fri Feb 25 2011 Petr Pisar - 0.570-1 - 0.570 bump * Mon Feb 21 2011 Petr Pisar - 0.560-1 - 0.560 bump * Mon Feb 14 2011 Petr Pisar - 0.552-1 - 0.552 bump * Tue Feb 08 2011 Fedora Release Engineering - 0.551-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Dec 13 2010 Petr Pisar - 0.551-1 - 0.551 bump - Upstream changed compresion level scale. Maximal level is 7 now. * Thu Dec 09 2010 Petr Pisar - 0.544-1 - 0.544 bump * Thu Dec 02 2010 Petr Pisar - 0.543-1 - 0.543 bump * Tue Nov 23 2010 Petr Pisar - 0.542-1 - 0.542 bump * Fri Nov 19 2010 Petr Pisar - 0.541-1 - 0.541 bump * Mon Nov 01 2010 Petr Pisar - 0.47-1 - 0.47 bump - Drop unneeded patches - Remove obsolete BuildRoot * Mon Aug 9 2010 Petr Pisar - 0.46-1 - 0.46 bump (bug #606722) - Version 0.40 breaks backward compatibility (archive format) - Fix package description spelling * Sat Jul 25 2009 Fedora Release Engineering - 0.23-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0.23-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jul 18 2008 Shawn Starr 0.23-1 - New upstream release * Fri Feb 08 2008 Warren Togami 0.19-1 - 0.19 and rebuild for gcc-4.3 * Mon Nov 12 2007 Warren Togami 0.18-1 - initial package