[ATrpms-users] develfiles.list missing when building src RPMs

Big Wave Dave bigwavedave at gmail.com
Mon Aug 27 23:00:46 CEST 2007


On 8/27/07, Phil Schaffner <Philip.R.Schaffner at nasa.gov> wrote:
> On Mon, 2007-08-27 at 14:25 -0300, Paulo Cavalcanti wrote:
> ...
> > It is not a bug. Note that the macros have never been officially
> > released.
> > The unofficial copy available does not create develfiles.list
>
> Would be nice to see how this is done "officially".  The missing macros
> seem to result in numerous FAQs (although "numerous frequently ..."
> seems "excessively redundant".  :-).

I figured there was an "official" way, that I was just missing

> > It is possible to alter the spec file to create it, though. Please,
> > see some previous posts about ffmpeg (+- 2month ago).
>
> If searching this list you won't find it.  Was on atrpms-devel:
>
> http://lists.atrpms.net/pipermail/atrpms-devel/2007-June/001531.html

I did find some of that info before... I just figured hacking the spec
file must not be needed.  In other venues, the src file is often just
needed to be rebuilt.  I'm sure Axel would not want to have to
constantly update his macros, and cause even more confusion among
people.  He seems quite smart to me, so I'm sure he has many valid
reasons for not publishing them.

Regardles... I have edited (per the linked archive) my spec file, and
inserted as such:

<snip>
%install
rm -rf %{buildroot}
cd build/generic
%makeinstall
/sbin/ldconfig -n %{buildroot}%{_libdir}
cd %{buildroot}%{_libdir}
for x in `ls *.so.* | grep '\.so\.[^.]*$'`; do
  ln -s $x `echo $x | sed -e's,\.so.*,.so,'`
done
cat > develfiles.list << EOF
%defattr(-,root,root,-)
%{_includedir}/...
%{_libdir}/...
EOF

%clean
rm -rf %{buildroot}

<end snip>

I then ran an "rpmbuild -bb xvidcore.spec" and ended up with the same
error originally posted.  Am I adding this definition in the wrong
section of the spec file?  All the references seem to show it directly
before the "clean" section.

I hope I'm not annoying people with these questions.  I've just not
run into src rpms like this before.

Thanks,
Dave



More information about the atrpms-users mailing list