Bug 443248 - Review Request: rubygem-activeldap - LDAP APIs for Ruby
Summary: Review Request: rubygem-activeldap - LDAP APIs for Ruby
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-19 19:09 UTC by Darryl L. Pierce
Modified: 2015-06-22 00:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-15 13:53:13 UTC
Type: ---
Embargoed:
tcallawa: fedora-review+
kevin: fedora-cvs+


Attachments (Terms of Use)

Comment 1 Tom "spot" Callaway 2008-04-28 14:02:27 UTC
SRPM url is a 404, please check your files (I don't see any SRPMs in that
directory).

Comment 2 Darryl L. Pierce 2008-04-28 14:11:28 UTC
My bad. The web server was rebuilt over the weekend and the SRPMs weren't
restored. They're there now.

Comment 3 Tom "spot" Callaway 2008-04-28 14:21:47 UTC
Looking through this one now, but I already see one missing item:

The Ruby Guidelines (http://fedoraproject.org/wiki/Packaging/Ruby) say:

Each Ruby package must indicate the Ruby ABI version it depends on with a line like

Requires: ruby(abi) = 1.8

Ruby packages must require ruby at build time with a BuildRequires: ruby, and
may indicate the minimal ruby version they need for building. 

Comment 4 Tom "spot" Callaway 2008-04-28 14:23:17 UTC
... and:

The Source of the package must be the full URL to the released Gem archive; the
version of the package must be the Gem's version.

Perhaps you should look through Packaging/Ruby and put up another SRPM? :)

Comment 5 Darryl L. Pierce 2008-04-28 14:43:08 UTC
I've redone the spec file and believe it's now comforming to the Fedora guide.
I've done this across all three ruby gems I've submitted.

Comment 6 Tom "spot" Callaway 2008-04-28 14:49:49 UTC
In general, it is good form to bump the release and add a changelog entry when
making changes, even during the review process. This way, reviewers can more
easily track progress. :)

No worries on this one, but you might want to update the other pending packages
appropriately with new SRPMs and bugzilla mentions.

Comment 7 Darryl L. Pierce 2008-04-28 14:57:50 UTC
I've updated the release for each of them, and added an entry in the change log
for each mentioning that they were updated to comply with the packaging
guidelines. Do I need to also update the URLs in the review requests as well?

Comment 8 Tom "spot" Callaway 2008-04-28 15:10:14 UTC
Yes, it is generally accepted that when spec/srpm changes, you should add a bz
post of the format:

Fixed issue foo, bar, baz.

New SRPM: http://foo.bar.com/baz.src.rpm
New SPEC: http://foo.bar.com/baz.spec

Comment 9 Tom "spot" Callaway 2008-04-28 15:46:57 UTC
rpmlint says:

rubygem-activeldap.src: W: mixed-use-of-spaces-and-tabs (spaces: line 39, tab:
line 7)
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/about 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/process/inspector
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/plugin 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/public/dispatch.cgi
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/groupls 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/usermod-binary-add 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/usermod-binary-add-time 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/groupdel 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/process/spawner
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/useradd-binary 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/usermod-lang-add 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/process/reaper
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/usermod 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/ouadd 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/groupmod 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/performance/benchmarker
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/lib/active_ldap.rb 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/console 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/performance/request
0644
rubygem-activeldap.noarch: E: zero-length
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/public/favicon.ico
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/lpasswd 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/server 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/usermod-binary-del 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/destroy 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/test/run-test.rb 0644
rubygem-activeldap.noarch: E: htaccess-file
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/public/.htaccess
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/test/run-test.sh
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/public/dispatch.fcgi
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/groupadd 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/generate 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/public/dispatch.rb
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/userdel 0644
rubygem-activeldap.noarch: E: zero-length
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/public/stylesheets/welcome.css
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/performance/profiler
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/useradd 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/script/runner 0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/userls 0644

Can you take a shot at resolving those errors? Should be as easy as deleting the
0 length files (and the .htaccess file) and running chmod +x on the scripts. I'm
less concerned about the spaces vs tabs, but while you're in there...

