[CentOS] Trying to rebuild srpm from fedora....
Clint Dilks
clintd at scms.waikato.ac.nz
Mon Feb 1 22:41:33 UTC 2010
Tom Bishop wrote:
> Here is the section of the spec file:
>
> %{_bindir}/%{name}
> %{_datadir}/applications/%{name}.desktop
> %{_datadir}/%{name}
> %{_mandir}/man1/%{name}*
> %{_datadir}/pixmaps/
> %{_datadir}/icons/hicolor/*/apps/%{name}.*
>
>
> it appears to be coverd...
>
> On Mon, Feb 1, 2010 at 4:29 PM, Clint Dilks <clintd at scms.waikato.ac.nz
> <mailto:clintd at scms.waikato.ac.nz>> wrote:
>
> Tom Bishop wrote:
> > Thanks, that is very usefull and I have followed although I am still
> > coming up with an error when I do a rpmbuild -ba xxx.spec
> >
> > error: Installed (but unpackaged) file(s) found:
> > /usr/share/applications/centos5-shutter.desktop
> >
> >
> > RPM build errors:
> > File not found:
> >
> /var/tmp/shutter-0.85.1-1-root-itsupport/usr/share/applications/shutter.desktop
> > Installed (but unpackaged) file(s) found:
> > /usr/share/applications/centos5-shutter.desktop
> >
> >
> > On Mon, Feb 1, 2010 at 4:20 PM, Akemi Yagi <amyagi at gmail.com
> <mailto:amyagi at gmail.com>
> > <mailto:amyagi at gmail.com <mailto:amyagi at gmail.com>>> wrote:
> >
> > On Mon, Feb 1, 2010 at 2:13 PM, Tom Bishop
> <bishoptf at gmail.com <mailto:bishoptf at gmail.com>
> > <mailto:bishoptf at gmail.com <mailto:bishoptf at gmail.com>>> wrote:
> > > Thanks for the tips so I have gotten mock installed but
> for the
> > life of me I
> > > can't figure out how to install the srpm, edit the spec
> file and
> > then
> > > re-build. I have seen an example that installs and then I can
> > edit via mock
> > > shell, but when I do a rpmbuild -ba or -bb it says its
> misssing
> > the .tar
> > > files....any help or pointing in the right direction would be
> > appreciated.
> > > I know what I need to do to the spec file just not sure
> how to
> > achieve
> > > it...thanks.
> >
> > This CentOS wiki will help you:
> >
> > http://wiki.centos.org/HowTos/RebuildSRPM
> >
> > Akemi
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org <mailto:CentOS at centos.org>
> <mailto:CentOS at centos.org <mailto:CentOS at centos.org>>
> > http://lists.centos.org/mailman/listinfo/centos
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org <mailto:CentOS at centos.org>
> > http://lists.centos.org/mailman/listinfo/centos
> >
> Hi
>
> This means that the build process has found a file that is not covered
> by the files section of you spec file. If you are sure this is a
> legitimate file then simply add
> /usr/share/applications/centos5-shutter.desktop under the files
> section.
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org <mailto:CentOS at centos.org>
> http://lists.centos.org/mailman/listinfo/centos
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
Then I would suggest adding some echos to spec file that show the values of
%{_datadir} and %{name} to make sure the values they return match
/usr/share/applications/centos5-shutter.desktop
More information about the CentOS
mailing list