Bug 502689 (mingw32-cppunit) - Review Request: mingw32-cppunit - MinGW Windows C++ unit testing framework
Summary: Review Request: mingw32-cppunit - MinGW Windows C++ unit testing framework
Alias: mingw32-cppunit
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Kalev Lember
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2009-05-26 23:21 UTC by Nicolas Chauvet (kwizart)
Modified: 2009-09-01 08:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-09-01 08:47:20 UTC
Type: ---
kalevlember: fedora-review+
j: fedora-cvs+

Attachments (Terms of Use)

Description Nicolas Chauvet (kwizart) 2009-05-26 23:21:14 UTC
Spec URL:
Description: C++ unit testing framework

Comment 1 Kalev Lember 2009-08-02 17:15:06 UTC
Taking for review.

Some initial notes:

! Building the package fails in mock because of
  missing BuildRequires mingw32-gcc-c++

! If doxygen is present in build host, building fails with:
error: Installed (but unpackaged) file(s) found:

Please use explicit --disable-doxygen configure option to prevent that.

! cppunit-config.1 duplicates documentation of native cppunit package. As per Fedora MinGW packaging guidelines[1], those man pages that are duplicates of the ones found in native packages should be removed.

! rpmlint output:
$ rpmlint mingw32-cppunit-1.12.1-1.fc12.src.rpm mingw32-cppunit-1.12.1-1.fc12.noarch.rpm
mingw32-cppunit.noarch: W: manpage-not-compressed-with-gzip /usr/i686-pc-mingw32/sys-root/mingw/share/man/man1/cppunit-config.1
2 packages and 0 specfiles checked; 0 errors, 1 warnings.

That warning will go away if you remove cppunit-config.1 man page as discussed above.

! All DLLs in %files section should be listed separately as per Fedora MinGW packaging guidelines

! Fedora Packaging Guidelines prefer %global macro instead of %define. [2]

! description says:
MinGW Windows cppunit compression library.

It's not really a compression library, is it?

Also consider changing description from:
C++ unit testing framework
MinGW Windows C++ unit testing framework
to better match other Fedora MinGW packages.

[1] http://fedoraproject.org/wiki/Packaging/MinGW
[2] https://fedoraproject.org/wiki/Packaging:Guidelines#.25global_preferred_over_.25define

Comment 2 Kalev Lember 2009-08-02 18:38:36 UTC
(In reply to comment #1)
> Also consider changing description from:
> C++ unit testing framework
> to:
> MinGW Windows C++ unit testing framework
> to better match other Fedora MinGW packages.

Oops, I meant summary line here, not description.

Comment 3 Nicolas Chauvet (kwizart) 2009-08-08 09:14:47 UTC
Thx for the review.
As I was busy, I plan to update on Monday, please ping if not done.

Comment 4 Kalev Lember 2009-08-16 21:49:49 UTC

Comment 5 Nicolas Chauvet (kwizart) 2009-08-17 15:18:52 UTC
Spec URL:
Description: MinGW Windows C++ unit testing framework

- Fix BR mingw32-gcc-c++
- Update description
- Disable duplicated docs with native package.

Comment 6 Kalev Lember 2009-08-19 13:53:53 UTC
Fedora review mingw32-cppunit-1.12.1-2.fc11.src.rpm 2009-08-19

+ OK
! needs attention

+ rpmlint is quiet
+ Package is named according to Fedora MinGW packaging guidelines
+ Specfile name matches the package base name
+ Package follows the Fedora MinGW packaging guidelines
+ The stated license (LGPLv2+) is a Fedora approved license
+ The stated license is the same as the one for the corresponding
  Fedora package
+ The package contains the license file (COPYING)
+ Spec file is written in American English
+ Spec file is legible
+ Upstream sources match sources in the srpm
  bd30e9cf5523cdfc019b94f5e1d7fd19  cppunit-1.12.1.tar.gz
  bd30e9cf5523cdfc019b94f5e1d7fd19  Download/cppunit-1.12.1.tar.gz
+ Package builds in mock (Fedora Rawhide i386)
n/a ExcludeArch bugs filed
+ BuildRequires look sane
n/a The spec file MUST handle locales properly
n/a binary RPM with shared library files must call ldconfig in %post and
+ Does not use Prefix: /usr
+ Package owns all directories it creates
+ No duplicate files in %files
+ %files has %defattr
+ %clean contains rm -rf $RPM_BUILD_ROOT
+ Consistent use of macros
+ Package must contain code or permissible content
n/a Large documentation files should go in -doc subpackage
+ Files marked %doc should not affect package
n/a Header files should be in -devel
    Fedora MinGW guidelines allow headers in main package
n/a Static libraries should be in -static
! Packages containing pkgconfig (.pc) files need 'Requires: pkgconfig'
n/a Library files that end in .so must go in a -devel package
n/a -devel must require the fully versioned base
n/a Packages should not contain libtool .la files
    Fedora MinGW guidelines allow .la files
n/a Packages containing GUI apps must include %{name}.desktop file
+ Packages must not own files or directories owned by other packages
+ %install begins with rm -rf $RPM_BUILD_ROOT
+ Filenames must be valid UTF-8

! According to http://fedoraproject.org/wiki/Packaging:Guidelines#Changelogs
  packages must use one of the changelog formats defined in there.

1) Use your real name in the changelog;
2) fix the date of latest entry (it reads Jan 5 right now);
3) remove spaces around your email address.

It should read something like this:
* Mon Jan  5 2009 Nicolas Chauvet <kwizart@gmail.com> - 1.12.1-1

Besides the missing Requires: pkgconfig and the problem with changelog entries
the spec file looks good.

Comment 7 Kalev Lember 2009-08-30 13:39:34 UTC
ping Nicolas Chauvet

Comment 8 Nicolas Chauvet (kwizart) 2009-08-31 15:36:10 UTC
Hi! I was just back from few days off this weekend...

I've updated the srpm/spec without bumping release because nothing was related to the binary package itself.

Comment 9 Kalev Lember 2009-08-31 20:22:28 UTC
Adding a Requires line certainly counts as a change to the binary rpm. Anyway, the package looks good now.


Comment 10 Nicolas Chauvet (kwizart) 2009-08-31 20:44:39 UTC
New Package CVS Request
Package Name: mingw32-cppunit
Short Description: MinGW Windows C++ unit testing framework
Owners: kwizart
Branches: devel F-11 EL-5

Comment 11 Jason Tibbitts 2009-08-31 23:15:53 UTC
CVS done.

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