Spec URL: https://docs.google.com/file/d/0B1LZtQy9lCKnQklKWFY5angyQmM/edit?usp=sharing SRPM URL: https://docs.google.com/file/d/0B1LZtQy9lCKnTHNLTzRUZzk1MkE/edit?usp=sharing Description: Libcomps is alternative for yum.comps library, written in C Fedora Account System Username:jluza
automated output seems fine: ===== MUST items ===== C/C++: [ ]: Package does not contain kernel modules. [ ]: Package contains no static executables. [x]: Package does not contain any libtool archives (.la) [x]: Rpath absent or only used for internal libs. Generic: [ ]: Package is licensed with an open-source compatible license and meets other legal requirements as defined in the legal section of Packaging Guidelines. [ ]: %build honors applicable compiler flags or justifies otherwise. [ ]: All build dependencies are listed in BuildRequires, except for any that are listed in the exceptions section of Packaging Guidelines. Note: Using prebuilt rpms. [ ]: Package contains no bundled libraries without FPC exception. [ ]: Changelog in prescribed format. [ ]: Sources contain only permissible code or content. [ ]: Package contains desktop file if it is a GUI application. [ ]: Development files must be in a -devel package [ ]: Package requires other packages for directories it uses. [ ]: Package uses nothing in %doc for runtime. [ ]: Package is not known to require ExcludeArch. [ ]: Package complies to the Packaging Guidelines [ ]: If (and only if) the source package includes the text of the license(s) in its own file, then that file, containing the text of the license(s) for the package is included in %doc. [ ]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. Licenses found: "GPL", "Unknown or generated". 10 files have unknown license. Detailed output of licensecheck in /home/akozumpl/Downloads/review- libcomps/licensecheck.txt [ ]: Package consistently uses macro is (instead of hard-coded directory names). [ ]: Package is named according to the Package Naming Guidelines. [ ]: Package does not generate any conflict. [ ]: Package obeys FHS, except libexecdir and /usr/target. [ ]: If the package is a rename of another package, proper Obsoletes and Provides are present. [ ]: Package must own all directories that it creates. [ ]: Package does not own files or directories owned by other packages. [ ]: Requires correct, justified where necessary. [ ]: Spec file is legible and written in American English. [ ]: Package contains systemd file(s) if in need. [ ]: Large documentation must go in a -doc subpackage. [ ]: Packages must not store files under /srv, /opt or /usr/local Note: Cannot unpack rpms (using --prebuilt?) [ ]: Package successfully compiles and builds into binary rpms on at least one supported primary architecture. Note: Using prebuilt packages [x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the beginning of %install. [x]: Each %files section contains %defattr if rpm < 4.4 [x]: Macros in Summary, %description expandable at SRPM build time. [x]: Package does not contain duplicates in %files. [x]: Permissions on files are set properly. [x]: Fully versioned dependency in subpackages, if present. [x]: Package use %makeinstall only when make install' ' DESTDIR=... doesn't work. [x]: Package is named using only allowed ASCII characters. [x]: Package do not use a name that already exist [x]: Package is not relocatable. [x]: Sources used to build the package match the upstream source, as provided in the spec URL. [x]: Spec file name must match the spec package %{name}, in the format %{name}.spec. [x]: File names are valid UTF-8. [x]: Package installs properly. [x]: Rpmlint is run on all rpms the build produces. Note: No rpmlint messages. ===== SHOULD items ===== Generic: [!]: Reviewer should test that the package builds in mock. [ ]: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it. [ ]: Final provides and requires are sane (see attachments). [ ]: Package functions as described. [ ]: Latest version is packaged. [ ]: Package does not include license text files separate from upstream. [ ]: Scriptlets must be sane, if used. [ ]: Description and summary sections in the package spec file contains translations for supported Non-English languages, if available. [ ]: Package should compile and build into binary rpms on all supported architectures. [ ]: %check is present and all tests pass. [ ]: Packages should try to preserve timestamps of original installed files. [x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file [x]: Sources can be downloaded from URI in Source: tag [x]: Buildroot is not present [x]: Package has no %clean section with rm -rf %{buildroot} (or $RPM_BUILD_ROOT) [x]: Dist tag is present. [x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin. [x]: Uses parallel make. [x]: SourceX tarball generation or download is documented. [x]: SourceX is a working URL. [x]: Spec use %global instead of %define.
the package builds fine.
rpmlint on the spec gives warnings: [akozumpl@localhost ~/Downloads]$ rpmlint libcomps.spec libcomps.spec:5: W: macro-in-comment %global libcomps.spec:119: W: macro-in-comment %doc libcomps.spec:133: W: macro-in-comment %doc libcomps.spec:140: W: macro-in-comment %doc 0 packages and 1 specfiles checked; 0 errors, 4 warnings. please remove these comments from the spec file.
Remove rm -rf %{buildroot} in install section. Suggestions: README.md COPYING can be put into main package, -doc subpackage should only contains some real documents.
This is a nit, but can you please change the description from: "Alternative for yum.comps written in C" It shouldn't reference yum.comps as that's about to disappear soon and many people are not even aware how comps are parsed. Just say what the lib is capable of in general.
Outcome of nontrivial high-quality review is that the package NEEDSWORK for now, on the issues mentioned in comments 3 to 5.
> %files > %{_libdir}/libcomps.so.* > %exclude %{_libdir}/python* Uh? The %exclude statement here is useless, because no other line in this %files section includes what you want to be excluded. > %files devel > %{_libdir}/libcomps.so > %exclude %{_libdir}/python* > %{_includedir}/* Same here.
#3, #4, #5, #7 fixed new SPEC and SRPM: SPEC https://docs.google.com/file/d/0B1LZtQy9lCKnMjFDTTB4X0c5Qlk/edit?usp=sharing SRPM https://docs.google.com/file/d/0B1LZtQy9lCKneVZwMVM4ejl6Wlk/edit?usp=sharing
this is much better, the only remaining thing I see is the conditional compilation for python2/python3. why not just drop the globals determining this and always build both packages in Fedora?
(In reply to Ales Kozumplik from comment #9) > this is much better, the only remaining thing I see is the conditional > compilation for python2/python3. why not just drop the globals determining > this and always build both packages in Fedora? hmm, formulated as a question, though what I mean is: drop the globals and simplify the spec and then we're good to go.
#10 fixed SPEC https://docs.google.com/file/d/0B1LZtQy9lCKnajh6MkhrSUZQaUU/edit?usp=sharing SRPM https://docs.google.com/file/d/0B1LZtQy9lCKndVlfVDlqS2NfS2s/edit?usp=sharing
(In reply to Jindrich Luza from comment #11) > #10 fixed > > SPEC > https://docs.google.com/file/d/0B1LZtQy9lCKnajh6MkhrSUZQaUU/edit?usp=sharing > SRPM > https://docs.google.com/file/d/0B1LZtQy9lCKndVlfVDlqS2NfS2s/edit?usp=sharing Forget to remove comment in head of spec file. Files bellow should be fine: SPEC https://docs.google.com/file/d/0B1LZtQy9lCKnbjBybTUtM3Bjanc/edit?usp=sharing SRPM https://docs.google.com/file/d/0B1LZtQy9lCKnODdOWW92dkh3aFU/edit?usp=sharing
accepted.
New Package SCM Request ======================= Package Name: libcomps Short Description: Comps XML file manipulation library Owners: jluza Branches: f18 f19 el6 InitialCC:
"jluza" is not in the packager group.
I'll sponsor Jindrich and here are my notes that need to be addressed - drop the %global name as it's redundant, the same variable is provided by the Name tag, and use the "commit" variable for Source0 URL - the source archive is actually a ZIP file although is called tar.gz - build fails on arm (http://koji.fedoraproject.org/koji/taskinfo?taskID=5691667) - why there is versioned BR for cmake? There 2.8.x in Fedora for a long time. - drop the hardcoded Requires: python[23], they will added by rpm-build automagically in form "python(abi) = major.minor"
for EPEL-6 you will need to BR: cmake28 as RHEL-6 carries cmake in version 2.6
and the doc subpackage should be built as noarch (via BuildArch: noarch), eventually with the doxygen config updated so it doesn't include timestamps into the generated content (usually footers)
fixed #16, #17, #18 SPEC: https://docs.google.com/file/d/0B1LZtQy9lCKnM0pYZEViR2pmQTg/edit?usp=sharing SRPM: https://docs.google.com/file/d/0B1LZtQy9lCKnVkJZWWV3UDFGaUk/edit?usp=sharing
Dan, can you please sponsor Jindrich now that he removed all the issues?
looks good now, the last thing required is to drop the %{_isa} suffix in the Requires for the doc subpackage, it makes the noarch subpackage different between arches (http://koji.fedoraproject.org/koji/taskinfo?taskID=5783319), please fix before importing to git package is APPROVED, I'm going to sponsor Jindrich now
Git done (by process-git-requests).
Package Change Request ====================== Package Name: libcomps New Branches: epel7 Owners: jluza
Branch exists.