BuildRequires: redhat-rpm-config

Toshio Kuratomi a.badger at gmail.com
Thu Nov 14 16:12:23 UTC 2013


On Thu, Nov 14, 2013 at 02:18:05PM +0000, Richard W.M. Jones wrote:
> On Thu, Nov 14, 2013 at 05:36:34PM +0800, Mathieu Bridon wrote:
> > For example, if right now you have:
> > 
> >     %dir %{python_sitelib}/mymodule
> >     %{python_sitelib}/mymodule/*.py
> >     %{python_sitelib}/mymodule/*.pyc
> >     %{python_sitelib}/mymodule/*.pyo
> > 
> > You could replace that by:
> > 
> >     %{python_sitelib}/mymodule
> 
> Unfortunately the Python files are placed directly in
> %{python_sitelib} (not in a module subdirectory).  ie: the spec file
> has:
> 
> %files -n python-%{name}
> %doc python/examples/*.py
> %{python_sitearch}/*
> %{python_sitelib}/*.py
> %{python_sitelib}/*.pyc
> %{python_sitelib}/*.pyo
> 
> I have no idea if this packaging is correct or not.
> 
That is a somewhat odd split (somethings in sitearch and some things in
sitelib)....

If there's nothing else in python_sitelib besides this module, you can
change the glob there:

  %{python_sitearch}/*
  %{python_sitelib}/*

I'd have to look at the actual package to know whether that would cause
problems.

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20131114/fd1a6115/attachment.sig>


More information about the devel mailing list