Re: rpm spec example

Hunter Matthews <[email protected]>
Newsgroups gmane.network.up2date.current.devel
Message-ID <[email protected]>
I think what happened here is that you took a way out of date spec file
and tried to build it on 7.2

I'm redoing my own departmental rhn_reg/up2date rpms right now, and will
post the results to the list monday.

Fair enough?



On Wed, 2002-08-07 at 07:00, Arthur Clune wrote:
> 
> I've been building rhn_register RPMs for my clients as per 
> client_building.txt.
> 
> Taking the example .spec file from the doc/client dir rpm -ba fails:
> 
> ---------------------------------------
> 
> Processing files: rhn_register-2.7.2-7.x.2_current
> error: File not found: 
> /var/tmp/rhn_register-root/usr/lib/python1.5/site-packages/dmimodule.so
> Requires: python >= 1.5.2 rpm-python >= 4.0.2 python-xmlrpc >= 1.4.4 
> sh-utils
> Obsoletes: rhns_register
> Processing files: rhn_register-gnome-2.7.2-7.x.2_current
> Finding  Provides: (using /usr/lib/rpm/find-provides)...
> Finding  Requires: (using /usr/lib/rpm/find-requires)...
> PreReq: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) 
> <= 3.0.4-1
> Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 
> rpmlib(CompressedFileNames) <= 3.0.4-1
> Requires: rhn_register = 2.7.2 usermode >= 1.33 pam >= 0.72 redhat-logos 
> pygnome pygtk pygtk-libglade pygnome-libglade /bin/sh /usr/bin/python
> Obsoletes: rhns_register-gnome
> 
> 
> RPM build errors:
>     File not found: 
> /var/tmp/rhn_register-root/usr/lib/python1.5/site-packages/dmimodule.so
> 
> --------------------------------------------------------------
> 
> /usr/lib/python1.5/site-packages/dmimodule.so does exist.
> 
> Editing the .spec file solves the problem:
> 
> -----------------------
> 
> %install
> # ONLY for 6.x builds
> #cp rhn_register.pam6x rhn_register.pam
> 
> rm -fr $RPM_BUILD_ROOT
> mkdir -p $RPM_BUILD_ROOT
> 
> # next two lines added
> mkdir -p $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/
> cp /usr/lib/python1.5/site-packages/dmimodule.so 
> $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/
> 
> make install PREFIX=$RPM_BUILD_ROOT MANPATH=%{_mandir}
> 
> -------------------------------------
> 
> Is this something stupid I'm doing wrong, or something in the example .spec 
> file?
> 
> I'm building on a RH7.2 box.
> 
> Arthur
> 
> --
> Arthur Clune [email protected]
> We are the sum of the things we pretend to be, so we must be careful
> who we pretend to be - Kurt Vonnegut
> _______________________________________________
> Current-server mailing list
> [email protected]
> http://lists.dulug.duke.edu/mailman/listinfo/current-server
> 
> 
-- 
Hunter Matthews                          Unix / Network Administrator
Office: BioScience 145/244               Duke Univ. Biology Department
Key: F0F88438 / FFB5 34C0 B350 99A4 BB02  9779 A5DB 8B09 F0F8 8438
Never take candy from strangers. Especially on the internet.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.