Add makeself
(cherry picked from commit e3a1e844fc18167b6b94831b2899a3b2a2b6195c)
This commit is contained in:
parent
aa9c97190a
commit
05f1d7cb30
BIN
makeself-2.4.2.tar.gz
Normal file
BIN
makeself-2.4.2.tar.gz
Normal file
Binary file not shown.
59
makeself.spec
Normal file
59
makeself.spec
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
Name: makeself
|
||||||
|
Version: 2.4.2
|
||||||
|
Release: 1
|
||||||
|
BuildArch: noarch
|
||||||
|
Summary: Make self-extractable archives on Unix
|
||||||
|
|
||||||
|
License: GPLv2+
|
||||||
|
URL: https://github.com/megastep/makeself
|
||||||
|
Source: https://github.com/megastep/%{name}/archive/release-%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: move_header.patch
|
||||||
|
|
||||||
|
BuildRequires: glibc
|
||||||
|
|
||||||
|
Requires: gzip
|
||||||
|
|
||||||
|
Recommends: gnupg
|
||||||
|
Recommends: openssl
|
||||||
|
|
||||||
|
Suggests: bzip2
|
||||||
|
Suggests: gzip
|
||||||
|
Suggests: lz4
|
||||||
|
Suggests: pigz
|
||||||
|
Suggests: xz
|
||||||
|
Suggests: zstd
|
||||||
|
|
||||||
|
%description
|
||||||
|
makeself.sh is a shell script that generates a self-extractable
|
||||||
|
tar.gz archive from a directory. The resulting file appears as a shell
|
||||||
|
script, and can be launched as is. The archive will then uncompress
|
||||||
|
itself to a temporary directory and an arbitrary command will be
|
||||||
|
executed (for example an installation script). This is pretty similar
|
||||||
|
to archives generated with WinZip Self-Extractor in the Windows world.
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-release-%{version}
|
||||||
|
%patch0
|
||||||
|
|
||||||
|
%build
|
||||||
|
iconv --from-code=ISO-8859-1 --to-code=UTF-8 %{name}.1 | gzip > %{name}.1.gz
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
mkdir -p %{buildroot}%{_libexecdir}
|
||||||
|
mkdir -p %{buildroot}%{_mandir}/man1
|
||||||
|
|
||||||
|
install -p -m755 %{name}.sh %{buildroot}%{_bindir}
|
||||||
|
install -p -m644 %{name}-header.sh %{buildroot}%{_libexecdir}
|
||||||
|
install -p -m644 %{name}.1.gz %{buildroot}%{_mandir}/man1
|
||||||
|
ln -s %{name}.sh %{buildroot}%{_bindir}/%{name}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md COPYING %{name}.lsm
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
%{_libexecdir}/*
|
||||||
|
%{_bindir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Sep 01 2021 shenhongyi <shenhongyi2@huawei.com> - 2.4.2-1
|
||||||
|
- Package init
|
||||||
11
move_header.patch
Normal file
11
move_header.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- makeself.sh
|
||||||
|
+++ makeself.sh
|
||||||
|
@@ -174,7 +174,7 @@
|
||||||
|
TAR_EXTRA=""
|
||||||
|
GPG_EXTRA=""
|
||||||
|
DU_ARGS=-ks
|
||||||
|
-HEADER=`dirname "$0"`/makeself-header.sh
|
||||||
|
+HEADER=/usr/libexec/makeself-header.sh
|
||||||
|
TARGETDIR=""
|
||||||
|
NOOVERWRITE=n
|
||||||
|
DATE=`LC_ALL=C date`
|
||||||
Loading…
x
Reference in New Issue
Block a user