Bug 754123 - Review Request: fedora-review - Tool to automate package reviews
Summary: Review Request: fedora-review - Tool to automate package reviews
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: leigh scott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-15 13:37 UTC by Stanislav Ochotnicky
Modified: 2011-12-12 19:26 UTC (History)
4 users (show)

Fixed In Version: fedora-review-0.1.1-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-04 02:29:01 UTC
Type: ---
Embargoed:
leigh123linux: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Stanislav Ochotnicky 2011-11-15 13:37:27 UTC
Spec URL: http://sochotni.fedorapeople.org/packages/fedora-review.spec
SRPM URL: http://sochotni.fedorapeople.org/packages/fedora-review-0.1.0-1.fc16.src.rpm

Description:
This tool automates much of the dirty work when reviewing a package
for the Fedora Package Collection.

Like:

    * Downloading SRPM & SPEC from Bugzilla report
    * Download upstream source
    * Check md5sums
    * Generate a review report will both manual & automated checks,
      ready to complete and paste into the Bugzilla report.

This tool can be extended with a collection of plugins for each
programming language. There is also support for external plugins that
can be written in any language supporting JSON format.

Comment 1 leigh scott 2011-11-15 18:11:38 UTC
You need.

1. remove

BuildRoot:  %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

https://fedoraproject.org/wiki/Packaging:Guidelines#BuildRoot_tag


2. remove

%clean
rm -rf $RPM_BUILD_ROOT

https://fedoraproject.org/wiki/Packaging:Guidelines#.25clean


3. remove

%defattr(-,root,root,-)

https://fedoraproject.org/wiki/Packaging:Guidelines#File_Permissions

Comment 2 Pierre-YvesChibon 2011-11-15 18:23:01 UTC
That is unless we want to support EL5 in which case I have to request the EL5 branch for python-straight-plugin (the other dependencies are ok)

Comment 3 leigh scott 2011-11-15 18:37:25 UTC
In that case you will need a python macro

%if 0%{?rhel} <= 5
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif


https://fedoraproject.org/wiki/Packaging/Python#Macros

Comment 4 Stanislav Ochotnicky 2011-11-16 08:47:18 UTC
We decided not to support EL5, but EL6 still needs defattr macros. I've removed the rest.

Spec URL: http://sochotni.fedorapeople.org/packages/fedora-review.spec
SRPM URL: http://sochotni.fedorapeople.org/packages/fedora-review-0.1.0-2.fc16.src.rpm

Comment 5 Stanislav Ochotnicky 2011-11-16 09:04:47 UTC
Actually scratch that, reuploaded

Comment 6 leigh scott 2011-11-16 10:54:10 UTC
I will review this package

Comment 7 leigh scott 2011-11-16 10:55:47 UTC
I will review this package

Comment 8 leigh scott 2011-11-16 11:14:30 UTC
Package Review
==============

Key:
- = N/A
x = Check
! = Problem
? = Not evaluated



==== 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 Package contains no bundled libraries.
[x]: MUST Changelog in prescribed format.
[-]: MUST Package has a %clean section, which contains rm -rf %{buildroot} (or $RPM_BUILD_ROOT).(EPEL6 & Fedora < 13)
[x]: MUST Sources contain only permissible code or content.
[-]: MUST Each %files section contains %defattr if rpm < 4.4
        Missing defattr(....) in %files section
[-]: MUST Macros in Summary, %description expandable at SRPM build time.
[-]: MUST Package requires other packages for directories it uses.
[x]: MUST Package uses nothing in %doc for runtime.
[-]: 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 run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) and the beginning of %install. (EPEL5)
[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 does not generates any conflict.
[x]: MUST Package obeys FHS, except libexecdir and /usr/target.
[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 Package installs properly.
[x]: MUST Requires correct, justified where necessary.
[x]: MUST Rpmlint output is silent.
        
        rpmlint fedora-review-0.1.0-2.fc17.src.rpm
        ================================================================================
        fedora-review.src: W: spelling-error %description -l en_US plugins -> plug ins, plug-ins, plugging
        1 packages and 0 specfiles checked; 0 errors, 1 warnings.
        ================================================================================
        
        rpmlint fedora-review-0.1.0-2.fc17.noarch.rpm
        ================================================================================
        1 packages and 0 specfiles checked; 0 errors, 0 warnings.
        ================================================================================
        
[x]: MUST Sources used to build the package matches the upstream source, as provided in the spec URL.
        /home/leigh/Desktop/754123/fedora-review-0.1.0.tar.gz :
          MD5SUM this package     : f86399984c95795b4ee8efd7c3d1ec08
          MD5SUM upstream package : f86399984c95795b4ee8efd7c3d1ec08
        
[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.
[-]: MUST Package contains a SysV-style init script if in need of one.
[x]: MUST File names are valid UTF-8.
[x]: SHOULD Reviewer should test that the package builds in mock.
[-]: 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.
[ ]: SHOULD No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: SHOULD Final provides and requires are sane (rpm -q --provides and rpm -q --requires).
[x]: SHOULD Package functions as described.
[-]: SHOULD Package does not include license text files separate from upstream.
[x]: SHOULD SourceX is a working URL.
[-]: SHOULD Description and summary sections in the package spec file contains translations for supported Non-English languages, if available.
[-]: SHOULD Package should compile and build into binary rpms on all supported architectures.
[-]: SHOULD %check is present and all tests pass.
[?]: SHOULD Packages should try to preserve timestamps of original installed files.
[x]: SHOULD Spec use %global instead of %define.

Issues: None

        
        rpmlint fedora-review-0.1.0-2.fc17.src.rpm
        ================================================================================
        fedora-review.src: W: spelling-error %description -l en_US plugins -> plug ins, plug-ins, plugging
        1 packages and 0 specfiles checked; 0 errors, 1 warnings.
        ================================================================================
        
        rpmlint fedora-review-0.1.0-2.fc17.noarch.rpm
        ================================================================================
        1 packages and 0 specfiles checked; 0 errors, 0 warnings.
        ================================================================================
        



Package approved

Comment 9 Stanislav Ochotnicky 2011-11-16 12:13:47 UTC
New Package SCM Request
=======================
Package Name: fedora-review
Short Description: Review tool for fedora rpm packages
Owners: sochotni pingou
Branches: el5 f15 f16
InitialCC:

Comment 10 Stanislav Ochotnicky 2011-11-16 12:38:03 UTC
Correction, el5->el6


New Package SCM Request
=======================
Package Name: fedora-review
Short Description: Review tool for fedora rpm packages
Owners: sochotni pingou
Branches: el6 f15 f16
InitialCC:

Comment 11 Gwyn Ciesla 2011-11-16 15:40:23 UTC
Git done (by process-git-requests).

Comment 12 leigh scott 2011-11-17 21:05:53 UTC
Can you add something about fedora-review tool to the wiki?

https://fedoraproject.org/wiki/Package_Review_Process#Reviewer

Comment 13 Fedora Update System 2011-11-18 09:15:02 UTC
fedora-review-0.1.0-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/fedora-review-0.1.0-2.fc15

Comment 14 Fedora Update System 2011-11-18 09:15:13 UTC
fedora-review-0.1.0-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/fedora-review-0.1.0-2.fc16

Comment 15 Fedora Update System 2011-11-18 09:15:22 UTC
fedora-review-0.1.0-2.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/fedora-review-0.1.0-2.el6

Comment 16 Fedora Update System 2011-11-18 18:40:41 UTC
fedora-review-0.1.0-2.el6 has been pushed to the Fedora EPEL 6 testing repository.

Comment 17 Fedora Update System 2011-11-23 13:42:00 UTC
fedora-review-0.1.1-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/fedora-review-0.1.1-1.fc16

Comment 18 Fedora Update System 2011-11-23 13:42:09 UTC
fedora-review-0.1.1-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/fedora-review-0.1.1-1.el6

Comment 19 Fedora Update System 2011-11-23 13:42:18 UTC
fedora-review-0.1.1-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/fedora-review-0.1.1-1.fc15

Comment 20 Fedora Update System 2011-12-04 02:29:01 UTC
fedora-review-0.1.1-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2011-12-04 02:42:32 UTC
fedora-review-0.1.1-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 22 Fedora Update System 2011-12-12 19:26:34 UTC
fedora-review-0.1.1-1.el6 has been pushed to the Fedora EPEL 6 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.