Bug 1243061 - Review Request: dex-autostart - Generate and execute DesktopEntry files
Summary: Review Request: dex-autostart - Generate and execute DesktopEntry files
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: gil cattaneo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: Trivial
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-14 16:46 UTC by Till Hofmann
Modified: 2015-09-03 18:50 UTC (History)
3 users (show)

Fixed In Version: 0.8-0.4.20150728git4bbd9f9.fc23
Clone Of:
Environment:
Last Closed: 2015-09-03 10:03:51 UTC
Type: ---
Embargoed:
puntogil: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Till Hofmann 2015-07-14 16:46:12 UTC
Spec URL: https://thofmann.fedorapeople.org/dex-autostart.spec
SRPM URL: https://thofmann.fedorapeople.org/dex-autostart-0.8-0.1.20150714gita98fa2f.fc22.src.rpm
Description:
dex, DesktopEntry Execution, is a program to generate and execute DesktopEntry
files of the Application type.

Fedora Account System Username: thofmann

Koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=10355119

Upstream is simply called dex, but there is already a package named dex, so I named this package dex-autostart. If you have a suggestion for a better package name, please let me know.

Since upstream always installs the binary as dex, I added a patch to make the name of the binary configurable. I've also sent the patch upstream [1].

I do not use the last release of dex because the release is already quite old (Nov 2013). Instead, I use the latest version in the repository.

A review or any comments are highly appreciated!


[1] https://github.com/jceb/dex/pull/26

Comment 2 Marcin Haba 2015-07-16 16:01:35 UTC
Hello,

In manual page there is described "dex" command. EXAMPLES manual section also uses "dex" e.g:

dex -a -s /etc/xdg/autostart/:~/.config/autostart/

When is already installed "dex" text editor package (not dex-autostart) package, then the commands from dex-autostart manual be using /usr/bin/dex binary instead of /usr/bin/dex-autostart

I think that better could be just replace "dex" in man page into "dex-autostart".

Comment 3 Till Hofmann 2015-07-26 15:48:59 UTC
Spec URL: https://thofmann.fedorapeople.org/dex-autostart.spec
SRPM URL: https://thofmann.fedorapeople.org/dex-autostart-0.8-0.3.20150714gita98fa2f.fc22.src.rpm

Thanks for spotting this. I've tried to fix this in a way such that it could be merged upstream, but it seems like sphinx doesn't really support variables for man page names. So instead, I simply substitute s/dex/dex-autostart/g on the generated man page.

koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=10488467

Comment 4 Marcin Haba 2015-07-27 21:52:55 UTC
Hello,

@Till:

Thanks for add the substring change to Spec file.

The package builds well on my side and manual looks OK either.

Here are two minor notes:

1) I checked that dex-autostart works with python3 and does not work with python2. From this reason I propose to add a "Requires" tag python >= 3.4 or something similar with relation to Python3. This change will give clear info (also for packagers from other distributions) that dex-autostart works with Python3 and higher.

2) Result RPM contains:

/usr/share/doc/dex-autostart/README.rst

in which content are texts and examples about 'dex' instead of 'dex-autostart'. I propose to use the same way as you used in case manual, or just exclude this file and do not add the README file to RPM due to containing almost the same information as manual contains.

After applying above changes, I prepare informal review form and past the results here.

Comment 5 Marcin Haba 2015-07-28 06:36:31 UTC
One more thing.

I have seen that dex-autostart has a tests suit (doctest available to execute via --test switcher and visible tests results in verbose mode -v). I think that nice might be to add these tests call in %check section, according to:

https://fedoraproject.org/wiki/Packaging:Guidelines#Test_Suites

Comment 6 Till Hofmann 2015-07-28 06:54:47 UTC
Spec URL: https://thofmann.fedorapeople.org/dex-autostart.spec
SRPM URL: https://thofmann.fedorapeople.org/dex-autostart-0.8-0.4.20150728git4bbd9f9.fc22.src.rpm

koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=10506514

Thanks for the comments!

I've added python3 as requirement. This should be sufficient. (I thought the requirement would be detected automatically, but I actually never checked).

I've added a substitution for the README to rename dex to dex-autostart.

I wasn't aware of the included doctest, I've added a check section.

Comment 7 Marcin Haba 2015-07-28 20:16:07 UTC
Hello,

I performed informal review. Here are review results:


Package Review
==============

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




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

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. No licenses
     found. Please check the source files for licenses manually.
