0

I have problem with RPM spec file. I need to copy huge number of files located under tar.gz file:

%install
mkdir -p ${buildroot}/opt/agent
install -m 0755 -d $RPM_BUILD_ROOT/opt/agent
install -m 0777 * $RPM_BUILD_ROOT/opt/agent

The question is how I have to configure this micro to copy all files under /opt/agent into the new RPM file?

user1285928
  • 1,328
  • 29
  • 98
  • 147
  • Copy all files from the host's `/opt/agent` directory into the `$RPM_BUILD_ROOT/opt/agent` directory? – Etan Reisner Dec 28 '14 at 23:32
  • 1
    I'd pick one of `%{buildroot}` (and yes, it is `%{buildroot}` not `${buildroot}`) or `$RPM_BUILD_ROOT` and stick with it. Also there's no need for `mkdir -p` if you are going to use `install -d` like that. – Etan Reisner Dec 28 '14 at 23:34

0 Answers0