Comment 10 Darryl L. Pierce 2008-04-28 17:02:52 UTC
I've modified the spec to set executable all scripts and to delete the 0-length
files.

Comment 11 Tom "spot" Callaway 2008-04-28 17:13:23 UTC
You can simplify that %define installroot like this:

%define installroot %{buildroot}%{geminstdir}

Also, please move those macro defines to the top. It helps the spec stay clean
for others, who may not be expecting new macro defines in the middle of the spec.

Comment 12 Darryl L. Pierce 2008-04-28 19:22:06 UTC
Done. I've updated the spec to move all macros to the top, and simplified the
installroot definition.

Comment 13 Darryl L. Pierce 2008-04-29 15:10:10 UTC
I've fixed another issue in this RPM where an implied dependency on
/usr/bin/ruby1.8 was created by some scripts. The spec file now replaces the
shebang with /usr/bin/ruby as the dependency. 

This is in rev. 6 of the SRPM.

Comment 14 Tom "spot" Callaway 2008-04-29 15:14:56 UTC
(In reply to comment #13)

> This is in rev. 6 of the SRPM.

It is very useful to post a new URL for the updated SRPM. :)


Comment 16 Tom "spot" Callaway 2008-04-29 16:45:37 UTC
rpmlint is down to:

rubygem-activeldap.src: W: mixed-use-of-spaces-and-tabs (spaces: line 43, tab:
line 10)
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/public/dispatch.cgi
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/test/run-test.sh
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/public/dispatch.fcgi
0644
rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/public/dispatch.rb
0644

Can you resolve those? 

Comment 17 Darryl L. Pierce 2008-04-29 19:40:53 UTC
Updated to take care of everything except the space/tab issue (that I'm passing
upstream to fix, along with the scripting issues):

Spec: http://mcpierce.dyndns.org/~mcpierce/rubygem-activeldap.spec
SRPM: http://mcpierce.dyndns.org/~mcpierce/rubygem-activeldap-0.10.0-7.fc8.src.rpm



Comment 18 Tom "spot" Callaway 2008-04-29 20:03:00 UTC
You missed one:

rubygem-activeldap.noarch: E: non-executable-script
/usr/lib/ruby/gems/1.8/gems/activeldap-0.10.0/examples/al-admin/test/run-test.sh
0644

Comment 19 Darryl L. Pierce 2008-04-29 20:25:10 UTC
Fixed the last script. Ran rpmlint to make sure no other scripts were missed.

Spec: http://mcpierce.dyndns.org/~mcpierce/rubygem-activeldap.spec
SRPM: http://mcpierce.dyndns.org/~mcpierce/rubygem-activeldap-0.10.0-8.fc8.src.rpm

Comment 20 Tom "spot" Callaway 2008-04-29 20:48:48 UTC
Good:

- rpmlint checks return:
rubygem-activeldap.src: W: mixed-use-of-spaces-and-tabs (spaces: line 42, tab:
line 10)

Safe to ignore, since you're working with upstream to fix the generation script.

- package meets naming guidelines
- package meets packaging guidelines (general and ruby)
- license (GPLv2+) OK, text in %doc, matches source
- spec file legible, in am. english
- source matches upstream (7aeaf58a819357bdf2044fd664db420d40aa15dd)
- package builds on devel (x86_64)
- no missing BR
- no unnecessary BR
- no locales
- not relocatable
- owns all directories that it creates
- 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 

APPROVED.

Comment 21 Darryl L. Pierce 2008-05-07 13:34:56 UTC
New Package CVS Request
=======================
Package Name: rubygem-activeldap
Short Description: LDAP APIs for Ruby
Owners: mcpierce
Branches: F-8 F-9
InitialCC: none
Cvsextras Commits: Yes

Comment 22 Kevin Fenzi 2008-05-07 16:47:31 UTC
cvs done.

Comment 23 Darryl L. Pierce 2008-05-15 13:53:13 UTC
This now builds fine in koji.


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