Name: lzma Version: 4.32.7 Release: 22 Summary: LZMA utils License: GPLv2+ URL: http://tukaani.org/%{name}/ Source0: http://tukaani.org/%{name}/%{name}-%{version}.tar.lzma BuildRequires: gcc-c++ Provides: %{name}-libs = %{version}-%{release} Obsoletes: %{name}-libs < %{version}-%{release} %description LZMA Utils are legacy data compression software with high compression ratio. LZMA Utils are no longer developed, although critical bugs may be fixed as long as fixing them doesn't require huge changes to the code. Users of LZMA Utils should move to XZ Utils. XZ Utils support the legacy .lzma format used by LZMA Utils, and can also emulate the command line tools of LZMA Utils. This should make transition from LZMA Utils to XZ Utils relatively easy. %package devel Summary: Devel libraries & headers for liblzmadec License: LGPLv2+ Requires: %{name} = %{version}-%{release} %description devel Devel libraries & headers for liblzmadec. LZMA Utils are no longer developed, although critical bugs may be fixed as long as fixing them doesn't require huge changes to the code. Users of LZMA Utils should move to XZ Utils. XZ Utils support the legacy .lzma format used by LZMA Utils, and can also emulate the command line tools of LZMA Utils. This should make transition from LZMA Utils to XZ Utils relatively easy. %prep %autosetup %build CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" \ CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" \ %configure --disable-static sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %make_build %install %make_install %delete_la %post /sbin/ldconfig %postun /sbin/ldconfig %files %exclude %{_bindir}/* %exclude %{_mandir}/man1/* %doc COPYING.* %{_libdir}/lib*.so.* %files devel %{_includedir}/*.h %{_libdir}/*.so %changelog * Wed Mar 11 2020 zoushuangshuang - 4.32.7-22 - Package init