Bug 194276 - Review Request: kdeaccessibility: KDE accessibility tools
Summary: Review Request: kdeaccessibility: KDE accessibility tools
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Chitlesh GOORAH
QA Contact: Fedora Package Reviews List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-06-06 19:49 UTC by Rex Dieter
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-02-27 13:42:35 UTC
Type: ---
Embargoed:
rdieter: fedora-review+


Attachments (Terms of Use)
spec file (6.48 KB, text/plain)
2006-07-12 00:41 UTC, Chitlesh GOORAH
no flags Details

Description Rex Dieter 2006-06-06 19:49:35 UTC
Spec URL: http://kde-redhat.unl.edu/apt/kde-redhat/SPECS/kdeaccessibility.spec
SRPM URL: http://kde-redhat.unl.edu/apt/kde-redhat/all/SRPMS.testing/kdeaccessibility-3.5.3-2.src.rpm
Description:
KDE Accessibility Aids:
kmag, a screen magnifier,
kmousetool, a program for people whom it hurts to click the mouse,
and KMouth, a program that allows people who have lost their
voice to let their computer speak for them.

Comment 1 Rex Dieter 2006-06-07 11:47:12 UTC
%changelog
* Mon Jun 05 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1:3.5.3-2
- cleanup for Extras
- %%doc: COPYING, app docs (README, TODO, etc...)
- follow icon spec
- BR: desktop-file-utils, alsa-lib-devel
- BR: libXtst-devel (fc5+)

* Fri Jun 02 2006 Than Ngo <than> 1:3.5.3-1
- update to 3.5.3


Comment 2 Chitlesh GOORAH 2006-07-11 08:34:43 UTC
Helle

SRPM:  URL Not found

Comment 4 Chitlesh GOORAH 2006-07-11 15:17:04 UTC
1.
# FIXME/TODO: get dfi to shut-the-hell-up about KDE's use of Keywords= and 
# use of invalidate characters... bah.

What is it about ? Can you document me a bit please?

2.
Duplicates

