Java Mailing List Archive

http://www.redhatconfig.com/

Home » Mandriva Cooker »

[Cooker] Re: last rpm broken regarding %files section

Pixel

2008-06-11

Replies: Find Java Web Hosting

Author LoginPost Reply
Olivier Thauvin <nanardon@(protected):

> [nanardon@(protected)
> "rpm -b" is deprecated, use "rpmbuild -b"
> erreur: Missing %files for subpackage postgresql
>
> This is clearly a change in rpm behavior. For age, the rules as been: any
> binary packages can exists, only packages having %files section are
> generated.

but is there any reason for this?

> This changes will probably deny to us to build many packages, including rpm
> not coming from mandriva.

in any case, fixing this is really simple, see below.

but even if it's simple, if it's too much work to fix cooker packages
regarding this, we'll disable the patch.

as for non-mandriva packages, that's another issue.
we could disable this error if %release doesn't match %distsuffix ?


--- postgresql8.3.spec  (revision 217878)
+++ postgresql8.3.spec  (working copy)
@@(protected) @@
server, you need this package. You also need to install this package
if you're installing the postgresql-server package.

+%if %produce_client
%package -n %{bname}
Summary:  PostgreSQL client programs and libraries
Group:    Databases
@@(protected) @@
If you want to manipulate a PostgreSQL database on a remote PostgreSQL
server, you need this package. You also need to install this package
if you're installing the postgresql-server package.
+%endif

%package -n  %{libname}
Summary:  The shared libraries required for any PostgreSQL clients
@@(protected) @@
you're installing postgresql-server, you need to install this
package.

+%if %produce_devel
%package  -n %{bname}-devel
Summary:  PostgreSQL development header files and libraries
Group:    Development/Databases
@@(protected) @@
develop applications which will interact with a PostgreSQL server. If
you're installing postgresql-server, you need to install this
package.
+%endif

%package  pl
Summary:  Procedurals languages for PostgreSQL
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.