I tried to build the rpm with the spec file and source file you
provided, and it abosultely had no problems.
The only thing I needed to modify was in the spec file as below.
"
%files
/etc/X11/applnk/Graphics/kxstitch.desktop
"

to
"
%files
/usr/share/applnk/Graphics/kxstitch.desktop
"

that's it. 
Copy the spec file to /usr/src/redhat/SPECS
Copy the source file to /usr/src/redhat/SOURCES

Install all the dependency rpms downloaded from
http://ftp.redhat.com/pub/redhat/linux/9/en/os/i386/RedHat/RPMS
and then execute this.
#cd /usr/src/redhat/SPECS
#rpmbuild -ba kxstitch.spec

that's it...your rpm will be there in /usr/src/redhat/RPMS/i386/

I hope it will work for you....good luck...

....
cheers
Pradeep

-----Original Message-----
From: Munir Nassar [mailto:nassarmu at redconcepts.net]
Sent: Friday, June 27, 2003 1:41 PM
To: Twin Cities Linux Users Group
Subject: [TCLUG] rpmbuild wierdness...


I am about to smash my head against the wall here trying to build this
rpm

the original .src.rpm looks like it was built for a SuSE system but i
was 
able to find all the dependencies and their RedHat counterparts.

now when i build it i get the following:
RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/local/kde/bin/kxstitch
   /usr/local/kde/share/applnk/Graphics/kxstitch.desktop
   /usr/local/kde/share/apps/kxstitch/kxstitchui.rc
   /usr/local/kde/share/apps/kxstitch/schemes/anchor.xml
   /usr/local/kde/share/apps/kxstitch/schemes/dmc.xml
   /usr/local/kde/share/apps/kxstitch/schemes/flossScheme.dtd
   /usr/local/kde/share/apps/kxstitch/schemes/madeira.xml
   /usr/local/kde/share/apps/kxstitch/toolbar/appearance.png
   /usr/local/kde/share/apps/kxstitch/toolbar/backstitch.png
   /usr/local/kde/share/apps/kxstitch/toolbar/bl3q.png
   /usr/local/kde/share/apps/kxstitch/toolbar/blq.png
   /usr/local/kde/share/apps/kxstitch/toolbar/bltrhf.png
   /usr/local/kde/share/apps/kxstitch/toolbar/br3q.png
   /usr/local/kde/share/apps/kxstitch/toolbar/brq.png
   /usr/local/kde/share/apps/kxstitch/toolbar/colorpicker.png
   /usr/local/kde/share/apps/kxstitch/toolbar/eraser.png
   /usr/local/kde/share/apps/kxstitch/toolbar/f_ellipse.png
   /usr/local/kde/share/apps/kxstitch/toolbar/f_rect.png
   /usr/local/kde/share/apps/kxstitch/toolbar/frknot.png
   /usr/local/kde/share/apps/kxstitch/toolbar/full.png
   /usr/local/kde/share/apps/kxstitch/toolbar/o_ellipse.png
   /usr/local/kde/share/apps/kxstitch/toolbar/o_rect.png
   /usr/local/kde/share/apps/kxstitch/toolbar/paintbrush.png
   /usr/local/kde/share/apps/kxstitch/toolbar/pencil.png
   /usr/local/kde/share/apps/kxstitch/toolbar/s_ellipse.png
   /usr/local/kde/share/apps/kxstitch/toolbar/s_rect.png
   /usr/local/kde/share/apps/kxstitch/toolbar/tl3q.png
   /usr/local/kde/share/apps/kxstitch/toolbar/tlbrhf.png
   /usr/local/kde/share/apps/kxstitch/toolbar/tlq.png
   /usr/local/kde/share/apps/kxstitch/toolbar/tr3q.png
   /usr/local/kde/share/apps/kxstitch/toolbar/trq.png
   /usr/local/kde/share/doc/HTML/en/kxstitch/index.cache.bz2
   /usr/local/kde/share/doc/HTML/en/kxstitch/index.docbook
   /usr/local/kde/share/icons/hicolor/32x32/apps/kxstitch.png
   /usr/local/kde/share/icons/locolor/16x16/apps/kxstitch.png
   /usr/local/kde/share/icons/locolor/32x32/apps/kxstitch.png
   /usr/local/kde/share/locale/fr/LC_MESSAGES/kxstitch.mo

the thing is that i am not installing in /usr/local/kde and i do have
the 
appropriate --prefix=/usr and when i compile the package by hand all the

files to to the proper places.

for gits and shiggles i parsed the source and removed any reference to 
/usr/local and yet it still hates me.

the .spec file that i am using is at:
http://alkuds.redconcepts.net/kxstitch/kxstitch.spec
and the .tar.bz2 that i am using (modified from the original source for 
kde3 and other things) is here:
http://alkuds.redconcepts.net/kxstitch-0.1-rcn.tar.bz2

if anyone has rpm building exp. care to point me in the right direction?

-- 
Munir Nassar
Systems Administrator
RedConcepts.NET


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list