https://bugzilla.redhat.com/show_bug.cgi?id=1989291 Ben Beasley <code@xxxxxxxxxxxxxxxxxx> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|fedora-review? |fedora-review+ |needinfo?(code@musicinmybra | |in.net) | --- Comment #9 from Ben Beasley <code@xxxxxxxxxxxxxxxxxx> --- I still have a few recommendations, below, but I think this package is compliant with the packaging guidelines as-is, so it is APPROVED. Package Review ============== Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated Issues: ======= - Dist tag is present. OK: fedora-review does not understand rpmautospec - The %{__cmake_builddir} macro is private and at risk of being removed. In an out-of-source build, it is the same as %{_vpath_builddir}, and you are supposed to use that instead. https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/#_available_macros I am still not sure if you are trying to target EPEL with this spec file, but I have confirmed this works on EPEL8 (with “%undefine __cmake_in_source_build”), and I know you’re not targeting EPEL7 because it would require several other spec file changes. - These really aren’t needed, as they are always present in mock or koji build environments. There are almost no packages in the distribution that currently have explicit BR’s on these. I suggest removing them. BuildRequires: rpmautospec redhat-rpm-config Notes (no change required): =========================== - You could shorten the Patch0 URL, if you liked, from Patch1: https://patch-diff.githubusercontent.com/raw/docopt/docopt.cpp/pull/145.patch#/docopt-0.6.3-run-tests.patch to Patch1: %{url}/pull/145.patch#/docopt-0.6.3-run-tests.patch which redirects to the URL you used. - All rpmlint messages appear to be related to localized dates in the change log or to be spurious. (Several of them I see on basically every package with rpmlint 2.x.) ===== MUST items ===== C/C++: [x]: Package does not contain kernel modules. [x]: Package contains no static executables. [x]: If your application is a C or C++ application you must list a BuildRequires against gcc, gcc-c++ or clang. [x]: Header files in -devel subpackage, if present. [x]: ldconfig not called in %post and %postun for Fedora 28 and later. [x]: Package does not contain any libtool archives (.la) [x]: Rpath absent or only used for internal libs. [x]: Development (unversioned) .so files in -devel subpackage, if present. Generic: [x]: Package is licensed with an open-source compatible license and meets other legal requirements as defined in the legal section of Packaging Guidelines. [x]: License field in the package spec file matches the actual license. Note: Checking patched sources after %prep for licenses. Licenses found: "Unknown or generated", "*No copyright* Boost Software License 1.0", "MIT License". 15 files have unknown license. Detailed output of licensecheck in /home/reviewer/1989291-docopt- cpp/20211117/1989291-docopt-cpp/licensecheck.txt [x]: License file installed when any subpackage combination is installed. [-]: If the package is under multiple licenses, the licensing breakdown must be documented in the spec. [x]: %build honors applicable compiler flags or justifies otherwise. [x]: Package contains no bundled libraries without FPC exception. [-]: Changelog in prescribed format. Localized dates seem to be an rpmautospec issue and will hopefully be resolved on import [x]: Sources contain only permissible code or content. [-]: Package contains desktop file if it is a GUI application. [x]: Development files must be in a -devel package [x]: Package uses nothing in %doc for runtime. [x]: Package consistently uses macros (instead of hard-coded directory names). [x]: Package is named according to the Package Naming Guidelines. [x]: Package does not generate any conflict. [x]: Package obeys FHS, except libexecdir and /usr/target. [-]: If the package is a rename of another package, proper Obsoletes and Provides are present. [x]: Requires correct, justified where necessary. [x]: Spec file is legible and written in American English. (except localized dates in changelog, blamed on rpmautospec) [-]: Package contains systemd file(s) if in need. [x]: Useful -debuginfo package or justification otherwise. [x]: Package is not known to require an ExcludeArch tag. [-]: Large documentation must go in a -doc subpackage. Large could be size (~1MB) or number of files. Note: Documentation size is 20480 bytes in 1 files. [x]: Package complies to the Packaging Guidelines [x]: Package successfully compiles and builds into binary rpms on at least one supported primary architecture. [x]: Package installs properly. [x]: Rpmlint is run on all rpms the build produces. Note: There are rpmlint messages (see attachment). [x]: 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 %license. [x]: Package requires other packages for directories it uses. [x]: Package must own all directories that it creates. [x]: Package does not own files or directories owned by other packages. [x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT [x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the beginning of %install. [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]: Package must not depend on deprecated() packages. [x]: Package use %makeinstall only when make install DESTDIR=... doesn't work. [x]: Package is named using only allowed ASCII characters. [x]: Package does not use a name that already exists. [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]: Packages must not store files under /srv, /opt or /usr/local ===== SHOULD items ===== Generic: [-]: If the source package does not include license text(s) as a separate file from upstream, the packager SHOULD query upstream to include it. [x]: Final provides and requires are sane (see attachments). [x]: Fully versioned dependency in subpackages if applicable. Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in docopt- cpp-devel The review tool is confused here; the fully-versioned dependency is present. [x]: Package functions as described. (Tests pass) [x]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [x]: Patches link to upstream bugs/comments/lists or are otherwise justified. [-]: Sources are verified with gpgverify first in %prep if upstream publishes signatures. Note: gpgverify is not used. [-]: Description and summary sections in the package spec file contains translations for supported Non-English languages, if available. [x]: Package should compile and build into binary rpms on all supported architectures. [x]: %check is present and all tests pass. [x]: Packages should try to preserve timestamps of original installed files. [x]: Reviewer should test that the package builds in mock. [x]: Buildroot is not present [x]: Package has no %clean section with rm -rf %{buildroot} (or $RPM_BUILD_ROOT) [x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin. [x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file [x]: The placement of pkgconfig(.pc) files are correct. [x]: Sources can be downloaded from URI in Source: tag [x]: SourceX is a working URL. [x]: Spec use %global instead of %define unless justified. ===== EXTRA items ===== Generic: [-]: Spec file according to URL is the same as in SRPM. Note: Spec file as given by url is not the same as in SRPM (see attached diff). See: (this test has no URL) OK (rpmautospec) [x]: Rpmlint is run on debuginfo package(s). Note: There are rpmlint messages (see attachment). [x]: Rpmlint is run on all installed packages. Note: There are rpmlint messages (see attachment). [x]: Large data in /usr/share should live in a noarch subpackage if package is arched. Rpmlint ------- Cannot parse rpmlint output: Rpmlint (debuginfo) ------------------- Cannot parse rpmlint output: Rpmlint (installed packages) ---------------------------- Cannot parse rpmlint output: Source checksums ---------------- https://github.com/docopt/docopt.cpp/archive/v0.6.3/docopt.cpp-0.6.3.tar.gz : CHECKSUM(SHA256) this package : 28af5a0c482c6d508d22b14d588a3b0bd9ff97135f99c2814a5aa3cbff1d6632 CHECKSUM(SHA256) upstream package : 28af5a0c482c6d508d22b14d588a3b0bd9ff97135f99c2814a5aa3cbff1d6632 Requires -------- docopt-cpp (rpmlib, GLIBC filtered): libc.so.6()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.5)(64bit) rtld(GNU_HASH) docopt-cpp-devel (rpmlib, GLIBC filtered): /usr/bin/pkg-config cmake-filesystem cmake-filesystem(x86-64) docopt-cpp(x86-64) libdocopt.so.0()(64bit) docopt-cpp-debuginfo (rpmlib, GLIBC filtered): docopt-cpp-debugsource (rpmlib, GLIBC filtered): Provides -------- docopt-cpp: docopt-cpp docopt-cpp(x86-64) libdocopt.so.0()(64bit) docopt-cpp-devel: cmake(docopt) docopt-cpp-devel docopt-cpp-devel(x86-64) pkgconfig(docopt) docopt-cpp-debuginfo: debuginfo(build-id) docopt-cpp-debuginfo docopt-cpp-debuginfo(x86-64) libdocopt.so.0.6.2-0.6.3-4.fc36.x86_64.debug()(64bit) docopt-cpp-debugsource: docopt-cpp-debugsource docopt-cpp-debugsource(x86-64) Diff spec file in url and in SRPM --------------------------------- --- /home/reviewer/1989291-docopt-cpp/20211117/1989291-docopt-cpp/srpm/docopt-cpp.spec 2021-11-17 08:56:51.789005146 -0500 +++ /home/reviewer/1989291-docopt-cpp/20211117/1989291-docopt-cpp/srpm-unpacked/docopt-cpp.spec 2021-11-12 12:52:29.000000000 -0500 @@ -1,2 +1,11 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.2.5) +%define autorelease(e:s:pb:) %{?-p:0.}%{lua: + release_number = 4; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} +## END: Set by rpmautospec + %global forgeurl0 %{url} @@ -84,3 +93,13 @@ %changelog -%autochangelog +* Pá lis 12 2021 Petr Menšík <pemensik@xxxxxxxxxx> 0.6.3-4 +- Uncommitted changes + +* Pá lis 12 2021 Petr Menšík <pemensik@xxxxxxxxxx> 0.6.3-3 +- Add check section with tests running + +* Pá lis 12 2021 Petr Menšík <pemensik@xxxxxxxxxx> 0.6.3-2 +- Update descriptions according to review + +* St srp 04 2021 Petr Menšík <pemensik@xxxxxxxxxx> 0.6.3-1 +- Initial commit with %autorelease Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10 Command line :/usr/bin/fedora-review -b 1989291 Buildroot used: fedora-rawhide-x86_64 Active plugins: Generic, C/C++, Shell-api Disabled plugins: Java, Python, R, PHP, fonts, SugarActivity, Perl, Ocaml, Haskell Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH ============================ rpmlint session starts ============================ rpmlint: 2.1.0 configuration: /usr/lib/python3.10/site-packages/rpmlint/configdefaults.toml /etc/xdg/rpmlint/fedora.toml /etc/xdg/rpmlint/licenses.toml /etc/xdg/rpmlint/scoring.toml /etc/xdg/rpmlint/users-groups.toml /etc/xdg/rpmlint/warn-on-functions.toml checks: 31, packages: 5 docopt-cpp-debuginfo.x86_64: W: unstripped-binary-or-object /usr/lib/debug/usr/lib64/libdocopt.so.0.6.2-0.6.3-4.fc36.x86_64.debug docopt-cpp.src: W: strange-permission docopt-cpp.spec 600 docopt-cpp.spec: E: specfile-error error: bad date in %changelog: Pá lis 12 2021 Petr Menšík <pemensik@xxxxxxxxxx> 0.6.3-4 docopt-cpp.x86_64: E: shlib-policy-name-error 0 docopt-cpp-debuginfo.x86_64: E: shared-library-without-dependency-information /usr/lib/debug/usr/lib64/libdocopt.so.0.6.2-0.6.3-4.fc36.x86_64.debug docopt-cpp.spec: W: patch-not-applied Patch1: https://patch-diff.githubusercontent.com/raw/docopt/docopt.cpp/pull/145.patch#/docopt-0.6.3-run-tests.patch docopt-cpp-debuginfo.x86_64: W: no-documentation docopt-cpp-debugsource.x86_64: W: no-documentation docopt-cpp-devel.x86_64: W: no-documentation docopt-cpp.src: E: no-changelogname-tag docopt-cpp.x86_64: E: no-changelogname-tag docopt-cpp-debuginfo.x86_64: E: no-changelogname-tag docopt-cpp-debugsource.x86_64: E: no-changelogname-tag docopt-cpp-devel.x86_64: E: no-changelogname-tag docopt-cpp-devel.x86_64: W: missing-dependency-on docopt-cpp*/docopt-cpp-libs/libdocopt-cpp* = 0.6.3 docopt-cpp.spec:105: W: macro-in-%changelog %autorelease docopt-cpp.x86_64: E: invalid-ldconfig-symlink /usr/lib64/libdocopt.so.0.6.2 libdocopt.so.0.6.2 docopt-cpp-debuginfo.x86_64: W: dangling-relative-symlink /usr/lib/debug/.build-id/72/1a79b3eac5790a96d36da17d3830633335f6b6 ../../../.build-id/72/1a79b3eac5790a96d36da17d3830633335f6b6 5 packages and 0 specfiles checked; 9 errors, 9 warnings, 9 badness; has taken 0.6 s -- You are receiving this mail because: You are on the CC list for the bug. You are always notified about changes to this product and component https://bugzilla.redhat.com/show_bug.cgi?id=1989291 _______________________________________________ package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure