Re: OT - advice on RPM spec file issue

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

 



On 31/10/2007, Mike Martin <redtux1@xxxxxxxxxxxxxx> wrote:
> Hi I am trying trying to rebuild an rpm from source using a spec file
> that previously worked
>
> The error is
>
>
>
> This is the last part of the spec file
>
> %install
> #%{__rm} -rf %{buildroot} _docs
> %makeinstall \
>    INCDIR=%{buildroot}%{_includedir}/ffmpeg \
>    SHLIBDIR=%{buildroot}%{_libdir} \
>    LIBDIR=%{buildroot}%{_libdir} \
>    BINDIR=%{buildroot}%{_bindir} \
>    MANDIR=%{buildroot}%{_mandir} \
>    DOCDIR=%{buildroot}%{_docdir}
>
> # Remove unwanted files from the included docs
> %{__cp} -a doc _docs
> %{__rm} -rf _docs/{Makefile,*.texi,*.pl}
>
> # The  is now at , so provide
> # a compatibility symlink
> %{__mkdir_p} %{buildroot}%{_includedir}/postproc/
> %{__ln_s}    ../ffmpeg/postprocess.h \
>              %{buildroot}%{_includedir}/postproc/postprocess.h
>
>
> %clean
> %{__rm} -rf %{buildroot}
>
>
> %post
> /sbin/ldconfig
> chcon -t textrel_shlib_t
> %{_libdir}/libav{avcodec,avformat,avutil,swscale}.so.*.*.* \
>     &>/dev/null || :
>
> %postun -p /sbin/ldconfig
>
>
> %post libpostproc -p /sbin/ldconfig
>
> %postun libpostproc -p /sbin/ldconfig
>
>
> %files
> %defattr(-, root, root, 0755)
> %doc Changelog COPYING CREDITS README #### if I comment this line out it builds
> %{_bindir}/*
> %{_libdir}/*.so.*
> %exclude %{_libdir}/libpostproc.so*
> %{_libdir}/vhook/
> %{_mandir}/man1/*
>
> %files devel
> %defattr(-, root, root, 0755)
> #%exclude %{_docdir}/Changelog %{_docdir}/COPYING %{_docdir}/CREDITS
> %{_docdir}/README ### tried this - no effect
> #%doc _docs/*
> %{_includedir}/ffmpeg/
> #%{_libdir}/*.a
> %{_libdir}/*.so
> %{_libdir}/pkgconfig/*.pc
> %exclude %{_libdir}/pkgconfig/libpostproc.pc
>
> %files libpostproc
> %defattr(-, root, root, 0755)
> %{_includedir}/postproc/
> %{_libdir}/libpostproc.so*
> %{_libdir}/pkgconfig/libpostproc.pc
>
>
> Any ideas appreciated
>


Ignore - first rule of mailing lists - as soon as you post, you find
the solution - COPYNG was changed to COPYING.GPL and COPYING.LGPL so
it failed higher up

Now fixed

Apologies

-- 
fedora-test-list mailing list
fedora-test-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-test-list

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux