Mailinglist Archive: opensuse-buildservice (181 mails)
| < Previous | Next > |
Re: [opensuse-buildservice] Fedora x86_64 issues
- From: John Pye <john@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 02 Jul 2007 01:22:03 +1000
- Message-id: <4687C69B.9090409@xxxxxxxxxxxxxxxxxx>
Instead of using %{_libdir}/python*/site-packages it would preferable to
query python directly to obtain these file locations, and define an RPM
macro with their value, eg
For example:
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
[...]
%files
[...]
%{python_sitelib}/freesteam.py*
Regarding the split of file locations, perhaps you are not correctly
passing your value of %_libdir to the build install script, whatever
that is. The default value of /usr/lib is being used instead of the
64-bit platform value which is /usr/lib64.
Cheers
JP
Andrew Wafaa wrote:
> Afternoon all,
>
> I'm having issues building against all Fedora x86_64 targets. All Fedora x86, SUSE x86_64/x86 targets build fine.
>
> Basically my problem is to do with python and as it is split between /usr/lib and /usr/lib64, below are the two sections that it complains of ' Installed (but unpackaged) file(s) found:' I'm most likely doing something stupid, but for the life of me I can't work it out. I would really appreciate any help.
>
> %files -n %{name}-web
> %defattr(-,root,root,0755)
> %if 0%{?fedora_version}
> %ifarch %ix86
> %defattr(-,root,root,0755)
> %{prefix}/share/bongo/htdocs/
> %{prefix}/share/bongo/templates/
> %{_libdir}/python*/site-packages/bongo/hawkeye/
> %{_libdir}/python*/site-packages/bongo/dragonfly/
> %else
> %ifarch %x86_64
> %{prefix}/share/bongo/htdocs/
> %{prefix}/share/bongo/templates/
> /usr/lib/python*/site-packages/bongo/dragonfly/
> /usr/lib/python*/site-packages/bongo/hawkeye/
> %endif
> %endif
> %{prefix}/share/bongo/htdocs/
> %{prefix}/share/bongo/templates/
> %{py_sitedir}/bongo/hawkeye/
> %{py_sitedir}/bongo/dragonfly/
> %endif
>
> %files -n python-%{name}
> %defattr(-,root,root,0755)
> %if 0%{?fedora_version}
> %ifarch %ix86
> %{_libdir}/python*/site-packages/bongo/*
> %else
> %ifarch %x86_64
> /usr/lib/python*/site-packages/bongo/*
> %{_libdir}/python*/site-packages/bongo/bootstrap.a
> %{_libdir}/python*/site-packages/bongo/bootstrap.la
> %{_libdir}/python*/site-packages/bongo/bootstrap.so
> %{_libdir}/python*/site-packages/bongo/libs.a
> %{_libdir}/python*/site-packages/bongo/libs.la
> %{_libdir}/python*/site-packages/bongo/libs.so
> %endif
> %endif
> %{py_sitedir}/bongo
> %endif
>
> Many thanks,
>
> Andy
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
query python directly to obtain these file locations, and define an RPM
macro with their value, eg
For example:
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
[...]
%files
[...]
%{python_sitelib}/freesteam.py*
Regarding the split of file locations, perhaps you are not correctly
passing your value of %_libdir to the build install script, whatever
that is. The default value of /usr/lib is being used instead of the
64-bit platform value which is /usr/lib64.
Cheers
JP
Andrew Wafaa wrote:
> Afternoon all,
>
> I'm having issues building against all Fedora x86_64 targets. All Fedora x86, SUSE x86_64/x86 targets build fine.
>
> Basically my problem is to do with python and as it is split between /usr/lib and /usr/lib64, below are the two sections that it complains of ' Installed (but unpackaged) file(s) found:' I'm most likely doing something stupid, but for the life of me I can't work it out. I would really appreciate any help.
>
> %files -n %{name}-web
> %defattr(-,root,root,0755)
> %if 0%{?fedora_version}
> %ifarch %ix86
> %defattr(-,root,root,0755)
> %{prefix}/share/bongo/htdocs/
> %{prefix}/share/bongo/templates/
> %{_libdir}/python*/site-packages/bongo/hawkeye/
> %{_libdir}/python*/site-packages/bongo/dragonfly/
> %else
> %ifarch %x86_64
> %{prefix}/share/bongo/htdocs/
> %{prefix}/share/bongo/templates/
> /usr/lib/python*/site-packages/bongo/dragonfly/
> /usr/lib/python*/site-packages/bongo/hawkeye/
> %endif
> %endif
> %{prefix}/share/bongo/htdocs/
> %{prefix}/share/bongo/templates/
> %{py_sitedir}/bongo/hawkeye/
> %{py_sitedir}/bongo/dragonfly/
> %endif
>
> %files -n python-%{name}
> %defattr(-,root,root,0755)
> %if 0%{?fedora_version}
> %ifarch %ix86
> %{_libdir}/python*/site-packages/bongo/*
> %else
> %ifarch %x86_64
> /usr/lib/python*/site-packages/bongo/*
> %{_libdir}/python*/site-packages/bongo/bootstrap.a
> %{_libdir}/python*/site-packages/bongo/bootstrap.la
> %{_libdir}/python*/site-packages/bongo/bootstrap.so
> %{_libdir}/python*/site-packages/bongo/libs.a
> %{_libdir}/python*/site-packages/bongo/libs.la
> %{_libdir}/python*/site-packages/bongo/libs.so
> %endif
> %endif
> %{py_sitedir}/bongo
> %endif
>
> Many thanks,
>
> Andy
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |