FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 12-11-2007, 06:36 PM
"Jon Ciesla"
 
Default how to use Source1 to add an additional file

> hi
>
> I want to add a separate configuration file (61-wqy-bitmapsong.conf)
> to package wqy-bitmap-fonts, after reading some examples, I used
> the following syntax to make this change
>
> ....
> Source0: http://url of the upstream package
> Source1: 61-wqy-bitmapsong.conf # the additional file
> ....
>
> %setup -q -n %{wqyroot}
> ...
> %install
> ...
> install -p -m644 %{SOURCE1} %{buildroot}%{fontconfigdir}/
> ...
>
> then I copied 61-wqy-bitmapsong.conf to "devel" directory,
> and "cvs add 61-wqy-bitmapsong.conf". However, it failed when
> I test the build with "make i386", the error message is
>
> File Not found: ..../wqy-bitmap-fonts/devel/61-wqy-bitmapsong.conf
> Installed (but unpackaged) file(s) found
> /etc/fonts/conf.d/http://kronos/wfc/logon
>
> did I miss anything? where should I put the 61-wqy-bitmapsong.conf
> when commit to cvs?

make new-sources FILES="/path/to/main/src/file
/path/to/61-wqy-bitmapsong.conf"

then cvs commit.

> thank you
>
> Qianqian
>
> --
> fedora-devel-list mailing list
> fedora-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-devel-list
>


--
novus ordo absurdum

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 12-11-2007, 06:39 PM
Qianqian Fang
 
Default how to use Source1 to add an additional file

hi

I want to add a separate configuration file (61-wqy-bitmapsong.conf)
to package wqy-bitmap-fonts, after reading some examples, I used
the following syntax to make this change

....
Source0: http://url of the upstream package
Source1: 61-wqy-bitmapsong.conf # the additional file
....

%setup -q -n %{wqyroot}
...
%install
...
install -p -m644 %{SOURCE1} %{buildroot}%{fontconfigdir}/
...

then I copied 61-wqy-bitmapsong.conf to "devel" directory,
and "cvs add 61-wqy-bitmapsong.conf". However, it failed when
I test the build with "make i386", the error message is

File Not found: ..../wqy-bitmap-fonts/devel/61-wqy-bitmapsong.conf
Installed (but unpackaged) file(s) found
/etc/fonts/conf.d/61-wqy-bitmapsong.conf

did I miss anything? where should I put the 61-wqy-bitmapsong.conf
when commit to cvs?

thank you

Qianqian

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 12-11-2007, 06:53 PM
Lubomir Kundrak
 
Default how to use Source1 to add an additional file

On Tue, 2007-12-11 at 12:36 -0600, Jon Ciesla wrote:
> > hi
> >
> > I want to add a separate configuration file (61-wqy-bitmapsong.conf)
> > to package wqy-bitmap-fonts, after reading some examples, I used
> > the following syntax to make this change
> >
> > ....
> > Source0: http://url of the upstream package
> > Source1: 61-wqy-bitmapsong.conf # the additional file
> > ....
> >
> > %setup -q -n %{wqyroot}
> > ...
> > %install
> > ...
> > install -p -m644 %{SOURCE1} %{buildroot}%{fontconfigdir}/
> > ...
> >
> > then I copied 61-wqy-bitmapsong.conf to "devel" directory,
> > and "cvs add 61-wqy-bitmapsong.conf". However, it failed when
> > I test the build with "make i386", the error message is
> >
> > File Not found: ..../wqy-bitmap-fonts/devel/61-wqy-bitmapsong.conf
> > Installed (but unpackaged) file(s) found
> > /etc/fonts/conf.d/http://kronos/wfc/logon
> >
> > did I miss anything? where should I put the 61-wqy-bitmapsong.conf
> > when commit to cvs?
>
> make new-sources FILES="/path/to/main/src/file
> /path/to/61-wqy-bitmapsong.conf"
>
> then cvs commit.

Alternatively, make srpm, then install the srpm, work on the package in
your rpmbuild tree and then cvs-import.sh it. In that case you'll not
have to worry about adding/removing files to/from cvs and uploading the
sources. But it indeed is an overkill for small changes.

--
Lubomir Kundrak (Red Hat Security Response Team)

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 11:02 PM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org