SPECS: lstat.spec - make %{_wwwrootdir}/lstat/doc symlink to %{_do...

Elan Ruusamäe glen at delfi.ee
Fri Jun 3 11:41:48 CEST 2005


well. imho this is wrong.

documentation that application uses should be still bundled with package main 
files, as if i install package --exclude docs, i get partial package.

as this is against for point one from devel-hints-en.txt:

[...]
Documentation (%doc files):

Every package should, whenever possible, contain documentation files.
Documentation files should be marked with %doc, which makes it possible
to refrain from installing them by passing the --exclude-docs rpm
option, if that's what the user desires. You shouldn't:

- mark files crucial to the program's functionality as %doc
- mark man files as %doc (it gets done automatically)
- compress doc files (it gets done automatically and can be disabled
  with %define no_compress_doc when necessary)
- add files that contain the same documentation in various formats
- add standard license files, contained in the common-licenses package
[...]

and perhaps consider creating -doc subpackage, for folks having --exclude docs 
and still get those documentation files used by app?




On Friday 03 June 2005 12:09, gotar wrote:
> Author: gotar                        Date: Fri Jun  3 09:09:43 2005 GMT
> Module: SPECS                         Tag: HEAD
> ---- Log message:
> - make %{_wwwrootdir}/lstat/doc symlink to %{_docdir}/%{name}-%{version}
>
> ---- Files affected:
> SPECS:
>    lstat.spec (1.54 -> 1.55)
>
> ---- Diffs:
>
> ================================================================
> Index: SPECS/lstat.spec
> diff -u SPECS/lstat.spec:1.54 SPECS/lstat.spec:1.55
> --- SPECS/lstat.spec:1.54	Mon May  9 10:09:11 2005
> +++ SPECS/lstat.spec	Fri Jun  3 11:09:38 2005
> @@ -13,7 +13,7 @@
>  Summary(pl):	LinuxStat służy do generowania i prezentacji różnych
> statystyk Name:		lstat
>  Version:	2.3.2
> -Release:	10.1
> +Release:	10.2
>  Epoch:		1
>  License:	GPL
>  Group:		Applications/Networking
> @@ -120,6 +120,8 @@
>  	DESTDIR=$RPM_BUILD_ROOT
>
>  install %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/lstatd
> +rm -rf $RPM_BUILD_ROOT%{_wwwrootdir}/lstat/doc
> +ln -sf %{_docdir}/%{name}-%{version}
> $RPM_BUILD_ROOT%{_wwwrootdir}/lstat/doc
>
>  %if %{with apache1}
>  sed -i -e "s#lstat/#lstat#g"
> $RPM_BUILD_ROOT%{_sysconfdir}/apache/conf.d/lstat.conf @@ -204,7 +206,7 @@
>  %attr(640,root,root) %config(noreplace) %verify(not size mtime md5)
> %{_sysconfdir}/httpd/httpd.conf/lstat.conf %endif
>  %dir %{_wwwrootdir}/lstat
> -%dir %{_wwwrootdir}/lstat/doc
> +%{_wwwrootdir}/lstat/doc
>  %dir %{_wwwrootdir}/lstat/icons
>  %dir %{_wwwrootdir}/lstat/skins
>  %dir %{_wwwrootdir}/lstat/edit
> @@ -212,7 +214,6 @@
>  %attr(700,http,http) %dir %{_wwwrootdir}/lstat/statimg
>  %attr(755,root,root) %{_wwwrootdir}/lstat/edit/edit.cgi
>  %attr(755,root,root) %{_wwwrootdir}/lstat/lstat.cgi
> -%{_wwwrootdir}/lstat/doc/*
>  %{_wwwrootdir}/lstat/skins/*
>  %{_wwwrootdir}/lstat/icons/*
>  %attr(755,root,root) %{_bindir}/lstatd
> @@ -233,6 +234,9 @@
>  All persons listed below can be reached at <cvs_login>@pld-linux.org
>
>  $Log$
> +Revision 1.55  2005/06/03 09:09:38  gotar
> +- make %{_wwwrootdir}/lstat/doc symlink to %{_docdir}/%{name}-%{version}
> +
>  Revision 1.54  2005/05/09 08:09:11  glen
>  - todo
>
> ================================================================
>
> ---- CVS-web:
>     http://cvs.pld-linux.org/SPECS/lstat.spec?r1=1.54&r2=1.55&f=u
>
> _______________________________________________
> pld-cvs-commit mailing list
> pld-cvs-commit at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

-- 
glen



More information about the pld-devel-en mailing list