List Info

Thread: Python based program / Files section




Python based program / Files section
user name
2006-10-20 06:52:31
Hi everybody,
 
as quiet a n00b in packaging, I;m in progress of packaging gnome-sudoku (will be found in games:puzzle.
The package works good so far, EXCEPT for opensuse-factory.
 
The reason is tracked down, I'm just missing a good solution, that I might like (introducing a variable using an %if construct is not what I'd like)
 
So the problem:
The program get's installed to
/usr/lib/python2.4/site-packages/gnome_sudoku
 
and thus, in my files section, I have
%{_prefix}/lib/python2.4/site-packages/gnome_sudoku
 
But as Factory switched to Python 2.5, of course the install path is different (the install script realizez it, and copies it to [...]python2.5[...]
 
How can I adjust the %Files - Section to reflect this 'Multi-Version' aware?
 
Thanks for your help!
Dominique
Python based program / Files section
user name
2006-10-20 07:00:43
Dominique Leuenberger wrote:
> Hi everybody,

Hi,


> and thus, in my files section, I have
> %/lib/python2.4/site-packages/gnome_sudoku
>  
> But as Factory switched to Python 2.5, of course the
install path is
> different (the install script realizez it, and copies
it to
> [...]python2.5[...]

Use %py_sitedir or the like (see /usr/lib/rpm/macros).


Michal
------------------------------------------------------------
---------
To unsubscribe, e-mail: opensuse-packaging+unsubscribeopensuse.org
For additional commands, e-mail: opensuse-packaging+helpopensuse.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )