Bug 1020681 - Review Request: pgtoolkit - Tools for PostgreSQL maintenance
Summary: Review Request: pgtoolkit - Tools for PostgreSQL maintenance
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-18 07:37 UTC by Dale Macartney
Modified: 2014-04-14 16:44 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-04-14 16:44:27 UTC
Type: Bug
Embargoed:
pbrobinson: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Dale Macartney 2013-10-18 07:37:21 UTC
SPEC: http://dbmacartney.fedorapeople.org/pgtoolkit/pgtoolkit.spec
SRPM: http://dbmacartney.fedorapeople.org/pgtoolkit/pgtoolkit-1.0.0-1.fc19.src.rpm

Description
PgToolkit is a collection of tools for PostgreSQL maintenance. 
PgToolkit so far uses the utility pgcompact to reduce PostgreSQL table and index bloat from databases.

Comment 1 Dale Macartney 2013-10-18 07:42:58 UTC
koji scratch build http://koji.fedoraproject.org/koji/taskinfo?taskID=6074235

Comment 2 Christopher Meng 2013-10-18 07:46:47 UTC
Drop-by ideas:

1. Requires:	perl-DBD-Pg

Have you tried

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

If RPM still can't find perl-DBD-Pg, you should add it.

However, I would have question about 

Requires:	perl-DBD-Pg

Since Fedora never suggests this way but this:

perl(DBD::Pg).

2. Better add a comment at %build so we know nothing is going to be built.

3. %description
PgToolkit is a collection of tools for PostgreSQL maintenance. 
PgToolkit so far uses the utility pgcompact to reduce PostgreSQL table and index bloat from databases. 

Too long, longer than 79 chars limitation, please change.

4. cp -drv lib/PgToolkit/ %{buildroot}%{perl_archlib}

-->

cp -adrv lib/PgToolkit/ %{buildroot}%{perl_archlib}

5. I would just write:

%{perl_archlib}/PgToolkit


to replace tons of lines in %files.

BTW I think %{perl_archlib} is wrong for noarch packages.

Comment 3 Peter Robinson 2013-10-18 10:31:50 UTC
I'll review this

Comment 4 Dale Macartney 2013-10-18 12:12:19 UTC
Thanks for the comments Christopher, suggestions have been applied. 

SPEC: http://dbmacartney.fedorapeople.org/pgtoolkit/pgtoolkit.spec
SRPM: http://dbmacartney.fedorapeople.org/pgtoolkit/pgtoolkit-1.0.0-2.fc19.src.rpm

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

Comment 5 Dale Macartney 2013-10-21 07:47:50 UTC
Contacted author of pgtoolkit for confirmation of license as tarball was not very clear. Updated spec to use PostgreSQL license. 

SPEC: http://dbmacartney.fedorapeople.org/pgtoolkit/pgtoolkit.spec
SRPM: http://dbmacartney.fedorapeople.org/pgtoolkit/pgtoolkit-1.0.0-3.fc19.src.rpm

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

Comment 6 Christopher Meng 2014-02-11 08:34:00 UTC
1. 1.0.1 is out

2. Leave a blank line between each changelog.

3. Peter, what about you?

Comment 8 Peter Robinson 2014-04-14 11:52:43 UTC
APPROVED

+ rpmlint output

$ rpmlint pgtoolkit.spec pgtoolkit-1.0.1-1.fc20.src.rpm pgtoolkit-1.0.1-1.fc20.noarch.rpm
pgtoolkit.src: W: spelling-error %description -l en_US pgcompact -> pg compact, pg-compact, compact
pgtoolkit.noarch: W: no-manual-page-for-binary pgcompact
2 packages and 1 specfiles checked; 0 errors, 2 warnings.

+ package name satisfies the packaging naming guidelines
+ specfile name matches the package base name
+ package should satisfy packaging guidelines
+ license meets guidelines and is acceptable to Fedora
+ license matches the actual package license
+ latest version packaged
+ %doc includes license file
+ spec file written in American English
+ spec file is legible
+ upstream sources match sources in the srpm
6eadf87b604478048736e5ca06af54b7  v1.0.1.tar.gz
+ package successfully builds on at least one architecture
  tested using koji scratch build
+ BuildRequires list all build dependencies
n/a %find_lang instead of %{_datadir}/locale/*
n/a binary RPM with shared library files must call ldconfig in %post and %postun+ does not use Prefix: /usr
n/a package owns all directories it creates
n/a no duplicate files in %files
+ Package perserves timestamps on install
+ Permissions on files must be set properly 
+ 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 runtime 
n/a header files should be in -devel
n/a static libraries should be in -static
n/a packages containing pkgconfig (.pc) files need 'Requires: pkgconfig'
n/a libfoo.so must go in -devel
n/a devel must require the fully versioned base
+ packages should not contain libtool .la files
n/a packages containing GUI apps must include %{name}.desktop file
+ packages must not own files or directories owned by other packages
+ filenames must be valid UTF-8

Optional:

+ if there is no license file, packager should query upstream to include it
n/a translations of description and summary for non-English languages, if
available
+ reviewer should build the package in mock/koji
n/a the package should build into binary RPMs on all supported architectures
n/a review should test the package functions as described
+ scriptlets should be sane
n/a non -devel packages should require fully versioned base
n/a pkgconfig files should go in -devel
+ shouldn't have file dependencies outside /etc /bin /sbin /usr/bin or
/usr/sbin

Comment 9 Dale Macartney 2014-04-14 13:30:54 UTC
New Package GIT Request
=======================
Package Name: pgtoolkit
Short Description: Tools for PostgreSQL maintenance
Owners: dbmacartney
Branches: F-20 F-19 EL-6
InitialCC:

Comment 10 Gwyn Ciesla 2014-04-14 13:42:37 UTC
Git done (by process-git-requests).


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