[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: cleaning up %install section
- From: Hiren Patel <patelhn telkom co za>
- To: Aaron Lippold <lippold gmail com>
- Cc: RPM Package Manager <rpm-list redhat com>
- Subject: Re: cleaning up %install section
- Date: Tue, 26 Jun 2007 08:19:45 +0200
i agree with the other folks on using multiple rpms, one source rpm can
produce multiple binary rpms, so you would only have to maintain one
spec file/source rpm.
by shell file globs i mean working with files using wildcards such as:
mv *.db /some/place
somecommand /some/place/*.db
mv *.cert /some/place
etc.
On Mon, 2007-06-25 at 18:33 +0200, Aaron Lippold wrote:
> I am registering a set of files in a db. Some users only need the
> first set of files, some need all the files from each set in the db. I
> want to allow the option to say, 'I need set1 and set3' etc. etc.
>
> MyFiles/Set1/file1.1,file1.2,file1.3,...
> .../Set2/file2.1,2.2,2.3,...
> ../Set3/file3.1,3.2,3.3,...
>
> If they user only wants to install the files in Set1 I want to have an
> option/switch they can pass to say,
>
> rpm -ihv --install-set1 --install-set3 my.rpm
>
> What did you mean by, 'shell file globs'? File Globals?
>
> Aaron
> On 6/25/07, Hiren Patel <patelhn telkom co za> wrote:
> >
> > you could put all the files into one tarball and then manipulate them
> > using shell file globs.
> > i have no idea what you are talking about with the sets.
> >
> > On Mon, 2007-06-25 at 17:08 +0200, Aaron Lippold wrote:
> > > Hello,
> > >
> > > I was hoping I could get some advise on making my %install section a
> > > bit more efficient. I would guess there is a smarter way to handle my
> > > file set then individually calling out each file.
> > >
> > > I basically have to do the same operation on each one, accounting for
> > > the slight name change. Also, I am going to be adding new 'sets' :
> > > TypeA, TypeB, etc. Right now my rpm just does TypeA. How do I add
> > > switches to my rpm -ihv --typea or rpm -ihv --type:A,C,E .
> > >
> > > Suggestions? Comment?
> > >
> > > Thanks,
> > >
> > > Aaron
> > > _______________________________________________
> > > Rpm-list mailing list
> > > Rpm-list redhat com
> > > https://www.redhat.com/mailman/listinfo/rpm-list
> > --
> >
> > Hiren Patel | Ops Specialist | ISS Infrastructure | Telkom
> > E-Mail: patelhn telkom co za Office: +27 12 680 3460 | Fax: +27 12 680
> > 3299 | Cell: +27 73 456 7980
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > This e-mail and its contents are subject to the Telkom SA Limited
> > e-mail legal notice available at
> > http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > _______________________________________________
> > Rpm-list mailing list
> > Rpm-list redhat com
> > https://www.redhat.com/mailman/listinfo/rpm-list
> >
--
Hiren Patel | Ops Specialist | ISS Infrastructure | Telkom
E-Mail: patelhn telkom co za Office: +27 12 680 3460 | Fax: +27 12 680
3299 | Cell: +27 73 456 7980
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]