[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.
[-]: 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.
[-]: 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 10240 bytes in 1 files.
[ ]: 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: No rpmlint messages.
[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]: All build dependencies are listed in BuildRequires, except for any
     that are listed in the exceptions section of Packaging Guidelines.
[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:
[-]: Python eggs must not download any dependencies during the build
     process.
[-]: A package which is used by another package via an egg interface should
     provide egg info.
[ ]: Package meets the Packaging Guidelines::Python
[x]: Package contains BR: python2-devel or python3-devel
[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]: 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.
[-]: 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]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[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]: Uses parallel make %{?_smp_mflags} macro.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

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

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: No rpmlint messages.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: dex-autostart-0.8-0.4.20150728git4bbd9f9.fc21.noarch.rpm
          dex-autostart-0.8-0.4.20150728git4bbd9f9.fc21.src.rpm
2 packages and 0 specfiles checked; 0 errors, 0 warnings.




Rpmlint (installed packages)
----------------------------
1 packages and 0 specfiles checked; 0 errors, 0 warnings.


I have not marked following fields:

[ ]: Package complies to the Packaging Guidelines
[ ]: Package meets the Packaging Guidelines::Python

because I am not able yet to determine these points (I am still learning Guidelines)

Review summary:
I do not see any any barriers to approve dex-autostart package.

@Till:
Thank you for this feature request and for your effort in packaging dex-autostart. Thanks for review process too.

Comment 8 Marcin Haba 2015-08-01 19:17:21 UTC
@Till:
I am not able to do nothing more in this task. What do you think about ask somebody from Fedora packages maintainers about perform formal review? Then the task will move forward.

Comment 9 Till Hofmann 2015-08-01 20:23:08 UTC
First of all: Thanks for the informal review!

Maybe somebody will pick up the review and do the formal review. If not, I'll ask on fedora-devel for a review or a review swap.

Comment 10 gil cattaneo 2015-08-22 14:03:54 UTC
hi can you take for me one of these?
springframework-data-redis - https://bugzilla.redhat.com/show_bug.cgi?id=1228203
apacheds-jdbm - https://bugzilla.redhat.com/show_bug.cgi?id=1243758
thanks in advance

Comment 11 gil cattaneo 2015-08-22 14:26:05 UTC
Package Review
==============

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



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

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". 1 files have unknown license. Detailed
     output of licensecheck in /home/gil/1243061-dex-
     autostart/licensecheck.txt
 IGNORE: dex-4bbd9f95ed3470b542a1a2c6dad56f31806cd8fa/man/conf.py is use only by python-sphinx for generate manpage
[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.
[-]: 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]: 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 10240 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: No rpmlint messages.
[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]: All build dependencies are listed in BuildRequires, except for any
     that are listed in the exceptions section of Packaging Guidelines.
[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

===== 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]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[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.
[?]: 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]: 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]: Uses parallel make %{?_smp_mflags} macro.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

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

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: No rpmlint messages.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: dex-autostart-0.8-0.4.20150728git4bbd9f9.fc24.noarch.rpm
          dex-autostart-0.8-0.4.20150728git4bbd9f9.fc24.src.rpm
2 packages and 0 specfiles checked; 0 errors, 0 warnings.




Rpmlint (installed packages)
----------------------------
sh: /usr/bin/python: File o directory non esistente
1 packages and 0 specfiles checked; 0 errors, 0 warnings.



Requires
--------
dex-autostart (rpmlib, GLIBC filtered):
    /usr/bin/env
    python3



Provides
--------
dex-autostart:
    dex-autostart



Source checksums
----------------
https://github.com/jceb/dex/archive/4bbd9f95ed3470b542a1a2c6dad56f31806cd8fa/dex-4bbd9f95ed3470b542a1a2c6dad56f31806cd8fa.tar.gz :
  CHECKSUM(SHA256) this package     : d31fad6e2037389423ce3fc3e1dd2d9554cfae8f75f9ec67a363e9b8421a8e9f
  CHECKSUM(SHA256) upstream package : d31fad6e2037389423ce3fc3e1dd2d9554cfae8f75f9ec67a363e9b8421a8e9f


Generated by fedora-review 0.6.0 (3c5c9d7) last change: 2015-05-20
Command line :/bin/fedora-review -b 1243061 -m fedora-rawhide-i386
Buildroot used: fedora-rawhide-i386
Active plugins: Generic, Shell-api
Disabled plugins: Java, C/C++, Python, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP, Ruby
Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6

Comment 12 gil cattaneo 2015-08-22 14:27:39 UTC
Approved.

Comment 13 Till Hofmann 2015-08-22 14:29:48 UTC
New Package SCM Request
=======================
Package Name: dex-autostart
Short Description: Generate and execute DesktopEntry files
Upstream URL: https://github.com/jceb/dex
Owners: thofmann
Branches: f21 f22 f23
InitialCC:

Comment 14 Till Hofmann 2015-08-22 18:05:57 UTC
Thank you for the review!

Comment 15 Gwyn Ciesla 2015-08-23 21:36:10 UTC
Git done (by process-git-requests).

Comment 16 Fedora Update System 2015-08-24 17:39:57 UTC
dex-autostart-0.8-0.4.20150728git4bbd9f9.fc23 has been submitted as an update to Fedora 23. https://bugzilla.redhat.com/show_bug.cgi?id=1243061

Comment 17 Fedora Update System 2015-08-24 17:46:14 UTC
dex-autostart-0.8-0.4.20150728git4bbd9f9.fc22 has been submitted as an update to Fedora 22. https://bugzilla.redhat.com/show_bug.cgi?id=1243061

Comment 18 Fedora Update System 2015-08-24 17:47:46 UTC
dex-autostart-0.8-0.4.20150728git4bbd9f9.fc21 has been submitted as an update to Fedora 21. https://bugzilla.redhat.com/show_bug.cgi?id=1243061

Comment 19 Fedora Update System 2015-08-24 21:54:09 UTC
dex-autostart-0.8-0.4.20150728git4bbd9f9.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dex-autostart'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14142

Comment 20 Fedora Update System 2015-08-24 21:56:38 UTC
dex-autostart-0.8-0.4.20150728git4bbd9f9.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dex-autostart'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14141

Comment 21 Fedora Update System 2015-08-24 22:22:02 UTC
dex-autostart-0.8-0.4.20150728git4bbd9f9.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dex-autostart'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14143

Comment 22 Fedora Update System 2015-09-03 10:03:48 UTC
dex-autostart-0.8-0.4.20150728git4bbd9f9.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 23 Fedora Update System 2015-09-03 18:49:36 UTC
dex-autostart-0.8-0.4.20150728git4bbd9f9.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.

Comment 24 Fedora Update System 2015-09-03 18:50:02 UTC
dex-autostart-0.8-0.4.20150728git4bbd9f9.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.


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