[opensuse-packaging] newbie question on %prep

All, I'm trying to package log2timeline and I'm pulling the *.tgz via a service pull. When the tgz file is expanded in %prep, it creates .../log2timeline. But the %prep section automatically does a "cd log2timeline-0.51" before I can have any control. How can I rename the extracted directory or cause the cd to go into log2timeline? fyi: I'm going to need to package some prereq perl modules for this to work, so if you can point me at a good example of a perl module spec file, that would be great too. Thanks Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

On Fri, Feb 18, 2011 at 9:13 PM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
All,
I'm trying to package log2timeline and I'm pulling the *.tgz via a service pull.
When the tgz file is expanded in %prep, it creates .../log2timeline.
But the %prep section automatically does a "cd log2timeline-0.51" before I can have any control.
try this: %setup -q -n %{name} instead of the default which should be: %setup -q. NM
How can I rename the extracted directory or cause the cd to go into log2timeline?
fyi: I'm going to need to package some prereq perl modules for this to work, so if you can point me at a good example of a perl module spec file, that would be great too.
Thanks Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
-- nelson marques nmo.marques@gmail.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

Thanks All, The nice thing about newbie questions is everyone knows the answer. Greg On Fri, Feb 18, 2011 at 4:29 PM, Nelson Marques <nmo.marques@gmail.com> wrote:
On Fri, Feb 18, 2011 at 9:13 PM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
All,
I'm trying to package log2timeline and I'm pulling the *.tgz via a service pull.
When the tgz file is expanded in %prep, it creates .../log2timeline.
But the %prep section automatically does a "cd log2timeline-0.51" before I can have any control.
try this:
%setup -q -n %{name}
instead of the default which should be: %setup -q.
NM
How can I rename the extracted directory or cause the cd to go into log2timeline?
fyi: I'm going to need to package some prereq perl modules for this to work, so if you can point me at a good example of a perl module spec file, that would be great too.
Thanks Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
-- nelson marques nmo.marques@gmail.com
-- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV Aired Forensic Imaging Demo - http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retriev... The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

Saturday 19 February 2011 On Fri, 18 Feb 2011 16:13:16 -0500 Greg Freemyer wrote:
When the tgz file is expanded in %prep, it creates .../log2timeline.
But the %prep section automatically does a "cd log2timeline-0.51" before I can have any control.
%prep %setup -q -n %{name} -q -- quiet (don't list unpacked files) -n -- directory name in tar -- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

On Fri, 18 Feb 2011 16:13:16 -0500 Greg Freemyer <greg.freemyer@gmail.com> wrote:
All,
I'm trying to package log2timeline and I'm pulling the *.tgz via a service pull.
When the tgz file is expanded in %prep, it creates .../log2timeline.
But the %prep section automatically does a "cd log2timeline-0.51" before I can have any control.
How can I rename the extracted directory or cause the cd to go into log2timeline?
fyi: I'm going to need to package some prereq perl modules for this to work, so if you can point me at a good example of a perl module spec file, that would be great too.
Thanks Greg Hi Use the -n option.
%setup -q -n %{name} -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.27-0.2-default up 7 days 17:15, 2 users, load average: 0.01, 0.06, 0.07 GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

Hello, on Freitag, 18. Februar 2011, Greg Freemyer wrote:
fyi: I'm going to need to package some prereq perl modules for this to work, so if you can point me at a good example of a perl module spec file, that would be great too.
The easiest way to package a perl module is to use cpanspec - either install it on your system or use the cpanspec service in the buildservice. And before doing anything, check if the package already exists in devel:languages:perl ;-) Regards, Christian Boltz --
unsubscribt. ...oh nein,-noch einer. Jens Du bist es Schuld! Ich würde ja gerne sagen: "Es tut mir leid." Aber ich kann machen was ich will, es kommt mir nicht über die Lippen ;) [>> Matthias Reinhardt, > Harald Huthmann u. Jens Nixdorf in suse-linux] -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

Hello, Is there a option to build a rpm in obs that has CodeAnalyst features enabled ? Can it be enabled by using the following line in the .spec file ? BuildRequires: CodeAnalyst If , not can it be addeded in , so the CodeAnalyst features can be used ?. I see CodeAnalyst is built at: https://build.opensuse.org/package/show?package=CodeAnalyst&project=openSUSE... Thanks Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

On 02/18/2011 11:13 PM, Greg Freemyer wrote:
All,
I'm trying to package log2timeline and I'm pulling the *.tgz via a service pull.
When the tgz file is expanded in %prep, it creates .../log2timeline.
But the %prep section automatically does a "cd log2timeline-0.51" before I can have any control.
How can I rename the extracted directory or cause the cd to go into log2timeline?
fyi: I'm going to need to package some prereq perl modules for this to work, so if you can point me at a good example of a perl module spec file, that would be great too.
Thanks Greg
Try these links: http://www.rpm.org/max-rpm-snapshot/ it gives a good basic rundown on the common parts of the spec file and also gives all the interesting things you can do with %setup. http://www.rpm.org/ here you get all the rest of the documentation and there's even reasonable info on macros but you have to browse for it. Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (7)
-
Christian Boltz
-
Dave Plater
-
doiggl@velocitynet.com.au
-
Greg Freemyer
-
Kyrill Detinov
-
Malcolm
-
Nelson Marques