desktop-file-install \
  --add-category="X-Fedora" --vendor="" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications/kde \
  $RPM_BUILD_ROOT%{_datadir}/applications/kde/*.desktop ||:

desktop-file-install \
  --add-category="X-Fedora" --vendor="" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications/kde \
  --delete-original \
  $RPM_BUILD_ROOT%{_datadir}/applnk/Applications/*.desktop ||:

3.
chitlesh(~)[0]$rpmlint -i kdeaccessibility-3.5.3-2.src.rpm
W: kdeaccessibility mixed-use-of-spaces-and-tabs
The specfile mixes use of spaces and tabs for indentation, which is a
cosmetic annoyance.  Use either spaces or tabs for indentation, not both.


Comment 5 Chitlesh GOORAH 2006-07-11 15:20:24 UTC
Sorry forget the 2.

Comment 6 Rex Dieter 2006-07-11 15:26:22 UTC
1.  Build the package, and you'll see desktop-file-install refusing to process
perfectly legal .desktop files, yielding errors (which *should* be at most
warnings):
...
error: invalid characters in value of key "Keywords[bg]", keys of type string
may contain ASCII characters except control characters
...

Comment 7 Chitlesh GOORAH 2006-07-11 22:23:13 UTC
I see, ill have a look at them

Comment 8 Chitlesh GOORAH 2006-07-12 00:39:41 UTC
1.
/var/tmp/kdeaccessibility-3.5.3-2-root-chitlesh/usr/share/applications/kde/kmag.desktop:
warning: file contains key "DocPath", this key is currently reserved for use
within KDE, and should in the future KDE releases be prefixed by "X-"
/var/tmp/kdeaccessibility-3.5.3-2-root-chitlesh/usr/share/applications/kde/kmousetool.desktop:
warning: file contains key "DocPath", this key is currently reserved for use
within KDE, and should in the future KDE releases be prefixed by "X-"
/var/tmp/kdeaccessibility-3.5.3-2-root-chitlesh/usr/share/applications/kde/kmouth.desktop:
warning: file contains key "DocPath", this key is currently reserved for use
within KDE, and should in the future KDE releases be prefixed by "X-"

Use the following to correct the shut-the-hell-up about KDE's use of DocPath:

for f in
$RPM_BUILD_ROOT%{_datadir}/applnk/Applications/{kmag,kmousetool,kmouth}.desktop
do
  %{__sed} -i -e 's/DocPath/X-DocPath/' $f
done



2.
/var/tmp/kdeaccessibility-3.5.3-2-root-chitlesh/usr/share/applications/kde/kcmkttsd.desktop:
warning: file contains key "Keywords", this key is currently reserved for use
within KDE, and should in the future KDE releases be prefixed by "X-"
/var/tmp/kdeaccessibility-3.5.3-2-root-chitlesh/usr/share/applications/kde/kcmkttsd.desktop:
warning: file contains key "ServiceTypes", this key is currently reserved for
use within KDE, and should in the future KDE releases be prefixed by "X-"
/var/tmp/kdeaccessibility-3.5.3-2-root-chitlesh/usr/share/applications/kde/kcmkttsd.desktop:
warning: file contains key "DocPath", this key is currently reserved for use
within KDE, and should in the future KDE releases be prefixed by "X-"


you can use this before desktop-file-installs, to correct the shut-the-hell-up
about KDE's use of 'Keywords':

%{__sed} -i \
         -e 's/Keywords/X-Keywords/'         \
         -e 's/ServiceTypes/X-ServiceTypes/' \
         -e 's/DocPath/X-DocPath/'           \
         $RPM_BUILD_ROOT%{_datadir}/applications/kde/kcmkttsd.desktop



3.
/var/tmp/kdeaccessibility-3.5.3-2-root-chitlesh/usr/share/applications/kde/ksayit.desktop:
warning: file contains key "DocPath", this key is currently reserved for use
within KDE, and should in the future KDE releases be prefixed by "X-"

Solution:

%{__sed} -i -e 's/DocPath/X-DocPath/'
$RPM_BUILD_ROOT%{_datadir}/applications/kde/ksayit.desktop

4.
/var/tmp/kdeaccessibility-3.5.3-2-root-chitlesh/usr/share/applications/kde/kttsmgr.desktop:
warning: non-standard key "MimeTypes" lacks the "X-" prefix


5.
Now the repetitive:

/var/tmp/kdeaccessibility-3.5.3-2.fc5-root-mockbuild/usr/share/applications/kde/kcmkttsd.desktop:
error: invalid characters in value of key "Keywords[ca]", keys of type string
may contain ASCII characters except control characters

have gone. yooohoo :)

I've updated the spec file, see attachment.

I've left W: kdeaccessibility mixed-use-of-spaces-and-tabs for you to correct :)

Post an updated SRPM, Rex, i'll review it.

Comment 9 Chitlesh GOORAH 2006-07-12 00:40:38 UTC
4
Solution:

%{__sed} -i -e 's/MimeTypes/X-MimeTypes/'
$RPM_BUILD_ROOT%{_datadir}/applications/kde/kttsmgr.desktop

Comment 10 Chitlesh GOORAH 2006-07-12 00:41:47 UTC
Created attachment 132273 [details]
spec file

Comment 11 Rex Dieter 2006-07-12 15:48:52 UTC
But these are (mostly?) valid .desktop entities (see
http://standards.freedesktop.org/desktop-entry-spec/latest/apb.html) and will
break if renamed to have X- Prefixes.

Comment 12 Chitlesh GOORAH 2006-07-13 15:46:00 UTC
from /usr/share/applications/kde/ :

I saw that the DocPath of these

ksnapshot.desktop
amarok.desktop
kdevelop.desktop
krdc.desktop

are not prefixed by "X-"

So, I am ignoring these errors.

MUST Items:
- MUST: rpmlint's output is clean
- MUST: The package is named according to the Package Naming Guidelines.
- MUST: The spec file name matches the base package %{name}
- MUST: The package meets the Packaging Guidelines.
- MUST: The package is licensed (GPL) with an open-source compatible license and
meet other legal requirements as defined in the legal section of Packaging
Guidelines.
- MUST: The License field in the package spec file matches the actual license.
- MUST: the source package includes the text of the license(s) in its own file,
then that file, containing the text of the license(s) for the package is
included in %doc.
- MUST: The spec file must be written in American English.
- MUST: The spec file for the package is be legible. 
- MUST: The package successfully compiles and builds into binary rpms on at
least i386.
- MUST: All build dependencies is listed in BuildRequires.
- MUST: The spec file handles locales properly.
- MUST: If the package does not contain shared library files located in the
dynamic linker's default paths
- MUST: the package is not designed to be relocatable
- MUST: the package owns all directories that it creates.
- MUST: the package does not contain any duplicate files in the %files listing.
- MUST: Permissions on files are set properly.
- MUST: The package has a %clean section, which contains rm -rf %{buildroot} (or
$RPM_BUILD_ROOT).
- MUST: The package consistently uses macros, as described in the macros section
of Packaging Guidelines.
- MUST: The package contains code, or permissable content. This is described in
detail in the code vs. content section of Packaging Guidelines.
- MUST: There are no Large documentation files
- MUST: %doc does not affect the runtime of the application. To summarize: If it
is in %doc, the program must run properly if it is not present.
- MUST: There are no Header files or static libraries 
- MUST: The package does not contain library files with a suffix 
- MUST: Package does NOT contain any .la libtool archives
- MUST: Package containing GUI applications includes a %{name}.desktop file, and
that file must be properly installed with desktop-file-install in the %install
section.
- MUST: Package does not own files or directories already owned by other packages. 

SHOULD Items:

 - SHOULD: The source package does include license text(s) as COPYING
 - SHOULD: mock builds succcessfully in i386.
 - SHOULD: The reviewer tested that the package functions as described. A
package should not segfault instead of running, for example.
 - SHOULD: No scriptlets were used, those scriptlets must be sane. 
 - SHOULD: No subpackages present.

APPROVED.

Comment 13 Rex Dieter 2006-07-13 18:45:20 UTC
Thanks, now we'll wait for fc6 to be released, and (hopefully) UnleashKDE 
start to happen.

Comment 14 Than Ngo 2007-02-27 13:42:35 UTC
it's now comitted in CVS. 


Note You need to log in before you can comment on or make changes to this bug.