diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | lzma.spec | 73 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/lzma-4.32.7.tar.lzma diff --git a/lzma.spec b/lzma.spec new file mode 100644 index 0000000..af68c07 --- /dev/null +++ b/lzma.spec @@ -0,0 +1,73 @@ +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 <zoushuangshuang@huawei.com> - 4.32.7-22 +- Package init @@ -0,0 +1 @@ +16c3ae92c8e7d3b442c785a9615b82eb lzma-4.32.7.tar.lzma |