Bug 512270 - Review Request: quitcount - A tool for people who quit smoking
Summary: Review Request: quitcount - A tool for people who quit smoking
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Christoph Wickert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-16 22:17 UTC by Fabian Affolter
Modified: 2009-07-29 21:35 UTC (History)
3 users (show)

Fixed In Version: 1.4.1-2.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-29 21:29:24 UTC
Type: ---
Embargoed:
christoph.wickert: fedora-review+
kevin: fedora-cvs+


Attachments (Terms of Use)

Description Fabian Affolter 2009-07-16 22:17:27 UTC
Spec URL: http://fab.fedorapeople.org/packages/SRPMS/quitcount.spec
SRPM URL: http://fab.fedorapeople.org/packages/SRPMS/quitcount-1.4.1-1.fc11.src.rpm

Project URL: http://quitcount.sourceforge.net/

Description:
QuitCount is a simple counter that shows what you spared since you quit
smoking. Once you tell it the date you quit, how much you smoked, and
how much it cost, it'll tell you how many cigarettes you didn't smoke
since, and how much it makes in terms of money, tar, and life expectancy.

Koji scratch build:
http://koji.fedoraproject.org/koji/taskinfo?taskID=1480595

rpmlint output:
[fab@laptop09 SRPMS]$ rpmlint quitcount-1.4.1-1.fc11.src.rpm 
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

[fab@laptop09 i586]$ rpmlint quitcount*
2 packages and 0 specfiles checked; 0 errors, 0 warnings.

Comment 1 Christoph Wickert 2009-07-18 11:15:02 UTC
I'm going to review this. However, I cannot do functional testing as I quitted smoking more than 10 years ago.

Comment 2 Fabian Affolter 2009-07-18 11:32:44 UTC
The license should be GPLv3+, sorry.

Comment 3 Christoph Wickert 2009-07-18 11:55:26 UTC
(In reply to comment #2)
> The license should be GPLv3+, sorry.  

Yeah, I already noticed that during review.


REVIEW for 415304ba78f2eb27404808854509c185  quitcount-1.4.1-1.fc11.src.rpm

OK - MUST: rpmlint must be run on every package. The output should be posted in the review:
$ rpmlint /var/lib/mock/fedora-rawhide-x86_64/result/quitcount-*
3 packages and 0 specfiles checked; 0 errors, 0 warnings.

OK - MUST: The package is named according to the Package Naming Guidelines.
OK - MUST: The spec file name matches the base package %{name}, in the format %{name}.spec.
OK - MUST: The package meets the Packaging Guidelines.
OK - MUST: The package is licensed with a Fedora approved license and meets the Licensing Guidelines: GPLv3+
FAIL - MUST: The License field in the package spec file does not match the actual license: Sources and COPYING are GPLv3+, but license tag is BDS.
OK - MUST: The license file from the source package is included in %doc.
OK - MUST: The spec file is in American English.
OK - MUST: The spec file for the package is legible.
OK - MUST: The sources used to build the package match the upstream source by MD5 6b49eab7f34155d740e7404a09ba6d0d
OK - MUST: The package successfully compiles and builds into binary rpms on x86_64
N/A - MUST: If the package does not successfully compile, build or work on an architecture, then those architectures should be listed in the spec in ExcludeArch.
OK - MUST: All build dependencies are listed in BuildRequires.
OK - MUST: The spec file handles locales properly with the %find_lang macro.
N/A - MUST: Every binary RPM package (or subpackage) which stores shared library files (not just symlinks) in any of the dynamic linker's default paths, must call ldconfig in %post and %postun.
N/A - MUST: If the package is designed to be relocatable, the packager must state this fact in the request for review, along with the rationalization for relocation of that specific package.
OK - MUST: The package owns all directories that it creates.
OK - MUST: The package does not contain any duplicate files in the %files listing.
OK - MUST: Permissions on files are set properly. Every %files section includes a %defattr(...) line.
OK - MUST: The package has a %clean section, which contains rm -rf %{buildroot}.
OK - MUST: The package consistently uses macros, as described in the macros section of Packaging Guidelines.
OK - MUST: The package contains code, or permissable content.
N/A - MUST: Large documentation files should go in a -doc subpackage.
OK - MUST: Files included as %doc do not affect the runtime of the application.
N/A - MUST: Header files must be in a -devel package.
N/A - MUST: Static libraries must be in a -static package.
N/A - MUST: Packages containing pkgconfig(.pc) files must 'Requires: pkgconfig'.
N/A - MUST: If a package contains library files with a suffix (e.g. libfoo.so.1.1), then library files that end in .so (without suffix) must go in a -devel package.
N/A - MUST: In the vast majority of cases, devel packages must require the base package using a fully versioned dependency.
OK - MUST: The package does not contain any .la libtool archives.
OK - MUST: The package contains a GUI application and includes a %{name}.desktop file, and that file is properly installed with desktop-file-install in the %install section.
OK - MUST: The packages does not own files or directories already owned by other packages.
OK - MUST: At the beginning of %install, the package runs rm -rf %{buildroot}.
OK - MUST: All filenames in rpm packages are valid UTF-8.


SHOULD Items:
N/A - SHOULD: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it.
N/A - SHOULD: The description and summary sections in the package spec file should contain translations for supported Non-English languages, if available.
OK - SHOULD: The the package builds in mock.
OK - SHOULD: The package should compile and build into binary rpms on all supported architectures.
OK - SHOULD: The package functions as described, however it has some functional some limitations: You cannot smoke more than 100 cigaretts a day. :)
N/A - SHOULD: If scriptlets are used, those scriptlets must be sane.
N/A - SHOULD: Usually, subpackages other than devel should require the base package using a fully versioned dependency.
N/A - SHOULD: The placement of pkgconfig(.pc) files depends on their usecase, and this is usually for development purposes, so should be placed in a -devel pkg.
N/A - SHOULD: If the package has file dependencies outside of /etc, /bin, /sbin, /usr/bin, or /usr/sbin consider requiring the package which provides the file instead of the file itself.


