ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Упаковка питоньих привязок
@ 2005-09-29 20:21 Alexey Rusakov
  2005-09-29 21:12 ` Vladimir Lettiev
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Rusakov @ 2005-09-29 20:21 UTC (permalink / raw)
  To: ALT Devel discussion list

Доброго времени суток.

Небезызвестный браузер Epiphany обзавёлся привязками на Python. К 
сожалению, я не очень представляю, как правильно в спеке описать 
субпакет с привязками, так чтобы он предоставлял python2.4(epiphany). 
Кто-нибудь может помочь советом/примером спека/отсылкой в документацию?

-- 
  Alexey "Ktirf" Rusakov


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] Упаковка питоньих привязок
  2005-09-29 20:21 [devel] Упаковка питоньих привязок Alexey Rusakov
@ 2005-09-29 21:12 ` Vladimir Lettiev
  2005-09-29 22:34   ` Alexey Rusakov
  2005-09-30  5:30   ` Alexey I.Froloff
  0 siblings, 2 replies; 4+ messages in thread
From: Vladimir Lettiev @ 2005-09-29 21:12 UTC (permalink / raw)
  To: ALT Devel discussion list

Alexey Rusakov пишет:
> Доброго времени суток.
> 
> Небезызвестный браузер Epiphany обзавёлся привязками на Python. К 
> сожалению, я не очень представляю, как правильно в спеке описать 
> субпакет с привязками, так чтобы он предоставлял python2.4(epiphany). 
> Кто-нибудь может помочь советом/примером спека/отсылкой в документацию?

Там кажется всё жутко просто. Вот выдержка из спека samba, где есть 
питоньи байндинги к samba:

# Adds python support
%def_enable python

...

%if_enabled python
%setup_python_module samba
%package -n python-module-samba
Summary: This package contains Python bindings to allow you to access 
various aspects of Samba
Group: System/Servers
Autoreq: yes
Requires: %name-common = %version-%release
%endif

...

%if_enabled python
%description -n python-module-samba
This package contains Python bindings to allow you to access various 
aspects of Samba
%endif

...

%if_enabled python
%files -n python-module-samba
%doc source/python/README
%doc source/python/examples
%doc source/python/gprinterdata
%doc source/python/gtdbtool
%doc source/python/gtkdictbrowser.py
%python_sitelibdir/%name
%endif

$ rpmquery -p --provides  python-module-samba-3.0.20-alt2.i586.rpm
python2.4(samba)
python2.4(samba.printerdata)
python-module-samba = 3.0.20-alt2

Другие примеры можно вытащить из любого спека модуля питона.


-- 
С уважением, Владимир Леттиев aka crux <crux@gorodmasterov.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] Упаковка питоньих привязок
  2005-09-29 21:12 ` Vladimir Lettiev
@ 2005-09-29 22:34   ` Alexey Rusakov
  2005-09-30  5:30   ` Alexey I.Froloff
  1 sibling, 0 replies; 4+ messages in thread
From: Alexey Rusakov @ 2005-09-29 22:34 UTC (permalink / raw)
  To: ALT Devel discussion list

Vladimir Lettiev wrote:

>Alexey Rusakov пишет:
>  
>
>>Небезызвестный браузер Epiphany обзавёлся привязками на Python. К 
>>сожалению, я не очень представляю, как правильно в спеке описать 
>>субпакет с привязками, так чтобы он предоставлял python2.4(epiphany). 
>>Кто-нибудь может помочь советом/примером спека/отсылкой в документацию?
>>    
>>
>Там кажется всё жутко просто.
>
Наверное. Но нужная зависимость - не получается :(
%setup_python_module почему-то не срабатывает. Хотя rpm-build-python стоит.

-- 
  Alexey "Ktirf" Rusakov


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] Упаковка питоньих привязок
  2005-09-29 21:12 ` Vladimir Lettiev
  2005-09-29 22:34   ` Alexey Rusakov
@ 2005-09-30  5:30   ` Alexey I.Froloff
  1 sibling, 0 replies; 4+ messages in thread
From: Alexey I.Froloff @ 2005-09-30  5:30 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 839 bytes --]

* Vladimir Lettiev <crux@> [050930 01:09]:
> > Небезызвестный браузер Epiphany обзавёлся привязками на Python. К 
> > сожалению, я не очень представляю, как правильно в спеке описать 
> > субпакет с привязками, так чтобы он предоставлял python2.4(epiphany). 
> > Кто-нибудь может помочь советом/примером спека/отсылкой в документацию?
> Там кажется всё жутко просто. Вот выдержка из спека samba, где есть 
> питоньи байндинги к samba:
Я так понял, это немного другой случай.  В samba - питоний
модуль, слинкованый с libsmbclient, а в Epiphany (а ещё в Vim и
X-Chat) - возможность скриптования на python, т.е. встроенный
интерпретатор...

-- 
Regards, Sir Raorn.
-------------------
Господа, если встретите переводчика [k3b], пригласите его в kde-russian@ на
принудительную консультацию, пожалуйста.
		-- avp in sisyphus@

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-30  5:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-29 20:21 [devel] Упаковка питоньих привязок Alexey Rusakov
2005-09-29 21:12 ` Vladimir Lettiev
2005-09-29 22:34   ` Alexey Rusakov
2005-09-30  5:30   ` Alexey I.Froloff

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git