On Wed, 8 Jul 2009, Yury V. Zaytsev wrote:

On Wed, 2009-07-08 at 13:20 +0200, Dag Wieers wrote:
On Wed, 8 Jul 2009, Tom G. Christensen wrote:

To filter the requires list you can put something like this in %prep section
(from evolution28.spec):

# Filter auto-requires
cat >  find-requires-%{name} <<EOT
#!/bin/sh
%{__find_requires} | egrep -v 'things you dont want to require'
exit 0
EOT
chmod +x find-requires-%{name}
%define __find_requires %{_builddir}/find-requires-%{name}

Yes, and it is butt-ugly :) I would like to have a set of macros for
making SPEC files more simple and this would be one of them.

Errr... http://dag.wieers.com/rpm/packages/rpm-macros-rpmforge/ ?

Yes, but we're not using them because we decided that SPEC files should work by default without any macros. rpm-macros-rpmforge was more an experiment.

I guess the whole notion of macros was buried after Fedora flat out rejected the use of them for their packages. We didn't want to make it harder for people to take SPEC files and use them elsewhere.

I still stand by that decision, however some more rpm (macro) development by Red Hat, and backporting those features to RHEL3, RHEL4 and RHEL5 could be very useful for packagers...

--
--   dag wieers,  [email protected],  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]
_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users

Reply via email to