Bug 757854 (kcalc) - Review Request: kcalc - Scientific calculator
Summary: Review Request: kcalc - Scientific calculator
Keywords:
Status: CLOSED RAWHIDE
Alias: kcalc
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jaroslav Reznik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: kde-reviews
TreeView+ depends on / blocked
 
Reported: 2011-11-28 20:37 UTC by Rex Dieter
Modified: 2011-12-05 07:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-05 07:06:50 UTC
Type: ---
Embargoed:
jreznik: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Rex Dieter 2011-11-28 20:37:35 UTC
Spec URL: http://rdieter.fedorapeople.org/rpms/kdeutils/kcalc.spec
SRPM URL: http://rdieter.fedorapeople.org/rpms/kdeutils/kcalc-4.7.80-1.fc16.src.rpm
Description:
KCalc is a calculator which offers many more mathematical
functions than meet the eye on a first glance.


This is being split out in kde-4.7.80 from previously monolithic kdeutils
package.

Comment 1 Jaroslav Reznik 2011-11-30 15:17:28 UTC
Package Review
==============

Key:
- = N/A
x = Pass
! = Fail
? = Not evaluated



==== C/C++ ====
[x]: MUST Header files in -devel subpackage, if present.
[x]: MUST Package does not contain any libtool archives (.la)
[x]: MUST Package does not contain kernel modules.
[x]: MUST Package contains no static executables.


==== Generic ====
[x]: MUST Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: MUST Package successfully compiles and builds into binary rpms on at
     least one supported architecture.
[x]: MUST All build dependencies are listed in BuildRequires, except for any
     that are listed in the exceptions section of Packaging Guidelines.
[x]: MUST Buildroot is not present
     Note: Unless packager wants to package for EPEL5 this is fine
[x]: MUST Package contains no bundled libraries.
[x]: MUST Changelog in prescribed format.
[x]: MUST Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
     Note: Clean would be needed if support for EPEL is required
[x]: MUST Sources contain only permissible code or content.
[x]: MUST Each %files section contains %defattr if rpm < 4.4
     Note: Note: defattr macros not found. They would be needed for EPEL5
[x]: MUST Package contains a properly installed %{name}.desktop using desktop-
     file-install file if it is a GUI application.
[x]: MUST Package uses nothing in %doc for runtime.
[x]: MUST Package is not known to require ExcludeArch.
[x]: MUST Permissions on files are set properly.
[x]: MUST Package does not contain duplicates in %files.
[x]: MUST Spec file lacks Packager, Vendor, PreReq tags.
[x]: MUST Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
     Note: rm -rf would be needed if support for EPEL5 is required
[x]: MUST If (and only if) 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.
[x]: MUST License field in the package spec file matches the actual license.
[x]: MUST Package consistently uses macros (instead of hard-coded directory
     names).
[x]: MUST Package meets the Packaging Guidelines.
[x]: MUST Package is named according to the Package Naming Guidelines.
[x]: MUST Package must own all directories that it creates.
[x]: MUST Package does not own files or directories owned by other packages.
[x]: MUST Requires correct, justified where necessary.
[!]: MUST Rpmlint output is silent.

rpmlint kcalc-debuginfo-4.7.80-1.fc17.i686.rpm

1 packages and 0 specfiles checked; 0 errors, 0 warnings.


rpmlint kcalc-4.7.80-1.fc17.src.rpm

kcalc.src: W: invalid-url Source0: ftp://ftp.kde.org/pub/kde/stable/4.7.80/src/kcalc-4.7.80.tar.bz2 <urlopen error ftp error: 550 Failed to change directory.>
1 packages and 0 specfiles checked; 0 errors, 1 warnings.


rpmlint kcalc-4.7.80-1.fc17.i686.rpm

kcalc.i686: E: invalid-soname /usr/lib/libkdeinit4_kcalc.so libkdeinit4_kcalc.so
kcalc.i686: E: script-without-shebang /usr/share/applications/kde4/kcalc.desktop

> kcalc.desktop has exec acls

kcalc.i686: W: no-manual-page-for-binary kcalc
1 packages and 0 specfiles checked; 2 errors, 1 warnings.


[x]: MUST Sources used to build the package match the upstream source, as
     provided in the spec URL.
/home/jreznik/test/757854/kcalc-4.7.80.tar.bz2 :
  MD5SUM this package     : 13206383afdbfcabde4c1e47ce2764c0
  MD5SUM upstream package : 13206383afdbfcabde4c1e47ce2764c0

