Re: [gnome-db] libgnomedb RPMs



 --- Adam Williams <awilliam whitemice org> wrote: > I've uploaded
the following files -
> libgnomedb-0.91.0-1.i386.rpm
> libgnomedb-devel-0.91.0-1.i386.rpm
> libgnomedb-debuginfo-0.91.0-1.i386.rpm
> libgnomedb-0.91.0-1.src.rpm
>  - to
>
ftp://ftp.kalamazoolinux.org/pub/pdf/projects/awilliam/misc-gnome/rh9
> 
> I fixed the following problem in the spec file.
> -----------------------------
> RPM build errors:
>     File not found by glob:
> /var/tmp/libgnomedb-0.91.0-root/usr/lib/gnome-vfs-2.0/modules/*.so
>     File not found by glob:
> /var/tmp/libgnomedb-0.91.0-root/usr/lib/gnome-vfs-2.0/modules/*.a
>     File not found by glob:
> /var/tmp/libgnomedb-0.91.0-root/usr/lib/gnome-vfs-2.0/modules/*.la
>     File not found by glob:
> /var/tmp/libgnomedb-0.91.0-root/etc/gnome-vfs-2.0/modules/*
> [root estate2 SPECS]# ls /var/tmp/libgnomedb-0.91.0-root/usr/lib
> bonobo  libglade        libgnomedb-2.la  libgnomedb-2.so.3     
> pkgconfig
> debug   libgnomedb-2.a  libgnomedb-2.so  libgnomedb-2.so.3.0.0
> [root estate2 SPECS]# find  /var/tmp/libgnomedb-0.91.0-root -name
> *vfs*
> <null>
> 
> Solution: Removed references to VFS files in /usr/lib & /etc
> -----------------------
> Checking for unpackaged file(s): /usr/lib/rpm/check-files
> /var/tmp/libgnomedb-0.91.0-root
> error: Installed (but unpackaged) file(s) found:
>    /usr/share/gnome-db/ui/db-shell.xml
>   
> RPM build errors:
>     Installed (but unpackaged) file(s) found:
>    /usr/share/gnome-db/ui/db-shell.xml
> 
> Solution: Added this file to the package libgnomedb
> > Summary:         Library for writing gnome database programs
> Name:            libgnomedb
> Version:         0.91.0
> Release:         1
> Source:          %{name}-%{version}.tar.gz
> URL:             http://www.gnome-db.org/
> Group:           System Environment/Libraries
> License:         LGPL
> BuildRoot:       %{_tmppath}/%{name}-%{version}-root
> BuildRequires:   pkgconfig >= 0.8
> Requires:        libgnomeui >= 1.103.0
> Requires:        libgda >= 0.91.0
> Requires:        gtk2 >= 1.3.6
> Requires:        libbonoboui
> Requires:        libglade2
> BuildRequires:   libgnomeui-devel >= 1.103.0
> BuildRequires:   libgda-devel >= 0.91.0
> BuildRequires:   gtk2-devel >= 1.3.6
> BuildRequires:   libbonoboui-devel
> BuildRequires:   libglade2-devel
> 
> %description
> libgnomedb is a library that eases the task of writing
> gnome database programs.
> 
> %package devel
> Summary:         Development libraries and header files for
> libgnomedb.
> Group:           Development/Libraries
> Requires:        %name = %{version}
> Requires:        pkgconfig >= 0.8
> Requires:        libgnomeui >= 1.103.0
> Requires:        libgnomeui-devel >= 1.103.0
> Requires:        libgda >= 0.91.0
> Requires:        libgda-devel >= 0.91.0
> Requires:        gtk2 >= 1.3.6
> Requires:        gtk2-devel >= 1.3.6
> Requires:        libbonoboui
> Requires:        libbonoboui-devel
> Requires:        libglade2
> Requires:        libglade2-devel
> 
> %description devel
> This package contains the header files and libraries needed to
> write
> or compile programs that use libgda.
> 
> %prep
> %setup -q -n %{name}-%{version}
> 
> %build
> %configure --disable-gtk-doc
> make %{?_smp_mflags}
> 
> %install
> rm -rf %{buildroot}
> %makeinstall
> 
> %find_lang libgnomedb-2
> 
> %post
> /sbin/ldconfig
> export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
> 
> for SCHEMA in %{_sysconfdir}/gconf/schemas/libgnomedb.schemas; do
> /usr/bin/gconftool-2 --makefile-install-rule $SCHEMA > /dev/null
> 2>&1
> done
> 
> %postun -p /sbin/ldconfig
> 
> %post devel
> if which scrollkeeper-update >/dev/null 2>&1; then
> scrollkeeper-update; fi
> 
> %postun devel
> if which scrollkeeper-update >/dev/null 2>&1; then
> scrollkeeper-update; fi
> 
> %clean
> rm -rf %{buildroot}
> 
> %files -f libgnomedb-2.lang
> %defattr(-,root,root)
> %doc AUTHORS COPYING ChangeLog README NEWS
> %{_bindir}/*
> %{_datadir}/control-center-2.0/capplets/*
> %{_datadir}/mime-info/*
> %{_datadir}/pixmaps/libgnomedb
> %{_datadir}/gnome-db/ui/db-shell.xml
> %{_libdir}/*.so.*
> %{_libdir}/bonobo/monikers/*.so
> %{_libdir}/bonobo/monikers/*.a
> %{_libdir}/bonobo/monikers/*.la
> %{_libdir}/bonobo/servers/*
> %{_libdir}/libglade/2.0/*
> %{_libexecdir}/*
> %config(noreplace) %{_sysconfdir}/gconf/schemas/*
> 
> %files devel
> %defattr(-,root,root)
> %doc %{_datadir}/gtk-doc/html/libgnomedb
> %{_datadir}/omf/*
> %{_includedir}/libgnomedb
> %{_libdir}/*.a
> %{_libdir}/*.la
> %{_libdir}/*.so
> %{_libdir}/pkgconfig/*
> 
> 
> %changelog
> * Tue Jan 28 2003 Yanko Kaneti <yaneti delcera com>
> - Package and add the omf/scrollkeeper bits.
> - --disable-gtk-doc to configure because the generated docs are in
> the tarball
> 
> * Mon Aug 19 2002 Ben Liblit <liblit acm org>
> - Fixed version number substitutions
> - Updated files list to match what "make install" actually installs
> - Added URL tag pointing to GNOME-DB project's web site
> 
> * Mon Feb 25 2002 Chris Chabot <chabotc reviewboard com>
> - Cleaned up formatting
> - Added requirements
> 
> * Thu Feb 21 2002 Chris Chabot <chabotc reviewboard com>
> - Initial spec file
>  

there is a more generic solution to this

I am not at my box so I cant give the exact syntax, but you need to
put a %define along the lines of

%define _unpackaged_files_terminate_build       0
%define _missing_doc_files_terminate_build      0

Also see this for an explanation

http://rpm.redhat.com/hintskinks/unpackaged/



__________________________________________________
Yahoo! Plus - For a better Internet experience
http://uk.promotions.yahoo.com/yplus/yoffer.html



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]