Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=226663
--- Comment #6 from Vitezslav Crhonek vcrhonek@redhat.com 2008-10-21 09:15:19 EDT --- (In reply to comment #1)
Thanks for CC'ing me.
I question my sanity for even looking at this, but I used NIS in a past life so...
Here's what rpmlint has to say:
W: ypbind summary-ended-with-dot The NIS daemon which binds NIS clients to an NIS domain. Picky, I guess, but easy to fix.
Fixed.
E: ypbind tag-not-utf8 %changelog E: ypbind non-utf8-spec-file ypbind.spec It's the ΓΈ in Trond's name; iconv should fix it up.
Fixed.
W: ypbind strange-permission ypbind.init 0755 rpmlint complains about anything that's not 644 in the SRPM; I don't think this is a big deal.
Init scripts should have 0755 permissions. I suggest to let it be as it is.
W: ypbind prereq-use /sbin/chkconfig Prereq: shouldn't be used. Actually the scriptlets and their dependencies need a few fixes.
Fixed using actual https://fedoraproject.org/wiki/Packaging/SysVInitScript
W: ypbind macro-in-%changelog config % signs need doubling in %changelog.
Fixed.
W: ypbind patch-not-applied Patch5: ypbind-1.19-debuginfo.patch I guess this patch isn't needed at all any longer; it should probably just go.
You're right, debuginfo package works fine, patch removed.
The packaging guidelines require that the buildroot contains %{name}, %{version} and %{release}.
That's okay yet (fixed in 3:1.20.4-4).
You shouldn't use %makeinstall unless the usual "make DESTDIR=..." doesn't work. Everything seems to work OK with the latter, so....
Fixed.
You need finegrained dependencies for the scriptlets instead of Prereq:
Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service Requires(postun): /sbin/service
Commented above.
Initscripts must not be marked as %config files.
Fixed. (But - "A valid exception to this rule would be existing packages where configuration is still done via the init file.". Well, I'm not sure if OTHER_YPBIND_OPTS="" is configuration... Probably not:))
There's a whole push to use LSB-standard initscripts, but I'm not sure where it stands and I'm not going to worry about that here.
We're working on new standards for the license, but the files in the tarball don't agree about whether it's GPLv2 only or GPLv2 or later.
That's okay yet (you fixed it 1.20.4-7)
You can probably drop the bash >= 2.0 requirement; rpm will find the need for /bin/bash on its own, and even FC-1 had bash 2.05b.
Bash requirement removed.
This package should not own /var/yp; the filesystem pakage owns it.
Directory removed.
I'll attach a patch that fixes the minor issues; the license thing will probably require consultation with upstream.
Review:
- source files match upstream: f49e0706517f2761cfa45f7a02c5e1562a67b104a267b220a37fa3ab217f9e34 ypbind-mt-1.20.4.tar.bz2
- package meets naming and versioning guidelines.
- specfile is properly named, is cleanly written and uses macros consistently.
X summary ends in a period, annoying rpmlint
- description is OK.
- dist tag is present.
X build root is missing %{release} ? license field matches the actual license.
- license is open source-compatible.
- license text included in package.
- latest version is being packaged.
- BuildRequires are proper.
- compiler flags are appropriate.
- %clean is present.
- package builds in mock (development, x86_64).
- package installs properly
- debuginfo package looks complete.
X rpmlint has valid complaints. X final provides and requires are missing /sbin/service config(ypbind) = 3:1.20.4-1.fc8 ypbind = 3:1.20.4-1.fc8 = /bin/bash /bin/sh /sbin/chkconfig bash >= 2.0 config(ypbind) = 3:1.20.4-1.fc8 libdbus-1.so.3()(64bit) libdbus-glib-1.so.2()(64bit) libglib-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) rpcbind yp-tools
- %check is not present; no test suite upstream. I have fortunately exorcised NIS from my network so I've no way to test this.
- no shared libraries are added to the regular linker search paths.
- owns the directories it creates.
X should not own /var/yp
- no duplicates in %files.
- file permissions are appropriate.
- no scriptlets present.
- code, not content.
- documentation is small, so no -docs subpackage is necessary.
- %docs are not necessary for the proper functioning of the package.
- no headers.
- no pkgconfig files.
- no static libraries.
- no libtool .la files.
Changes commited to Rawhide.