Halton Huo ??:
> On Tue, 2008-09-16 at 13:58 +0800, C Wang wrote:
>   
>> plain text document attachment (SUNWgnome-desklets.copyright)
>> Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
>> Use is subject to license terms.
>>
>> For the avoidance of doubt, except that if any license choice other
>> than GPL or LGPL is available it will apply instead, Sun elects to
>> use only the General Public License version 2 (GPLv2) at this time
>> for any software where a choice of GPL license versions is made
>> available with the language indicating that GPLv2 or any later
>> version may be used, or where a choice of which version of the GPL
>> is applied is otherwise unspecified.
>>
>> --------------------------------------------------------------------
>>
>> Licensing and copyright information for %{name}:
>>
>>  License: GNU General Public License Version 2.1
>>  
>>  You can find more information in the following directory:
>>  %{_pkg_docdir}
>>
>>   COPYING.bz2: GNU GPL 
>>   NEWS.bz2: list of the most important changes in gdesklets
>>   ChangeLog.bz2: list of all changes and authors of gdesklets
>>   README.bz2: more information about gdesklets
>>   AUTHORS: list of authors of gdesklets
>>
>>  The sources of gdesklets-%{gdesklets.version} were downloaded
>>  from %{gdesklets.SOURCE0.url}
>> plain text document attachment (SUNWgqview.copyright)
>> Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
>>     Use is subject to license terms.
>>
>>     For the avoidance of doubt, except that if any license choice other
>>     than GPL or LGPL is available it will apply instead, Sun elects to
>>     use only the General Public License version 2 (GPLv2) at this time
>>     for any software where a choice of GPL license versions is made
>>     available with the language indicating that GPLv2 or any later
>>     version may be used, or where a choice of which version of the GPL
>>     is applied is otherwise unspecified.
>>
>>     --------------------------------------------------------------------
>>
>>     Licensing and copyright information for %{name}:
>>
>>      License: GNU General Public License Version 2.1
>>      
>>      You can find more information in the following directory:
>>      %{_pkg_docdir}
>>
>>       COPYING.bz2: GNU GPL
>>       NEWS.bz2: list of the most important changes in gqview
>>       ChangeLog.bz2: list of all changes and authors of gqview
>>       README: more information about gqview
>>       AUTHORS: list of authors of gqview        
>>
>>      The sources of gqview-%{gqview.version} were downloaded
>>      from %{gqview.SOURCE0.url}
>>
>>
>> plain text document attachment (gdesklets.diff)
>> Index: SUNWgnome-desklets.spec
>> ===================================================================
>> --- SUNWgnome-desklets.spec  (revision 15392)
>> +++ SUNWgnome-desklets.spec  (working copy)
>> @@ -88,6 +88,9 @@
>>  %include scrollkeeper-update.script
>>  
>>  %files
>> +%doc -d gdesklets-%{gdesklets.version} AUTHORS
>> +%doc (bzip2) -d gdesklets-%{gdesklets.version} COPYING README NEWS ChangeLog
>>     
> Never see "%doc (bzip2)", are you sure it works?
>
>   
I can build like this, but I will change it to the prefer way
>> +%dir %attr (0755, root, other) %{_datadir}/doc
>>  %defattr (-, root, bin)
>>  %dir %attr (0755, root, bin) %{_bindir}
>>  %{_bindir}/*
>> plain text document attachment (gqview.diff)
>> Index: SUNWgqview.spec
>> ===================================================================
>> --- SUNWgqview.spec  (revision 15392)
>> +++ SUNWgqview.spec  (working copy)
>> @@ -68,14 +68,16 @@
>>  rm -rf $RPM_BUILD_ROOT
>>  
>>  %files
>> +%doc -d gqview-%{gqview.version} README AUTHORS
>> +%doc(bzip2) -d gqview-%{gqview.version} COPYING ChangeLog NEWS
>> +%dir %attr (0755, root, other) %{_datadir}/doc
>>  %defattr(-, root, bin)
>>  %dir %attr (0755, root, bin) %{_bindir}
>>  %{_bindir}/*
>>  %dir %attr (0755, root, sys) %{_datadir}
>>  %dir %attr (0755, root, other) %{_datadir}/applications
>>  %{_datadir}/applications/*
>> -%dir %attr (0755, root, other) %{_datadir}/doc
>> -%{_datadir}/doc/*
>> +%{_datadir}/doc/gqview-%{gqview.version}
>>     
> What's under this dir? I think all doc should be under
> %{_datadir}/doc/%{name}.
>
>   
the gqview doc is under /usr/share/doc/gqview-2.04 directory, and I
think there are other packages do the same thing eg. pangomm

Chris

> -Halton.
>   
>>  %dir %attr(0755, root, bin) %{_mandir}
>>  %dir %attr(0755, root, bin) %{_mandir}/man1
>>  %{_mandir}/man*/*
>> @@ -91,6 +93,8 @@
>>  
>>
>>  %changelog
>> +* Mon Sep 16 2008 - chris.wang at sun.com
>> +- Revised copyright file
>>  * Wed Aug 21 2008 - chris.wang at sun.com
>>  - Move #6734879's fix to Solaris spec from base spec
>>  * Wed Jul 23 2008 - damien.carbery at sun.com
>>     
>
>   


Reply via email to