Macros in %files

Dan Nicholson dbn.lists at gmail.com
Fri Nov 14 00:38:53 UTC 2008


On Thu, Nov 13, 2008 at 2:47 PM, Orion Poplawski <orion at cora.nwra.com> wrote:
> I'm reworking my plplot.spec and seeing the following build failure:
>
> Processing files: plplot-5.9.0-2.svn8985.fc11
> + exit 0
> error: File must begin with "/": %{python_sitearch}/_plplotcmodule.so
>
> spec has:
>
> %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from
> distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
>
> at the top, and then:
>
> %files
> %defattr(-,root,root,-)
> %{_docdir}/plplot-%{version}/
> %{_bindir}/plm2gif
> %{_bindir}/plpr
> %{_bindir}/pltek
> %{_bindir}/pstex2eps
> %{python_sitearch}/_plplotcmodule.so
>
> This has always worked before.
>
> Problems started showing up after I started using %bcond_without directives.

You can try adding %trace to the top of the spec file and see if
everything is expanding the way you'd expect.

--
Dan




More information about the fedora-devel-list mailing list