What is wrong in this spec file?

Rakotomandimby (R12y) Mihamina mihamina.rakotomandimby at etu.univ-orleans.fr
Wed May 4 20:28:32 UTC 2005


Hi,

Attached is one spec file, for the findlib package.
It has been from a src.rpm of the altlinux distribution
I made just minor changes to suit it to my fedora core3.
Near the end of the packaging process, the stuff checks the
"prelinking".
Okay, but the problem is it say absolutely anything, as you see at the
bottom of this message.
That was the first thing. The second is that if a make a :

# rpm -qlp /usr/src/redhat/RPMS/i386/findlib-1.0.4-fc3.i386.rpm

It shows me my entire system!!
I think this thing has embeded all my PATH into the rpm pacakge!

I guess something would be wrong into my spec file, but I cant find
where. Would you help me?


======= end of rpmbuild -bb findlib.spec ========
[.....]

+ mkdir -p /usr/share/doc/findlib-1.0.4
+ cp README INSTALL LICENSE /usr/share/doc/findlib-1.0.4/
+ mkdir -p /usr/lib/ocaml/ocamlfind-mini/
+ cp mini/README mini/ocamlfind-mini /usr/lib/ocaml/ocamlfind-mini/
+ /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/findlib-1.0.4
0 blocks
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-
note /usr/bin/strip /usr/bin/objdump
Processing files: findlib-1.0.4-fc3
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.89611
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd findlib-1.0.4
+ DOCDIR=/usr/share/doc/findlib-1.0.4
+ export DOCDIR
+ rm -rf /usr/share/doc/findlib-1.0.4
+ /bin/mkdir -p /usr/share/doc/findlib-1.0.4
+ cp -pr README doc/ INSTALL LICENSE /usr/share/doc/findlib-1.0.4
+ exit 0
prelink: /usr/bin/bdfindex: at least one of file's dependencies has
changed since prelinking
prelink: /usr/bin/disol: at least one of file's dependencies has changed
since prelinking
prelink: /usr/bin/dltest: at least one of file's dependencies has
changed since prelinking
prelink: /usr/bin/fmtest: at least one of file's dependencies has
changed since prelinking
prelink: /usr/bin/isql: at least one of file's dependencies has changed
since prelinking
prelink: /usr/bin/iusql: at least one of file's dependencies has changed
since prelinking
prelink: /usr/bin/kban: at least one of file's dependencies has changed
since prelinking
prelink: /usr/bin/ktest: at least one of file's dependencies has changed
since prelinking
prelink: /usr/bin/odbcinst: at least one of file's dependencies has
changed since prelinking
prelink: /usr/bin/vfperf: at least one of file's dependencies has
changed since prelinking
prelink: /usr/bin/vftest: at least one of file's dependencies has
changed since prelinking
Provides: xchat(EXPORTED)
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib
(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/awk /bin/bash /bin/sh /usr/bin/env /usr/bin/ocamlrun /usr/bin/perl /usr/bin/python gtk-doc lib-javax-activation-20030319.so lib-javax-mail-20031006.so lib-javax-xml-parsers-2.2.1.so lib-javax-xml-transform-2.4.1.so lib-org-apache-bcel-5.0.so lib-org-apache-commons-logging-1.0.2.so lib-org-apache-regexp-1.2.so lib-org-apache-tools-ant-1.5.2.so lib-org-apache-tools-bzip2-1.5.2.so lib-org-apache-tools-mail-1.5.2.so lib-org-apache-tools-tar-1.5.2.so lib-org-apache-tools-zip-1.5.2.so lib-org-apache-xalan-2.4.1.so lib-org-apache-xerces-2.2.1.so lib-org-xml-sax-2.2.1.so libFLAC.so.4 libGL.so.1 libGLU.so.1 libICE.so.6 libIDL-0.6.so.0 libIDL-2.so.0 libIIOP.so.0 libMagick.so.6 libORBit-2.so.0 libORBit.so.0 libORBitCosNaming-2.so.0 libORBitCosNaming.so.0 libORBitutil.so.0 libOggFLAC.so.1 libSDL-1.2.so.0 libSDL_image-1.2.so.0 libSDL_mixer-1.2.so.0 libSDL_net-1.2.so.0 libSM.so.6 libVFlib2.so.24 libX11.so.6 libXaw.so.7 libXaw3d.so.7 libXcursor.so.1 libXext.so.6 libXft.so.2 libXi.so.6 libXinerama.so.1 libXmu.so.6 libXpm.so.4 libXrandr.so.2 libXrender.so.1 libXss.so.1 libXt.so.6 libXtst.so.6 libXv.so.1 libXxf86dga.so.1 libXxf86vm.so.1 libaa.so.1 libacl.so.1 libacl.so.1(ACL_1.0) libao.so.2 libapr-0.so.0 libaprutil-0.so.0 libart_lgpl.so.2 libart_lgpl_2.so.2 libartsc.so.0 libartsflow.so.1 libartsflow_idl.so.1 libasound.so.2 libasound.so.2(ALSA_0.9) libasound.so.2(ALSA_0.9.0rc4) libasound.so.2(ALSA_0.9.0rc8) libasound.so.2(ALSA_0.9.5) libaspell.so.15 libatk-1.0.so.0 libattr.so.1 libattr.so.1(ATTR_1.0) libaudiofile.so.0 libbeecrypt.so.6 libbfd-2.15.92.0.2.so libbonobo-2.so.0 libbonobo-activation.so.4 libbonobo-print.so.2 libbonobo.so.2 libbonoboui-2.so.0 libbonobox.so.2 libbz2.so.1 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.1) libc.so.6(GLIBC_2.1.2) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.2.3) libc.so.6(GLIBC_2.2.4) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.2) libc.so.6(GLIBC_2.3.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_PRIVATE) libcapi20.so.2 libcdda_interface.so.0 libcdda_paranoia.so.0 libcddb-slave2.so.0 libcom_err.so.2 libcroco-0.6.so.3 libcrypt.so.1 libcrypt.so.1(GLIBC_2.0) libcrypto.so.4 libcspi.so.0 libcups.so.2 libcurl.so.3 libdb-3.3.so libdb-4.1.so libdb-4.2.so libdb.so.2 libdb.so.2(GLIBC_2.0) libdb.so.3 libdb.so.3(GLIBC_2.1) libdbus-1.so.0 libdbus-glib-1.so.0 libdes425.so.3 libdia.so libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libdns.so.16 libdv.so.4 libdvdread.so.3 libdw.so.1 libdw.so.1(ELFUTILS_1.0) libe2p.so.2 libecal.so.6 libedataserver.so.3 libeel-2.so.2 libefs.so.1 libelf.so.1 libelf.so.1(ELFUTILS_1.0) libelf.so.1(ELFUTILS_1.1) libemiscwidgets.so.0 libesd.so.0 libeshell.so.0 libestbase.so.1.2.2.1 libeststring.so.1.2 libeutil.so.0 libevolution-a11y.so.0 libevolution-importer.so.0 libevolution-widgets-a11y.so.0 libexif.so.9 libexpat.so.0 libexslt.so.0 libext2fs.so.2 libfaad.so.0 libfontconfig.so.1 libfreetype.so.6 libfribidi.so.0 libgailutil.so.17 libgaim-remote.so.0 libgal-2.2.so.1 libgal-a11y-2.2.so.1 libgal.so.23 libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GCC_3.3) libgcc_s.so.1(GLIBC_2.0) libgcj.so.5 libgconf-1.so.1 libgconf-2.so.4 libgconf-gtk-1.so.1 libgcrypt.so.11 libgdbm.so.2 libgdk-1.2.so.0 libgdk-x11-2.0.so.0 libgdk_imlib.so.1 libgdk_pixbuf-2.0.so.0 libgdk_pixbuf.so.2 libgdk_pixbuf_

[..... there is still lot of crazyness but let's stop here ....]
====================================================================







-- 
Get a fully managed dedicated server for €200/month ($257/month)
No time limit for taking care of your server.
You keep the "root" acces if you want. Billing periods are 3 months.
See the conditions at http://aspo.rktmb.org/activities/managed_servers
-------------- next part --------------
%define ocamlver 3.08.3
Name: findlib
Version: 1.0.4
Release: fc3

Group: Development/ML
Summary: A module packaging tool for OCaml
License: GPL
Packager: Mihamina Rakotomandimby <mihamina.rakotomandimby at etu.univ-orleans.fr>
Url: http://www.ocaml-programming.de/packages/documentation/findlib/
Source: http://www.ocaml-programming.de/packages/%name-%version.tar.gz
Requires: ocaml = %ocamlver gtk-doc

# Automatically added by buildreq on Mon Oct 13 2003
BuildRequires: camlp4 labltk ncurses-devel 
# ocaml-runtime

BuildRequires: ocaml = %ocamlver

%package -n ocamlfind-mini
Summary: Minimal findlib script to be distributed with user libraries
Group: Development/ML
Requires: %name = %version-%release

%description

The "findlib" library provides a scheme to manage reusable software
components (packages), and includes tools that support this
scheme. Packages are collections of OCaml modules for which
metainformation can be stored. The packages are kept in the filesystem
hierarchy, but with strict directory structure. The library contains
functions to look the directory up that stores a package, to query
metainformation about a package, and to retrieve dependency
information about multiple packages. There is also a tool that allows
the user to enter queries on the command-line. In order to simplify
compilation and linkage, there are new frontends of the various OCaml
compilers that can directly deal with packages.

%description -n ocamlfind-mini

 ocamlfind-mini is an O'Caml script that implements a subset of the
full functionality of ocamlfind. It consists only of one file, so it
is easy to distribute it with any software.

The subset is normally sufficient to compile a library and to
install the library; but it is insufficient to link the library
into an executable. 



%prep
%setup -q

%build
./configure -mandir /usr/share/man -config /usr/lib/ocaml/etc/findlib.conf -with-toolbox
make all opt

%install
%define _compress_method skip
make prefix=$RPM_BUILD_ROOT install

mkdir -p $RPM_BUILD_ROOT%_docdir/%name-%version
cp README INSTALL LICENSE $RPM_BUILD_ROOT%_docdir/%name-%version/

mkdir -p $RPM_BUILD_ROOT/usr/lib/ocaml/ocamlfind-mini/
cp mini/* $RPM_BUILD_ROOT/usr/lib/ocaml/ocamlfind-mini/

%files -n ocamlfind-mini
%_libdir/ocaml/ocamlfind-mini/*

%files
%_bindir/*
%_libdir/ocaml/etc/*
%_libdir/ocaml/topfind
%_libdir/ocaml/site-lib/*
%_mandir/man?/*

%doc README doc/ INSTALL LICENSE

%changelog

* Mon Apr 2 2005 Mihamina Rakotomandimby <mihamina.rakotomandimby at etu.univ-orleans.fr> 1.0.4-fc3
- Vitaly Lugovsky <vsl at altlinux.ru> package modification to suit it to Fedora Core 3
- rebuild

* Tue Oct 26 2004 Vitaly Lugovsky <vsl at altlinux.ru> 1.0.4-alt1
- rebuild

* Sat Jul 17 2004 Vitaly Lugovsky <vsl at altlinux.ru> 1.0.4-alt0.2
- rebuild

* Wed Jul 07 2004 Vitaly Lugovsky <vsl at altlinux.ru> 1.0.4-alt0.1
- rebuild

* Fri May  7 2004 Alexander V. Nikolaev <avn at altlinux.org> 0.9-alt2.1
- Non-maintainer upload
- Add "packager" to spec
- Rebuild with glibc 2.3.x and ocaml 3.07-alt6.1

* Tue Jan 27 2004 Vitaly Lugovsky <vsl at altlinux.ru> 0.9-alt2
threads library issue fixed

* Tue Dec 16 2003 Vitaly Lugovsky <vsl at altlinux.ru> 0.9-alt1.1
rebuild


* Wed Oct 08 2003 Vitaly Lugovsky <vsl at altlinux.ru> 0.9-alt1
- A new version

* Wed Aug 27 2003 Vitaly Lugovsky <vsl at altlinux.ru> 0.8-alt3s
- rebuild

* Thu Mar 06 2003 Vitaly Lugovsky <vsl at altlinux.ru> 0.8-alt2s
- added static libraries METAs

* Fri Jan 31 2003 Vitaly Lugovsky <vsl at altlinux.ru> 0.8-alt1s
- rebuild with ocaml-3.06 [Shared]

* Sun Oct 27 2002 Vitaly Lugovsky <vsl at altlinux.ru> 0.8-alt1
- new version

* Sun Aug 18 2002 Vitaly Lugovsky <vsl at altlinux.ru> 0.7.2-alt1
- new release

*Tue Jul 30 2002 Vitaly Lugovsky <vsl at altlinux.ru> 0.7.1-alt1
- new release

*Mon Jun 24 2002 Vitaly Lugovsky <vsl at altlinux.ru> 0.7-alt1
- new version released

*Tue Apr 16 2002 Vitaly Lugovsky <vsl at altlinux.ru> 0.6.2-alt6
- Rebuild with 3.04+9

*Sat Mar  2 2002 Vitaly Lugovsky <vsl at altlinux.ru> 0.6.2-alt4
- Rebuild with ocaml-3.04+7-alt1

*Sun Feb 17 2002 Vitaly Lugovsky <vsl at altlinux.ru>
- Rebuild with ocaml-3.04-alt4 (shared patch disabled)

*Mon Jan 14 2002 Vitaly Lugovsky <warlock at skeptik.net>
- First RPM release.


More information about the fedora-devel-list mailing list