Multiple Sources

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I've created an SRPM for a program called osiris (osiris.shmoo.com). 
During the creation I wanted to add in 2 additional modules which come
in separate .tar.gz files.  These are intended to be extracted to a
directory within the osiris source.

So.. onto my predicament..  In order to get the source to extract into
the correct place, I used the following in my %prep block :

%setup -q -b0 -n %{name}-%{version}
%setup -q -D -T -a1 -n %{name}-%{version}/src/osirisd/modules
%setup -q -D -T -a2 -n %{name}-%{version}/src/osirisd/modules

However, when the prep block is complete, the %build block is run
within the last directory specified with -n.

In order to make it work, I had to do the following instead :

%setup -q -a1 -c -n %{name}-%{version}/src/osirisd/modules
%setup -q -D -T -a2 -n %{name}-%{version}/src/osirisd/modules
%setup -q -D -T -b0 -n %{name}-%{version}

So, is this the proper way to handle this, or should I be doing something else?

Thanks!

-- 
Jason 'XenoPhage' Frisvold
XenoPhage0@xxxxxxxxx

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux