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

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