makeself/makeself.spec

49 lines
1.6 KiB
RPMSpec
Raw Normal View History

Name: makeself
Version: 2.1.5
Release: 1mamba
Summary: A small shell script that generates a self-extractable tar.gz archive from a directory
Group: Applications/Archiving
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://megastep.org/makeself/
Source: http://megastep.org/makeself/makeself-%{version}.run
License: GPL
BuildArch: noarch
Requires: bzip2
Requires: gzip
Requires: gnupg
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
makeself.sh is a small shell script that generates a self-extractable tar.gz archive from a directory. The resulting file appears as a shell script (many of those have a .run suffix), and can be launched as is. The archive will then uncompress itself to a temporary directory and an optional arbitrary command will be executed (for example an installation script).
%prep
%setup -q -c %{name}-%{version} -D -T
sh %{SOURCE0}
mv %{name}-%{version}/* .
rmdir %{name}-%{version}
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m0755 makeself.sh %{buildroot}%{_bindir}/makeself
install -D -m0755 makeself.sh %{buildroot}%{_bindir}/makeself-header.sh
install -D -m0644 makeself.1 %{buildroot}%{_mandir}/man1/makeself.1
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/makeself
%{_bindir}/makeself-header.sh
%{_mandir}/man1/makeself.1*
%doc README TODO COPYING makeself.lsm
%changelog
* Sun Jan 23 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.5-1mamba
- package created by autospec