* [devel] %postun in spec
@ 2008-11-27 14:49 Pavel Solntsev
2008-11-27 14:56 ` Dmitry V. Levin
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Solntsev @ 2008-11-27 14:49 UTC (permalink / raw)
To: ALT Linux Team development discussions
Можно ли в разделе %postun спек файла вставить нечто вроде
%postun
%clean_menus
if [ -d /usr/share/doc/%name-%version ]; then
rm -fr /usr/share/doc/%name-%version
fi
# желательно удалять директорию /usr/share/doc/%name-%version при
обновлении программы
# замечал что очень часто при сносе пакета остаються пустые директории
в /usr/share/doc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] %postun in spec
2008-11-27 14:49 [devel] %postun in spec Pavel Solntsev
@ 2008-11-27 14:56 ` Dmitry V. Levin
2008-11-27 15:15 ` Pavel Solntsev
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry V. Levin @ 2008-11-27 14:56 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 883 bytes --]
On Thu, Nov 27, 2008 at 04:49:25PM +0200, Pavel Solntsev wrote:
> Можно ли в разделе %postun спек файла вставить нечто вроде
>
> %postun
> %clean_menus
%clean_menus уже устарел и его надо убрать
> if [ -d /usr/share/doc/%name-%version ]; then
> rm -fr /usr/share/doc/%name-%version
> fi
Никогда так не делайте.
> # желательно удалять директорию /usr/share/doc/%name-%version при
> обновлении программы
> # замечал что очень часто при сносе пакета остаються пустые директории
> в /usr/share/doc
Для того, чтобы пустые каталоги /usr/share/doc/%name-%version удалялись
при обновлении/удалении пакетов, необходимо и достаточно не забывать
упаковывать эти каталоги во всех пакетах, которые содержат свои файлы
в этих каталогах. Это правило справедливо и для других каталогов,
совместно используемых несколькими подпакетами одного пакета.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] %postun in spec
2008-11-27 14:56 ` Dmitry V. Levin
@ 2008-11-27 15:15 ` Pavel Solntsev
2008-11-27 16:23 ` Andrey Rahmatullin
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Solntsev @ 2008-11-27 15:15 UTC (permalink / raw)
To: ALT Linux Team development discussions
Dmitry V. Levin пишет:
> On Thu, Nov 27, 2008 at 04:49:25PM +0200, Pavel Solntsev wrote:
>
>> Можно ли в разделе %postun спек файла вставить нечто вроде
>>
>> %postun
>> %clean_menus
>>
>
> %clean_menus уже устарел и его надо убрать
>
напомните пожалуйста что тепер указывается в секиях %post* вместо
устаревших? или все необходимые
команды внесены в сам макрос %post*
>
>> if [ -d /usr/share/doc/%name-%version ]; then
>> rm -fr /usr/share/doc/%name-%version
>> fi
>>
>
> Никогда так не делайте.
>
>
спасибо за предупреждение. Нибуду.
>> # желательно удалять директорию /usr/share/doc/%name-%version при
>> обновлении программы
>> # замечал что очень часто при сносе пакета остаються пустые директории
>> в /usr/share/doc
>>
>
> Для того, чтобы пустые каталоги /usr/share/doc/%name-%version удалялись
> при обновлении/удалении пакетов, необходимо и достаточно не забывать
> упаковывать эти каталоги во всех пакетах, которые содержат свои файлы
> в этих каталогах. Это правило справедливо и для других каталогов,
> совместно используемых несколькими подпакетами одного пакета.
>
>
файлы и каталоги создаются макросом %dos. Наличие его в секции %files
является ли достаточным условием для выполнения ваших рекомендаций или нет?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [devel] %postun in spec
2008-11-27 15:15 ` Pavel Solntsev
@ 2008-11-27 16:23 ` Andrey Rahmatullin
0 siblings, 0 replies; 4+ messages in thread
From: Andrey Rahmatullin @ 2008-11-27 16:23 UTC (permalink / raw)
To: devel
On Thu, Nov 27, 2008 at 05:15:47PM +0200, Pavel Solntsev wrote:
> напомните пожалуйста что тепер указывается в секиях %post* вместо
> устаревших?
Вместо устаревших - ничего.
> или все необходимые команды внесены в сам макрос %post*
Это не макрос ни разу.
> файлы и каталоги создаются макросом %dos.
%doc
> Наличие его в секции %files
> является ли достаточным условием для выполнения ваших рекомендаций или нет?
Зависит от того, что ещё там указано. Если только
%doc всякие файлы из каталога с исходниками
то да.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-11-27 16:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-27 14:49 [devel] %postun in spec Pavel Solntsev
2008-11-27 14:56 ` Dmitry V. Levin
2008-11-27 15:15 ` Pavel Solntsev
2008-11-27 16:23 ` Andrey Rahmatullin
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