Bug 649939 - Review Request: loook - search tool for OpenOffice.org documents
Summary: Review Request: loook - search tool for OpenOffice.org documents
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-04 20:42 UTC by Lukas Zapletal
Modified: 2010-12-03 20:41 UTC (History)
5 users (show)

Fixed In Version: loook-0.6.7-5.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-03 20:41:18 UTC
Type: ---
Embargoed:
hdegoede: fedora-review+
j: fedora-cvs+


Attachments (Terms of Use)

Description Lukas Zapletal 2010-11-04 20:42:27 UTC
Spec URL: http://static.zapletalovi.com/fedora/rpm/loook/0.6.7-1/loook.spec
SRPM URL: http://static.zapletalovi.com/fedora/rpm/loook/0.6.7-1/loook-0.6.7-1.fc14.src.rpm
Description: Loook is a simple Python tool that searches for text strings in OpenOffice.org (and StarOffice 6.0 or later) files. It works under Linux, Windows and Macintosh. AND, OR and phrase searches are supported. It doesn't create an index, but searching should be fast enough unless you have really many files.

$ rpmlint loook-0.6.7-1.fc14.src.rpm 
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

$ rpmlint loook-0.6.7-1.fc14.noarch.rpm 
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

Comment 1 Thomas Spura 2010-11-05 01:05:49 UTC
Nice a python3 package :-)

The loook-0.6.7-python3-env.patch is wrong, you force to use python3.1, but what's up, when python3.2 arrives?
Better just use python3 there and that's it...

- %files: sitelib and not sitearch

- compressing of the manpage happens automatically, so please just install %{name}.1 and don't use gzip

- you do:
  %py_byte_compile %{__python3} %{buildroot}%{_datadir}/%{name}/

  But there are no files there... Can this be deleted?

- %global         debug_package %{nil}:
  that's not needed for noarch packages, please delete that.

- license is wrong: it's GPLv2+ and not just GPLv2

The rest looks fine to me...

Comment 2 Hans de Goede 2010-11-05 08:28:12 UTC
Hi Lukáš,

As discussed I'll review this and 2 more of you're packages and then sponsor you.

Thomas, sorry for taking over this review from you and thanks for the initial review. The reason I'm hijacking this review is that Lukáš needs a sponsor (but forgot to set the FE-NEEDSPONSOR blocker on this bug) and I've agreed to sponsor him, see bug 635450.

Thanks & Regards,

Hans

Comment 3 Hans de Goede 2010-11-05 09:35:02 UTC
Good:
- rpmlint checks return:
  2 packages and 0 specfiles checked; 0 errors, 0 warnings.
- package meets naming guidelines
- package meets packaging guidelines
- spec file legible, in am. english
- source matches upstream
- package compiles on devel (x86)
- no missing BR
- no unnecessary BR
- no locales
- not relocatable
- owns all directories that it creates
- no duplicate files
- permissions ok
- %clean ok
- macro use consistent
- code, not content
- no need for -docs
- nothing in %doc affects runtime

Needs work:
- All comments from Thomas' comment #1 need to be addressed, wrt to the
  bytecompiling I would like to add that doing explicit byte compiling from
  the .spec is never needed as rpmbuild automatically bytecompiles .py files.
- This app needs a .desktop file. As already discussed by email, I think
you can simply use the standard search icon from the active icon theme
for it (usually a spyglass in some form). Simply put the following in the
.desktop file:
Icon=edit-find

You can find all the standardized icon theme icon names here:
http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html

Usually that is not really a good solution for an apps .desktop
file, but since this is a search tool ...

Comment 4 Lukas Zapletal 2010-11-11 15:05:29 UTC
[lzap@lzapx SRPMS]$ rpmlint loook-0.6.7-3.fc14.src.rpm 
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

[lzap@lzapx noarch]$ rpmlint loook-0.6.7-3.fc14.noarch.rpm 
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

All solved.

http://static.zapletalovi.com/fedora/rpm/loook/0.6.7-3/

Many thanks for your help!

Comment 5 Hans de Goede 2010-11-11 15:36:19 UTC
Hi,

Sorry to be a bit pedantic, but I would like to see one more revision.

This bit:

install -Dpm 0644 %{name}.desktop $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

desktop-file-install --delete-original  \
        --dir $RPM_BUILD_ROOT%{_datadir}/applications   \
        --remove-category Application \
        $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

Is a bit weird, first you install it using install, then you install it *again* using desktop-file-install. Instead you can simply do:

desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications   \
        %{name}.desktop

Note:
1) The --delete-original is gone now, as it is no longer needed
2) The --remove-category Application is gone (it is only needed
   for older .desktop files which wrongly contain Application in
   their Categories=...; list)
3) It may be necessary to first create
   $RPM_BUILD_ROOT%{_datadir}/applications
4) Adding a .desktop file with a patch is a bit unconventional. It is fine
   but usually people just include the file as

Source1: %{name}.desktop

   And the install command becomes:

desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}

Regards,

Hans

Comment 6 Lukas Zapletal 2010-11-11 19:34:29 UTC
No problem. Still learning... Sorry.

http://static.zapletalovi.com/fedora/rpm/loook/0.6.7-4/

Comment 7 Hans de Goede 2010-11-12 08:14:38 UTC
(In reply to comment #6)
> No problem. Still learning...

I understand, no problem from my side either, and no need to say sorry :)

All is good now: Approved!

Comment 8 Lukas Zapletal 2010-11-12 13:01:19 UTC
New Package SCM Request
=======================
Package Name: loook
Short Description: Search tool for OpenOffice.org documents
Owners: lzap
Branches: f14
InitialCC:

Comment 9 Jason Tibbitts 2010-11-15 14:27:57 UTC
Git done (by process-git-requests).

Comment 10 Fedora Update System 2010-11-25 20:11:09 UTC
loook-0.6.7-5.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/loook-0.6.7-5.fc14

Comment 11 Fedora Update System 2010-11-26 01:11:22 UTC
loook-0.6.7-5.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update loook'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/loook-0.6.7-5.fc14

Comment 12 Fedora Update System 2010-12-03 20:41:13 UTC
loook-0.6.7-5.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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