[x]: MUST Spec file is legible and written in American English.
[x]: MUST Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: MUST File names are valid UTF-8.
[x]: SHOULD Reviewer should test that the package builds in mock.
[x]: 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.
[x]: SHOULD Dist tag is present.
[x]: SHOULD No file requires outside of /etc, /bin, /sbin, /usr/bin,
     /usr/sbin.
[x]: SHOULD Package functions as described.
[x]: SHOULD Package does not include license text files separate from
     upstream.
[x]: SHOULD SourceX is a working URL.
[x]: SHOULD Package should compile and build into binary rpms on all supported
     architectures.
[x]: SHOULD Spec use %global instead of %define.

Issues:
[!]: MUST Rpmlint output is silent.

rpmlint kcalc-debuginfo-4.7.80-1.fc17.i686.rpm

1 packages and 0 specfiles checked; 0 errors, 0 warnings.


rpmlint kcalc-4.7.80-1.fc17.src.rpm

kcalc.src: W: invalid-url Source0: ftp://ftp.kde.org/pub/kde/stable/4.7.80/src/kcalc-4.7.80.tar.bz2 <urlopen error ftp error: 550 Failed to change directory.>
1 packages and 0 specfiles checked; 0 errors, 1 warnings.

> Just fix to unstable for now.

rpmlint kcalc-4.7.80-1.fc17.i686.rpm

kcalc.i686: E: invalid-soname /usr/lib/libkdeinit4_kcalc.so libkdeinit4_kcalc.so
kcalc.i686: E: script-without-shebang /usr/share/applications/kde4/kcalc.desktop
kcalc.i686: W: no-manual-page-for-binary kcalc
1 packages and 0 specfiles checked; 2 errors, 1 warnings.

> Ok as stated above.

Generated by fedora-review 0.1.1
External plugins:

Comment 2 Jaroslav Reznik 2011-11-30 15:18:37 UTC
desktop-file-validate belongs to %install section

Comment 3 Rex Dieter 2011-11-30 15:22:49 UTC
%check for -validate is fine (I'm starting to use that everywhere), I'll take it as my job to update the relevant packaging guideline

Comment 5 Jaroslav Reznik 2011-11-30 15:32:41 UTC
Thanks Rex, I thought it's ok but re-checked with old Guidelines to prove me I was wrong :)

Comment 6 Jaroslav Reznik 2011-11-30 15:56:54 UTC
We decided (at #fedora-kde) to go with some macro magic to do stable/unstable source url in a better way - so for now, I'll approve it with incorrect url (source code checked manually). As I think it's not a blocker and we have this problem in modules already in git :( So systematic solution should work.

APPROVED

Comment 7 Kevin Kofler 2011-11-30 16:31:11 UTC
Try this:
%global revision %(echo %{version} | sed 's/^.*\.\([^.]*\)$/\1/g')
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source0: ftp://ftp.kde.org/pub/kde/%{stable}/%{version}/src/%{name}-%{version}.tar.bz2

Comment 8 Rex Dieter 2011-12-01 15:26:00 UTC
New Package SCM Request
=======================
Package Name: kcalc
Short Description: Scientific calculator
Owners: than jreznik ltinkl rnovacek rdieter kkofler
Branches: f16

Comment 9 Gwyn Ciesla 2011-12-01 16:04:17 UTC
Git done (by process-git-requests).

Comment 10 Kevin Kofler 2011-12-02 03:23:12 UTC
> %global revision %(echo %{version} | sed 's/^.*\.\([^.]*\)$/\1/g')

We found that the backslashes need to be escaped, as in:

%global revision %(echo %{version} | sed 's/^.*\\.\\([^.]*\\)$/\\1/g')

This always takes the last component of the version. Alternatively, this also works, assuming that the version has 3 components (it always takes the 3rd component):

%global revision %(echo %{version} | cut -d. -f3)

Comment 11 Kevin Kofler 2011-12-02 03:42:02 UTC
As per the IRC discussion, I think we should go with the cut version, it's shorter and more readable. Both versions may fail if upstream changes their versioning scheme, but they're both more robust than hardcoding either "stable" or "unstable", which we invariably forget to change. So I'd go with the simpler of the 2.

Comment 12 Kevin Kofler 2011-12-02 03:43:32 UTC
(By the way, thanks to Rex Dieter for the "cut" version. I'm a bit from the "if all you have is sed, everything starts to look a lot like a regex" school. ;-) )

Comment 13 Rex Dieter 2011-12-05 07:06:50 UTC
imported.


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