blob: af68c07afe339c8ccec41429e2529439a80f7951 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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
|