Other items:
OK - Timestamps are preserved
OK - Latest version packaged
OK - ${RPM_OPT_FLAGS} are honored


Issues:
License tag wrong, see above

Icon in the launcher is missing because Icon cache is not being updated, see
https://fedoraproject.org/wiki/Packaging/ScriptletSnippets#Icon_Cache

What's the use of:
mv %{buildroot}/etc/xdg/autostart/%{name}.desktop %{buildroot}/%{_datadir}/applications/
desktop-file-install                                        \
    --dir=%{buildroot}%{_datadir}/applications              \
    %{buildroot}/%{_datadir}/applications/%{name}.desktop

Note you are hardcoding /etc here. Why not simply use: 
desktop-file-install                                        \
    --dir=%{buildroot}%{_datadir}/applications              \
    --delete-original                                       \
    %{buildroot}/%{_sysconfdir}/xdg/autostart/%{name}.desktop

IMO the package should be autostarted, because the tray icon is a reminder to actually quit smoking. Remove "--delete-original" and you are done.

Comment 4 Fabian Affolter 2009-07-19 16:17:06 UTC
(In reply to comment #3)
> Issues:
> License tag wrong, see above

fixed

> Icon in the launcher is missing because Icon cache is not being updated, see
> https://fedoraproject.org/wiki/Packaging/ScriptletSnippets#Icon_Cache

fixed
 
> What's the use of:
> mv %{buildroot}/etc/xdg/autostart/%{name}.desktop
> %{buildroot}/%{_datadir}/applications/
> desktop-file-install                                        \
>     --dir=%{buildroot}%{_datadir}/applications              \
>     %{buildroot}/%{_datadir}/applications/%{name}.desktop
> 
> Note you are hardcoding /etc here. Why not simply use: 
> desktop-file-install                                        \
>     --dir=%{buildroot}%{_datadir}/applications              \
>     --delete-original                                       \
>     %{buildroot}/%{_sysconfdir}/xdg/autostart/%{name}.desktop
> 
> IMO the package should be autostarted, because the tray icon is a reminder to
> actually quit smoking. Remove "--delete-original" and you are done.  

fixed.  Yes, the application should autostart.

Update files:
Spec URL: http://fab.fedorapeople.org/packages/SRPMS/quitcount.spec
SRPM URL:
http://fab.fedorapeople.org/packages/SRPMS/quitcount-1.4.1-2.fc11.src.rpm

Comment 5 Christoph Wickert 2009-07-19 16:53:58 UTC
quitcount-1.4.1-2.fc11.src.rpm  fixes all outstanding errors:

OK - License tag matches actual license
OK - Scriptlets are correct
OK - Desktop file installed correctly

APPROVED

Comment 6 Fabian Affolter 2009-07-19 17:39:20 UTC
Thanks for the review, Christoph.

Comment 7 Fabian Affolter 2009-07-19 17:40:02 UTC
New Package CVS Request
=======================
Package Name: quitcount
Short Description: A tool for people who quit smoking
Owners: fab
Branches: F-10 F-11
InitialCC:

Comment 8 Kevin Fenzi 2009-07-19 20:52:29 UTC
cvs done.

Comment 9 Fedora Update System 2009-07-20 20:00:29 UTC
quitcount-1.4.1-2.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/quitcount-1.4.1-2.fc10

Comment 10 Fedora Update System 2009-07-20 20:00:34 UTC
quitcount-1.4.1-2.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/quitcount-1.4.1-2.fc11

Comment 11 Fedora Update System 2009-07-22 21:56:25 UTC
quitcount-1.4.1-2.fc10 has been pushed to the Fedora 10 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 quitcount'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-7871

Comment 12 Fedora Update System 2009-07-22 22:01:43 UTC
quitcount-1.4.1-2.fc11 has been pushed to the Fedora 11 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 quitcount'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-7887

Comment 13 Fedora Update System 2009-07-29 21:29:19 UTC
quitcount-1.4.1-2.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2009-07-29 21:35:24 UTC
quitcount-1.4.1-2.fc11 has been pushed to the Fedora 11 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.