ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] %doc in %files in spec
@ 2002-04-15 13:07 Vyt
  2002-04-15 13:10 ` Sergey Bolshakov
  2002-04-15 13:44 ` Yura Zotov
  0 siblings, 2 replies; 6+ messages in thread
From: Vyt @ 2002-04-15 13:07 UTC (permalink / raw)
  To: devel

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

Hello, All!

Не получается, самому, посоветуйте, пожалуйста:

В исходнике пакета есть каталог configs:
drwxr-xr-x    2 vyt      vyt           128 Фев 27 14:06 CVS
-rw-r--r--    1 vyt      vyt           267 Сен 29  2000 agents_list.xml
-rw-r--r--    1 vyt      vyt          2511 Окт 11  2000 developer.xml
-rw-r--r--    1 vyt      vyt          2017 Окт 11  2000 home.xml
-rw-r--r--    1 vyt      vyt          1485 Окт 11  2000 intranet.xml
-rw-r--r--    1 vyt      vyt          2479 Окт 11  2000 isp.xml
-rw-r--r--    1 vyt      vyt          2090 Окт 11  2000 standard.xml

Нужно упаковать файлы *.xml в %_docdir/%name-%version/configs.

Пишу в %install 
...
%__mkdir -p $RPM_BUILD_ROOT%_docdir/%name-%version/configs
install -m 644 configs/*.xml $RPM_BUILD_ROOT%_docdir/%name-%version/configs
...
после чего в %files
%files
%defattr(-,root,root)
#%doc %dir %_docdir/%name-%version
%doc README ssl/* 
%docdir configs/*.xml
#%doc ssl/*
#%doc %_docdir/%name-%version/*
#%doc %_docdir/%name-%version
#%docdir configs
#%doc %_docdir/%name-%version/configs
#%doc configs/*.xml

закомменарены неудачные попытки. Подскажите, пожалуйста,
правильную конструкцию. Или место, где можно почитать о макросах
%doc и %docdir.

В логах наблюдается в начале %files 
"rm -rf %_docdir/%name-%version"

не едут лыжи...

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru

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

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

* Re: [devel] %doc in %files in spec
  2002-04-15 13:07 [devel] %doc in %files in spec Vyt
@ 2002-04-15 13:10 ` Sergey Bolshakov
  2002-04-15 13:33   ` Vyt
  2002-04-15 13:44 ` Yura Zotov
  1 sibling, 1 reply; 6+ messages in thread
From: Sergey Bolshakov @ 2002-04-15 13:10 UTC (permalink / raw)
  To: devel

## On Mon, 15 Apr 2002 17:07:59 +0400
## you wrote:

 V> Hello, All!

 V> Не получается, самому, посоветуйте, пожалуйста:

 V> В исходнике пакета есть каталог configs:
 V> drwxr-xr-x    2 vyt      vyt           128 Фев 27 14:06 CVS
 V> -rw-r--r--    1 vyt      vyt           267 Сен 29  2000 agents_list.xml
 V> -rw-r--r--    1 vyt      vyt          2511 Окт 11  2000 developer.xml
 V> -rw-r--r--    1 vyt      vyt          2017 Окт 11  2000 home.xml
 V> -rw-r--r--    1 vyt      vyt          1485 Окт 11  2000 intranet.xml
 V> -rw-r--r--    1 vyt      vyt          2479 Окт 11  2000 isp.xml
 V> -rw-r--r--    1 vyt      vyt          2090 Окт 11  2000 standard.xml

 V> Нужно упаковать файлы *.xml в %_docdir/%name-%version/configs.

 V> Пишу в %install 
 V> ...
 V> %__mkdir -p $RPM_BUILD_ROOT%_docdir/%name-%version/configs
 V> install -m 644 configs/*.xml $RPM_BUILD_ROOT%_docdir/%name-%version/configs
 V> ...
 V> после чего в %files
 V> %files
 V> %defattr(-,root,root)
 V> #%doc %dir %_docdir/%name-%version
 V> %doc README ssl/* 
 V> %docdir configs/*.xml
 V> #%doc ssl/*
 V> #%doc %_docdir/%name-%version/*
 V> #%doc %_docdir/%name-%version
 V> #%docdir configs
 V> #%doc %_docdir/%name-%version/configs
 V> #%doc configs/*.xml

 V> закомменарены неудачные попытки. Подскажите, пожалуйста,
 V> правильную конструкцию. Или место, где можно почитать о макросах
 V> %doc и %docdir.

%doc configs

-- 
	Трули ерз, Сергей.

"[Open Source] programming is like sex, one mistake and you have to support it
for the rest of your life."  ---  M. Sinz, CBM Inc.



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

* Re: [devel] %doc in %files in spec
  2002-04-15 13:10 ` Sergey Bolshakov
@ 2002-04-15 13:33   ` Vyt
  2002-04-15 13:36     ` Dmitry V. Levin
  0 siblings, 1 reply; 6+ messages in thread
From: Vyt @ 2002-04-15 13:33 UTC (permalink / raw)
  To: devel

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

On 15 Apr 2002 16:10:47 +0300
Sergey Bolshakov <s.bolshakov@belcaf.com> wrote:

> 
> ## On Mon, 15 Apr 2002 17:07:59 +0400
> ## you wrote:
> 
>  V> Hello, All!
> 
>  V> Не получается, самому, посоветуйте, пожалуйста:
> 
>  V> В исходнике пакета есть каталог configs:
>  V> drwxr-xr-x    2 vyt      vyt           128 Фев 27 14:06 CVS
>  V> -rw-r--r--    1 vyt      vyt           267 Сен 29  2000 agents_list.xml
>  V> -rw-r--r--    1 vyt      vyt          2511 Окт 11  2000 developer.xml
>  V> -rw-r--r--    1 vyt      vyt          2017 Окт 11  2000 home.xml
>  V> -rw-r--r--    1 vyt      vyt          1485 Окт 11  2000 intranet.xml
>  V> -rw-r--r--    1 vyt      vyt          2479 Окт 11  2000 isp.xml
>  V> -rw-r--r--    1 vyt      vyt          2090 Окт 11  2000 standard.xml
> 
>  V> Нужно упаковать файлы *.xml в %_docdir/%name-%version/configs.
> 
>  V> Пишу в %install 
>  V> ...
>  V> %__mkdir -p $RPM_BUILD_ROOT%_docdir/%name-%version/configs
>  V> install -m 644 configs/*.xml $RPM_BUILD_ROOT%_docdir/%name-%version/configs
>  V> ...
>  V> после чего в %files
>  V> %files
>  V> %defattr(-,root,root)
>  V> #%doc %dir %_docdir/%name-%version
>  V> %doc README ssl/* 
>  V> %docdir configs/*.xml
>  V> #%doc ssl/*
>  V> #%doc %_docdir/%name-%version/*
>  V> #%doc %_docdir/%name-%version
>  V> #%docdir configs
>  V> #%doc %_docdir/%name-%version/configs
>  V> #%doc configs/*.xml
> 
>  V> закомменарены неудачные попытки. Подскажите, пожалуйста,
>  V> правильную конструкцию. Или место, где можно почитать о макросах
>  V> %doc и %docdir.
> 
> %doc configs

Спасибо, но мне нужно только *.xml из configs, без подкаталога
CVS. Может, удалять configs/CVS на стадии %prep ?

<skipped>

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru

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

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

* Re: [devel] %doc in %files in spec
  2002-04-15 13:33   ` Vyt
@ 2002-04-15 13:36     ` Dmitry V. Levin
  2002-04-15 14:25       ` Vyt
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry V. Levin @ 2002-04-15 13:36 UTC (permalink / raw)
  To: ALT Devel Mailing list

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

On Mon, Apr 15, 2002 at 05:33:58PM +0400, Vyt wrote:
> > %doc configs
> 
> Спасибо, но мне нужно только *.xml из configs, без подкаталога
> CVS. Может, удалять configs/CVS на стадии %prep ?

Если в пакете есть (ненужные) CVS, то не помешает
find -type d -name CVS -print0 |
	xargs -r0 rm -rf --


Regards,
	Dmitry

+-------------------------------------------------------------------------+
Dmitry V. Levin     mailto://ldv@alt-linux.org
ALT Linux Team      http://www.altlinux.com/
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.

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

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

* Re: [devel] %doc in %files in spec
  2002-04-15 13:07 [devel] %doc in %files in spec Vyt
  2002-04-15 13:10 ` Sergey Bolshakov
@ 2002-04-15 13:44 ` Yura Zotov
  1 sibling, 0 replies; 6+ messages in thread
From: Yura Zotov @ 2002-04-15 13:44 UTC (permalink / raw)
  To: devel

On Mon, Apr 15, 2002 at 05:07:59PM +0400, Vyt wrote:
> Hello, All!
> 
> Не получается, самому, посоветуйте, пожалуйста:
> 

<skip>

> не едут лыжи...

Я делаю так:

%doc configs/

и каталог вместе с файлами попадает в
/usr/share/doc/%name-%version/

Никаких install не делаю.

Хотя, может это не правильно?

--
Юрий А. Зотов



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

* Re: [devel] %doc in %files in spec
  2002-04-15 13:36     ` Dmitry V. Levin
@ 2002-04-15 14:25       ` Vyt
  0 siblings, 0 replies; 6+ messages in thread
From: Vyt @ 2002-04-15 14:25 UTC (permalink / raw)
  To: devel

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

On Mon, 15 Apr 2002 17:36:58 +0400
"Dmitry V. Levin" <ldv@alt-linux.org> wrote:

> On Mon, Apr 15, 2002 at 05:33:58PM +0400, Vyt wrote:
> > > %doc configs
> > 
> > Спасибо, но мне нужно только *.xml из configs, без подкаталога
> > CVS. Может, удалять configs/CVS на стадии %prep ?
> 
> Если в пакете есть (ненужные) CVS, то не помешает
> find -type d -name CVS -print0 |
> 	xargs -r0 rm -rf --

Спасибо, классный вариант.

<skipped>

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru

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

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

end of thread, other threads:[~2002-04-15 14:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-15 13:07 [devel] %doc in %files in spec Vyt
2002-04-15 13:10 ` Sergey Bolshakov
2002-04-15 13:33   ` Vyt
2002-04-15 13:36     ` Dmitry V. Levin
2002-04-15 14:25       ` Vyt
2002-04-15 13:44 ` Yura Zotov

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