commit a0f1e0397c008005ab191b5559fd3b6357dcdac7
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Fri Aug 17 08:22:07 2018 +0100
Add missing stdlib include
lha-1.14i-stdlib.patch | 11 +++++++++++
lha.spec | 17 ++++++++---------
2 files changed, 19 insertions(+), 9 deletions(-)
---
diff --git a/lha-1.14i-stdlib.patch b/lha-1.14i-stdlib.patch
new file mode 100644
index 0000000..dd897ca
--- /dev/null
+++ b/lha-1.14i-stdlib.patch
@@ -0,0 +1,11 @@
+--- a/src/lha.h
++++ b/src/lha.h
+@@ -11,6 +11,7 @@
+ lharc.h interface.h slidehuf.h
+ */
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <errno.h>
+ #include <ctype.h>
+ #include <sys/types.h>
+
diff --git a/lha.spec b/lha.spec
index 25de49f..4844fc2 100644
--- a/lha.spec
+++ b/lha.spec
@@ -1,6 +1,6 @@
Name: lha
Version: 1.14i
-Release: 31%{?dist}
+Release: 32%{?dist}
Summary: Archiving and compression utility for LHarc/lha/lzh archives
Group: Applications/Archiving
License: Distributable
@@ -11,7 +11,7 @@ Patch1: lha-1.14i-malloc.patch
Patch2: lha-1.14i-sec.patch
Patch3: lha-1.14i-dir_length_bounds_check.patch
Patch4: lha-1.14i-sec2.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Patch5: lha-1.14i-stdlib.patch
%description
LHA is an archiving and compression utility for LHarc/lha/lzh format archives.
@@ -26,6 +26,7 @@ LHA is an archiving and compression utility for LHarc/lha/lzh format
archives.
%patch2 -p1 -b .sec
%patch3 -p1 -b .sec
%patch4 -p1 -b .sec
+%patch5 -p1 -b .stdlib
# Rename doc files to better represent encoding which is EUC (jp)
mv change-114e.txt change-114e.euc
@@ -35,26 +36,24 @@ mv change-114i.txt change-114i.euc
%build
-make %{?_smp_mflags} OPTIMIZE="%{optflags} -DSUPPORT_LH7 -DMKSTEMP"
+make OPTIMIZE="%{optflags} -DSUPPORT_LH7 -DMKSTEMP"
%install
-rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install -m0755 src/lha %{buildroot}%{_bindir}
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%doc change-114* CHANGES.euc PROBLEMS.euc README.euc
%{_bindir}/lha
%changelog
+* Fri Aug 17 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 1.14i-32
+- Add missing stdlib include
+- Clean up spec file
+
* Fri Aug 17 2018 Leigh Scott <leigh123linux(a)googlemail.com> - 1.14i-31
- Rebuild because of the binutils screw up