Bug 2038144 - Review Request: vttest - test VT100-type terminal
Summary: Review Request: vttest - test VT100-type terminal
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Vitaly
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-07 12:34 UTC by Thomas E. Dickey
Modified: 2022-01-27 10:36 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-01-27 10:36:17 UTC
Type: ---
Embargoed:
vitaly: fedora-review+


Attachments (Terms of Use)

Description Thomas E. Dickey 2022-01-07 12:34:10 UTC
Spec URL: https://src.fedoraproject.org/fork/thomas-dickey/rpms/vttest/blob/rawhide/f/vttest.spec
SRPM URL: https://invisible-mirror.net/archives/temp/REVIEW/vttest-2.7.20210210-1.src.rpm
Description: Vttest tests the compatibility (demonstrates the non-compatibility) of so-called “VT100-compatible” terminals. In conformance of the good old hacker traditions, the only documentation of this program is the source code itself. To understand it, you also need a copy of the original VT100 manual from DEC.

Additional tests (past version 1.7) are provided for analysis of vt220 through vt520 terminals, as well as variants of xterm.
Fedora Account System Username: thomas-dickey

Comment 1 Thomas E. Dickey 2022-01-07 12:37:57 UTC
The commit here

https://src.fedoraproject.org/rpms/vttest/c/c8de6824184591546cc83889681e3aa3ea860d43?branch=rawhide

gives no clue regarding why it was retired.  Based on the packager's set of packages, it appears to have been disinterest, since it is unrelated to any of those.

The package is easily built, and I'm willing to maintain it.

Comment 2 Vitaly 2022-01-08 11:14:26 UTC
I will review this package and sponsor you to Fedora.

Comment 3 Vitaly 2022-01-08 11:22:00 UTC
> %define AppProgram vttest

Should be removed. Always use standard %{name} macro.

> %define AppVersion 2.7.%{AppPatched}

Always use standard %{version} macro.

> Release: 1

Missing %{?dist} tag:

Release: 1%{?dist}

> # no need for debugging symbols...
> %define debug_package %{nil}

Must be removed. All Fedora packages with ELF binaries must have automatically generated -debuginfo subpackages.

> %setup -q -n %{AppProgram}-%{AppPatched}

Can be simplified after fixing version and release:

%autosetup

> INSTALL_PROGRAM='${INSTALL}' \
> %configure \
>  --target %{_target_platform} \
>  --prefix=%{_prefix} \
>  --bindir=%{_bindir} \
>  --libdir=%{_libdir} \
>  --mandir=%{_mandir}

Should be simplified by %configure. All needed flags will be added automatically.

