Bug 1614551
| Summary: | Review Request: SoapySDR - vendor neutral and platform independent SDR support library | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Matt Domsch <matt> |
| Component: | Package Review | Assignee: | Robert-André Mauchin 🐧 <eclipseo> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | djh, eclipseo, package-review |
| Target Milestone: | --- | Flags: | eclipseo:
fedora-review+
|
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-08-30 04:53:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Matt Domsch
2018-08-09 21:36:20 UTC
- Same issue as before, why do you package a snapshot instead of the latest release
- Not needed: rm -rf $RPM_BUILD_ROOT
- Don't use a glob for the major soname version to avoid unintentional soname bump:
%{_libdir}/libSoapySDR.so.0.*
- Use of %{python2_sitearch}/* / %{python3_sitearch}/* is now forbidden, be more specific instead of using a glob.
- Python2 files don't seem to be built:
BUILDSTDERR: File not found : /builddir/build/BUILDROOT/SoapySDR-0.6.1-1.fc29.x86_64/usr/lib64/python2.7/site-packages/*
Child return code was: 1
The Cmake script only detects Python 3:
-- #############################################
-- ## Begin configuration for Python support...
-- #############################################
-- Enabling optional Python bindings if possible...
-- Found SWIG: /usr/bin/swig (found version "3.0.12")
-- SWIG_FOUND: TRUE - 3.0.12
-- Found PythonInterp: /usr/bin/python3.7 (found version "3.7")
-- PYTHONINTERP_FOUND: TRUE - 3.7
-- PYTHON_EXECUTABLE: /usr/bin/python3.7
-- PYTHON_INSTALL_DIR: ${prefix}/lib64/python3.7/site-packages
-- PYTHONLIBS_FOUND: TRUE - 3.7
-- PYTHON_INCLUDE_DIRS: /usr/include/python3.7m;/usr/include/python3.7m
-- PYTHON_LIBRARIES: -L/usr/lib64 -lpython3.7m -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
-- Performing Test SIZE_T_IS_UNSIGNED_INT
-- Performing Test SIZE_T_IS_UNSIGNED_INT - Failed
-- CMAKE_SWIG_FLAGS=-c++;-threads
--
-- #############################################
-- ## Begin configuration for Python3 support...
-- #############################################
-- Enabling optional Python3 bindings if possible...
-- SWIG_FOUND: TRUE - 3.0.12
-- Found Python3Interp: /usr/bin/python3
-- Could NOT find Python3InterpDbg (missing: PYTHON3_DBG_EXECUTABLE)
-- PYTHON3INTERP_FOUND: TRUE
-- PYTHON3_EXECUTABLE: /usr/bin/python3
-- PYTHON3_INSTALL_DIR: ${prefix}/lib64/python3.7/site-packages
-- Found Python3Libs: -L/usr/lib64 -lpython3.7m -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
-- PYTHON3LIBS_FOUND: TRUE
-- PYTHON3_INCLUDE_DIRS: /usr/include/python3.7m;/usr/include/python3.7m
-- PYTHON3_LIBRARIES: -L/usr/lib64 -lpython3.7m -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
--
I've made the changes suggested above and re-posted SRPM and spec file. I figured out how to tell it about /usr/bin/python[23] executables directly, and they now build properly on rawhide in mock. There have been 97 commits to the upstream, many of which are bug and build fixes, since the 0.6.1 release in December 2017. I could if preferred batch them into a single patch and apply that after the 0.6.1 tarball. I do not know when upstream may release a 0.7.0 final. You also need to include the snapshot info in Release:
%global commit e694813431720d9fe7ba7b0adc88194d022f4bf5
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global snapshotdate 20180806
Name: SoapySDR
Version: 0.6.1
Release: 1.%{snapshotdate}git%{shortcommit}%{?dist}
And in your %changelog entry:
* Mon Aug 6 2018 Matt Domsch <matt> - 0.6.1-1.20180806gite694813
- Capitalize the summaries
- Split the doc into a separate noarch subpackage.
- Own this directory:
[!]: Package requires other packages for directories it uses.
Note: No known owner of /usr/share/cmake/SoapySDR
Package Review
==============
Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed
Issues:
=======
- Large documentation must go in a -doc subpackage. Large could be size
(~1MB) or number of files.
Note: Documentation size is 2539520 bytes in 287 files.
See:
http://fedoraproject.org/wiki/Packaging/Guidelines#PackageDocumentation
===== MUST items =====
C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Development (unversioned) .so files in -devel subpackage, if present.
Note: Unversioned so-files in private %_libdir subdirectory (see
attachment). Verify they are not in ld path.
[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.
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: "*No copyright* BSL", "Unknown or generated", "BSL (v1.0)",
"BSL", "*No copyright* BSL (v1.0)", "BSD (3 clause)". 91 files have
unknown license. Detailed output of licensecheck in
/home/bob/packaging/review/SoapySDR/review-SoapySDR/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[!]: Package requires other packages for directories it uses.
Note: No known owner of /usr/share/cmake/SoapySDR
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[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.
[-]: 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.
[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 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]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[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
Python:
[x]: Python eggs must not download any dependencies during the build
process.
[x]: A package which is used by another package via an egg interface should
provide egg info.
[x]: Package meets the Packaging Guidelines::Python
[x]: Package contains BR: python2-devel or python3-devel
[x]: Packages MUST NOT have dependencies (either build-time or runtime) on
packages named with the unversioned python- prefix unless no properly
versioned package exists. Dependencies on Python packages instead MUST
use names beginning with python2- or python3- as appropriate.
[x]: Python packages must not contain %{pythonX_site(lib|arch)}/* in %files
[x]: Binary eggs must be removed in %prep
===== 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
python2-SoapySDR , python3-SoapySDR , SoapySDR-debuginfo , SoapySDR-
debugsource
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: 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:
[!]: Large data in /usr/share should live in a noarch subpackage if package
is arched.
Note: Arch-ed rpms have a total of 2836480 bytes in /usr/share
[x]: Rpmlint is run on debuginfo package(s).
Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.
Rpmlint
-------
Checking: SoapySDR-0.6.1-1.20180806gite694813.fc29.x86_64.rpm
python2-SoapySDR-0.6.1-1.20180806gite694813.fc29.x86_64.rpm
python3-SoapySDR-0.6.1-1.20180806gite694813.fc29.x86_64.rpm
SoapySDR-devel-0.6.1-1.20180806gite694813.fc29.x86_64.rpm
SoapySDR-debuginfo-0.6.1-1.20180806gite694813.fc29.x86_64.rpm
SoapySDR-debugsource-0.6.1-1.20180806gite694813.fc29.x86_64.rpm
SoapySDR-0.6.1-1.20180806gite694813.fc29.src.rpm
python2-SoapySDR.x86_64: W: summary-not-capitalized C python2 bindings for SoapySDR
python2-SoapySDR.x86_64: W: no-documentation
python3-SoapySDR.x86_64: W: summary-not-capitalized C python3 bindings for SoapySDR
python3-SoapySDR.x86_64: W: no-documentation
7 packages and 0 specfiles checked; 0 errors, 4 warnings.
All changes made as requested, packages and specs reposted at https://domsch.com/fedora/sdr/ $ rpmlint *SoapySDR* python2-SoapySDR.x86_64: W: no-documentation python3-SoapySDR.x86_64: W: no-documentation SoapySDR-devel.x86_64: W: no-documentation 10 packages and 1 specfiles checked; 0 errors, 3 warnings. Package approved. (fedscm-admin): The Pagure repository was created at https://src.fedoraproject.org/rpms/SoapySDR CubicSDR-0.2.4-1.20180806gita7e4d91.fc28 liquid-dsp-1.3.1-3.20180806git9658d81.fc28 soapy-rtlsdr-0.2.5-1.fc28 SoapySDR-0.6.1-1.20180806gite694813.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b2b91c05b7 CubicSDR-0.2.4-1.20180806gita7e4d91.fc28, SoapySDR-0.6.1-1.20180806gite694813.fc28, liquid-dsp-1.3.1-3.20180806git9658d81.fc28, soapy-rtlsdr-0.2.5-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b2b91c05b7 CubicSDR-0.2.4-1.20180806gita7e4d91.fc28, SoapySDR-0.6.1-1.20180806gite694813.fc28, liquid-dsp-1.3.1-3.20180806git9658d81.fc28, soapy-rtlsdr-0.2.5-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report. |