Bug 823623 - Review Request: mingw-libusbx - MinGW library which allows userspace access to USB devices
Summary: Review Request: mingw-libusbx - MinGW library which allows userspace access t...
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: 2012-05-21 17:51 UTC by Marc-Andre Lureau
Modified: 2013-05-29 02:58 UTC (History)
5 users (show)

Fixed In Version: mingw-libusbx-1.0.12-2.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-21 08:33:33 UTC
Type: ---
Embargoed:
hdegoede: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Marc-Andre Lureau 2012-05-21 17:51:38 UTC
Spec URL: http://elmarco.fedorapeople.org/mingw-libusb1.spec
SRPM URL: http://elmarco.fedorapeople.org/mingw-libusb1-1.0.9-1.fc17.src.rpm
Description: This package provides a way for applications to access USB devices.
Fedora Account System Username: elmarco

Comment 1 Hans de Goede 2012-05-22 12:05:39 UTC
Hi,

I'll review this, but first can you please re-spin the package to be based on libusbx? libusbx is a fork of libusb by most of the libusb developers for various reasons. The developers behind the fork include yours truly, as well as the windows maintainer, making libusbx a better starting point for a mingw package.

Notice that the regular Fedora libusb package is also moving over to libusbx, see bug 823886 for the Rename Review Request for that, including the new specfile for a libusbx based Fedora libusb package.

Regards,

Hans

Comment 2 Marc-Andre Lureau 2012-05-22 13:02:14 UTC
Spec URL: http://elmarco.fedorapeople.org/mingw-libusbx.spec
SRPM URL: http://elmarco.fedorapeople.org/mingw-libusbx-1.0.9-1.fc17.src.rpm
Description: This package provides a way for applications to access USB devices.
Fedora Account System Username: elmarco

Comment 3 Hans de Goede 2012-05-22 13:24:36 UTC
Full review done:

Good:
--------
- rpmlint checks return:
mingw32-libusbx-debuginfo.noarch: E: debuginfo-without-sources
mingw32-libusbx-static.noarch: W: no-documentation
mingw64-libusbx-debuginfo.noarch: E: debuginfo-without-sources
mingw64-libusbx-static.noarch: W: no-documentation
^^These are all expected for mingw packages, so no problem here ^^
- package meets naming guidelines
- package meets packaging guidelines
- license (LGPLv2+) OK, text in %doc, matches source
- spec file legible, in am. english
- source matches upstream
- package compiles on devel (x86)
- no missing BR
- no unnecessary BR
- locales properly handled
- not relocatable
- no duplicate files
- permissions ok
- %clean ok
- macro use consistent
- code, not content
- no need for -docs
- nothing in %doc affects runtime
- no need for .desktop file

Should fix:
---------------
- rpmlint checks return:
 mingw-libusbx.src: W: strange-permission libusbx-1.0.11.tar.bz2 0640L
Please fix before import

- rpmlint checks return:
 mingw32-libusbx.noarch: W: wrong-file-end-of-line-encoding /usr/share/doc/mingw32-libusbx-1.0.11/ChangeLog
 mingw64-libusbx.noarch: W: wrong-file-end-of-line-encoding /usr/share/doc/mingw64-libusbx-1.0.11/ChangeLog
The ChangeLog file is not that interesting anyways, it says: "For the latest change log, please visit:
http://libusbx.git.sourceforge.net/git/gitweb.cgi?p=libusbx/libusbx;a=log"
So I suggest just dropping it.

- There is a "rm -rf $RPM_BUILD_ROOT" in your %install, this is not needed with modern rpm versions, and
  should not be there unless you also manually specify a buildroot and have a manual %clean section

- Does not own all directories that it creates!
The mingw32-* and mingw64-* packages install files under /usr/i686-w64-mingw32 resp /usr/x86_64-w64-mingw32 And subdirs under these dirs which no packages own, therefor the mingw32-* and mingw64-* packages should have a Requires on mingw32-filesystem resp mingw64-filesystem. This seems to be an oversight in the mingw packaging guidelines which are missing these requires in their example specfile too. Can you please discuss this with the other mingw packaging folks?

No blockers -> Approved!

Comment 4 Erik van Pienbroek 2012-05-22 13:28:37 UTC
(In reply to comment #3)
> - Does not own all directories that it creates!
> The mingw32-* and mingw64-* packages install files under
> /usr/i686-w64-mingw32 resp /usr/x86_64-w64-mingw32 And subdirs under these
> dirs which no packages own, therefor the mingw32-* and mingw64-* packages
> should have a Requires on mingw32-filesystem resp mingw64-filesystem. This
> seems to be an oversight in the mingw packaging guidelines which are missing
> these requires in their example specfile too. Can you please discuss this
> with the other mingw packaging folks?

Hi Hans,

The Requires tags for mingw32-filesystem and mingw64-filesystem are added automatically by the %{?mingw_package_header} macro. This macro overrides the default RPM find requires script with /usr/lib/rpm/mingw-find-requires.sh which automatically adds the proper requires tags for mingw packages

Comment 5 Marc-Andre Lureau 2012-05-22 13:36:50 UTC
New Package SCM Request
=======================
Package Name: mingw-libusbx
Short Description: MinGW library which allows userspace access to USB devices
Owners: elmarco epienbro hdegoede
Branches: f17
InitialCC:

Comment 6 Gwyn Ciesla 2012-05-22 13:52:01 UTC
Git done (by process-git-requests).

Corrected Hans' FAS username.

Comment 7 Fedora Update System 2012-05-22 14:25:05 UTC
mingw-libusbx-1.0.11-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/mingw-libusbx-1.0.11-1.fc17

Comment 8 Fedora Update System 2012-05-24 15:33:16 UTC
mingw-libusbx-1.0.11-1.fc17 has been pushed to the Fedora 17 testing repository.

Comment 9 Fedora Update System 2012-07-11 00:23:38 UTC
mingw-libusbx-1.0.12-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/mingw-libusbx-1.0.12-1.fc17

Comment 10 Fedora Update System 2013-05-20 18:27:11 UTC
mingw-libusbx-1.0.12-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mingw-libusbx-1.0.12-2.fc18

Comment 11 Fedora Update System 2013-05-20 18:28:08 UTC
mingw-libusbx-1.0.12-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/mingw-libusbx-1.0.12-2.fc19

Comment 12 Fedora Update System 2013-05-21 08:33:33 UTC
mingw-libusbx-1.0.12-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2013-05-29 00:58:41 UTC
mingw-libusbx-1.0.12-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2013-05-29 02:58:14 UTC
mingw-libusbx-1.0.12-2.fc19 has been pushed to the Fedora 19 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.