> [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

Must be removed. Not allowed on Fedora.

> make install                    DESTDIR=$RPM_BUILD_ROOT

Should be replaced with %make_install.

> strip $RPM_BUILD_ROOT%{_bindir}/%{AppProgram}

Must be removed. Stripping will be performed automatically to the separate -debuginfo subpackage.

> %defattr(-,root,root)

Must be removed. Not allowed on Fedora.

> %{_prefix}/bin/%{AppProgram}

Must be replaced with:

%{_bindir}/%{name}

> %{_mandir}/man1/%{AppProgram}.*

%{_mandir}/man1/%{name}.*

> # each patch should add its ChangeLog entries here

Remove this entry.

Comment 4 Thomas E. Dickey 2022-01-08 13:45:36 UTC
Current version addresses this, except for %autosetup,
which doesn't work with the existing sources.

Perhaps it has some options to allow it to be used instead  of %setup.

Comment 5 Vitaly 2022-01-08 13:55:30 UTC
> INSTALL_PROGRAM='${INSTALL}' \

Don't needed. Remove this.

> make

%make_build

> mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
> install -m 644 BUGS CHANGES MANIFEST README $RPM_BUILD_ROOT%{_docdir}/%{name}

Remove these and use in %files section:
%doc BUGS CHANGES MANIFEST README

> mkdir -p $RPM_BUILD_ROOT%{_licensedir}/%{name}
> install -m 644 COPYING $RPM_BUILD_ROOT%{_licensedir}/%{name}

Remove these and use in %files section:

%license COPYING

> %{_docdir}/%{name}
> %{_licensedir}/%{name}

Remove these. Will be automatically introduced.

Comment 6 Thomas E. Dickey 2022-01-08 14:08:05 UTC
done - thanks

Comment 7 Vitaly 2022-01-08 14:14:51 UTC
> [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

Not allowed on Fedora and must be removed.

Also please update your SRPM and SPEC.

Comment 8 Thomas E. Dickey 2022-01-08 14:16:34 UTC
removed the "rm -rf"

I don't understand the "please update" (where should I do that?)

Comment 9 Vitaly 2022-01-08 14:24:24 UTC
> I don't understand the "please update" (where should I do that?)

You need to post links to the updated SPEC and SRPM.

Comment 10 Vitaly 2022-01-08 14:27:05 UTC
> * Sat Jan 08 2022 Thomas E. Dickey

All changelog entries must be fully versioned.

Use this one and remove all others:

* Sat Jan 08 2022 Thomas E. Dickey <dickey> - 2.7.20210210-1
- address review-comments
- install doc, license files used in previous Fedora package

Comment 12 Vitaly 2022-01-08 14:42:16 UTC
SPEC link is incorrect. It must points to the text/plain file as required by the fedora-review tool.

Use this one: https://src.fedoraproject.org/fork/thomas-dickey/rpms/vttest/raw/rawhide/f/vttest.spec

Comment 14 Vitaly 2022-01-08 15:00:14 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed


===== MUST items =====

C/C++:
[x]: Provides: bundled(gnulib) in place as required.
     Note: Sources not installed
[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]: 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: There is no build directory. Running licensecheck on vanilla
     upstream sources. No licenses found. Please check the source files for
     licenses manually.
[x]: License file installed when any subpackage combination is installed.
[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.
[x]: 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.
[x]: 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.
[x]: 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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 40960 bytes in 4 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]: Dist tag is present.
[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 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:
[x]: 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]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[x]: 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.
[!]: Spec use %global instead of %define unless justified.
     Note: %define requiring justification: %define AppPatched 20210210
[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]: Fully versioned dependency in subpackages if applicable.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.

===== EXTRA items =====

Generic:
[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.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Cannot parse rpmlint output:


Rpmlint (debuginfo)
-------------------
Cannot parse rpmlint output:



Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:


Source checksums
----------------
https://invisible-mirror.net/archives/vttest/vttest-20210210.tgz :
  CHECKSUM(SHA256) this package     : 0f98a2e305982915f1520984c3e8698e3acd508ee210711528c89f5a7ea7f046
  CHECKSUM(SHA256) upstream package : 0f98a2e305982915f1520984c3e8698e3acd508ee210711528c89f5a7ea7f046


Requires
--------
vttest (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    rtld(GNU_HASH)

vttest-debuginfo (rpmlib, GLIBC filtered):

vttest-debugsource (rpmlib, GLIBC filtered):



Provides
--------
vttest:
    vttest
    vttest(x86-64)

vttest-debuginfo:
    debuginfo(build-id)
    vttest-debuginfo
    vttest-debuginfo(x86-64)

vttest-debugsource:
    vttest-debugsource
    vttest-debugsource(x86-64)



Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/usr/bin/fedora-review -b 2038144
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, C/C++, Shell-api
Disabled plugins: Ocaml, fonts, SugarActivity, PHP, R, Java, Haskell, Perl, Python
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 15 Vitaly 2022-01-08 15:01:01 UTC
> %define AppPatched 20210210

%global AppPatched 20210210

This minor issue can be fixed during importing package to the Fedora SCM.

Package approved.

Comment 16 Thomas E. Dickey 2022-01-08 15:02:11 UTC
thanks :-)


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