What I am trying to do in the rpm which I am creating I thought would be fairly simple. I think I am getting hung up on the syntax.
I want the rpm to only create a new directory and from SOURCE extract the files from a tarball into the newly create dir.
Here is a snapshot of the sections I need help with in the spec file on my RHEL7 system. Have read many guides but can't quite understand how the tarball and files are integrated.
Quote:
Source0: myfiles.tar.gz
Source1: file1
BuildRequires:
Requires: bash
BuildArch: noarch
%description
%prep
# I think this extracts the tarball?
%setup -q
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/opt/install
install -m 0755 %{SOURCE0} /opt/install/
mkdir -p %{buildroot}/%{_bindir}
cp %{SOURCE1} %{buildroot}/%{_bindir}/
%files
|
Thanks!
Chris