From 316b812eb31f085163795f66a675ec4489b5a9f1 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 31 Aug 2024 01:10:33 +0000 Subject: automatic import of lzma --- .gitignore | 1 + lzma.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 75 insertions(+) create mode 100644 lzma.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..d43a731 100644 --- a/.gitignore +++ b/.gitignore @@ -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 - 4.32.7-22 +- Package init diff --git a/sources b/sources new file mode 100644 index 0000000..b260772 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +16c3ae92c8e7d3b442c785a9615b82eb lzma-4.32.7.tar.lzma -- cgit v1.2.3