Bug 904798 - Review Request: sfact - Converts 3D model into G-Code for RepRap
Summary: Review Request: sfact - Converts 3D model into G-Code for RepRap
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: T.C. Hollingsworth
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2013-01-27 15:31 UTC by Miro Hrončok
Modified: 2013-02-13 04:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-02-13 04:34:36 UTC
tchollingsworth: fedora-review+
gwync: fedora-cvs+

Attachments (Terms of Use)

Description Miro Hrončok 2013-01-27 15:31:59 UTC
Spec URL: https://raw.github.com/hroncok/SPECS/master/sfact.spec
SRPM URL: https://github.com/downloads/hroncok/SPECS/sfact-0.0-1.20121114git89e1e76.fc18.src.rpm


SFACT is the new Skeinforge, it is a tool chain composed of Python scripts
that converts your 3D model into G-Code instructions for RepRap.

Fedora Account System Username: churchyard

Comment 1 Miro Hrončok 2013-01-28 11:54:19 UTC
Upstream included https://github.com/ahmetcemturan/SFACT/blob/master/COPYING

Comment 2 T.C. Hollingsworth 2013-01-29 02:16:08 UTC
This fails to build.

Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.R5Z0G4
+ umask 022
+ cd /builddir/build/BUILD
+ cd SFACT-89e1e76d35899ad21516a2facc75df274c5550e1
+ DOCDIR=/builddir/build/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc19.x86_64/usr/share/doc/sfact-0.0
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc19.x86_64/usr/share/doc/sfact-0.0
+ cp -pr 'SFACT /builddir/build/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc19.x86_64/usr/share/doc/sfact-0.0'
cp: missing destination file operand after 'SFACT /builddir/build/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc19.x86_64/usr/share/doc/sfact-0.0'
Try 'cp --help' for more information.
error: Bad exit status from /var/tmp/rpm-tmp.R5Z0G4 (%doc)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.R5Z0G4 (%doc)
Child return code was: 1
EXCEPTION: Command failed. See logs for output.

Comment 3 Miro Hrončok 2013-01-29 02:26:52 UTC
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.yZSoAa
+ umask 022
+ cd /home/churchyard/rpmbuild/BUILD
+ cd SFACT-89e1e76d35899ad21516a2facc75df274c5550e1
+ DOCDIR=/home/churchyard/rpmbuild/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc18.x86_64/usr/share/doc/sfact-doc-0.0
+ export DOCDIR
+ /usr/bin/mkdir -p /home/churchyard/rpmbuild/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc18.x86_64/usr/share/doc/sfact-doc-0.0
+ cp -pr documentation /home/churchyard/rpmbuild/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc18.x86_64/usr/share/doc/sfact-doc-0.0
+ exit 0
Provides: sfact-doc = 0.0-1.20121114git89e1e76.fc18
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/churchyard/rpmbuild/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc18.x86_64
Wrote: /home/churchyard/rpmbuild/SRPMS/sfact-0.0-1.20121114git89e1e76.fc18.src.rpm
Wrote: /home/churchyard/rpmbuild/RPMS/noarch/sfact-0.0-1.20121114git89e1e76.fc18.noarch.rpm
Wrote: /home/churchyard/rpmbuild/RPMS/noarch/sfact-doc-0.0-1.20121114git89e1e76.fc18.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.6kUbqb
+ umask 022
+ cd /home/churchyard/rpmbuild/BUILD
+ cd SFACT-89e1e76d35899ad21516a2facc75df274c5550e1
+ /usr/bin/rm -rf /home/churchyard/rpmbuild/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc18.x86_64
+ exit 0

Don't know, what happened, but I've reuploaded SRPM in case something went wrong. Could you please (redownload and) try again?

Comment 4 Miro Hrončok 2013-01-29 12:59:24 UTC
Ah, wrong section.

Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.b4eTZC
+ umask 022
+ cd /home/churchyard/rpmbuild/BUILD
+ cd SFACT-89e1e76d35899ad21516a2facc75df274c5550e1
+ DOCDIR=/home/churchyard/rpmbuild/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc18.x86_64/usr/share/doc/sfact-0.0
+ export DOCDIR
+ /usr/bin/mkdir -p /home/churchyard/rpmbuild/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc18.x86_64/usr/share/doc/sfact-0.0
+ cp -pr 'SFACT Readme.txt' /home/churchyard/rpmbuild/BUILDROOT/sfact-0.0-1.20121114git89e1e76.fc18.x86_64/usr/share/doc/sfact-0.0
+ exit 0

I thing, that there is a problem with space in filename, maybe (but I don't know why) this

%doc SFACT\ Readme.txt

does work as escaping the space at my machine, but not at yours?

Comment 5 T.C. Hollingsworth 2013-01-29 19:26:05 UTC
Okay, the difference here is that fedora-review mockbuilds in rawhide, and rawhide has some changes in %doc handling.


Please use one of the described solutions to ensure your package builds on both Rawhide and whichever Fedora releases you want to support.

Comment 7 Miro Hrončok 2013-01-29 21:59:32 UTC
I have read the e-mail about this when it was posted, but I've forgot it.

Comment 8 T.C. Hollingsworth 2013-02-01 03:18:08 UTC
Package Review

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

Resolution: NEEDS WORK

==== Issues ====

[!]: rpmlint output is not clean.

     See the rpmlint section at the bottom of the review for details.

[!]: Fedora-specific launcher scripts do not use `exec`.

     Please use `exec` so the bash process doesn't stay around forever, or
     launch in Python like you did with Cura, if possible.

==== Things to Consider ====

[ ]: This is a fork of the 'skeinforge' package in Fedora.

     While such forks are permissible in Fedora (c.f. LibreOffice, MATE,
     MariaDB, et. al.), please do consider working with the other upstreams
     that use skeinforge to instead use this package, if it really does confer

[ ]: No %check section is present.

     The tarball included does not appear to contain tests, but please do make
     sure upstream does not provide them seperately.

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

[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
[x]: Package successfully compiles and builds into binary rpms on at least one
     supported primary architecture.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: All build dependencies are listed in BuildRequires, except for any that
     are listed in the exceptions section of Packaging Guidelines.
[x]: Package contains no bundled libraries.
[x]: Changelog in prescribed format.
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Sources contain only permissible code or content.
[x]: Each %files section contains %defattr if rpm < 4.4
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Package contains desktop file if it is a GUI application.
[x]: Package installs a %{name}.desktop using desktop-file-install if there is
     such a file.
[-]: Development files must be in a -devel package
[x]: Package requires other packages for directories it uses.
[x]: Package uses nothing in %doc for runtime.
[x]: Package is not known to require ExcludeArch.
[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 complies to the Packaging Guidelines
[x]: Spec file lacks Packager, Vendor, PreReq tags.
[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 %doc.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses found:
     "*No copyright* GPL (v3 or later)", "*No copyright* GPL (v2 or later)",
     "GPL (v2 or later)", "GPL (v3 or later)", "Unknown or generated". 5 files
     have unknown license. Detailed output of licensecheck in

Seems to be false positive like skeinforge was.

[x]: License file installed when any subpackage combination is installed.
[x]: Package consistently uses macro is (instead of hard-coded directory
[x]: Package is named using only allowed ASCII characters.
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
     Note: Package contains no Conflicts: tag(s)
[x]: Package do not use a name that already exist
[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]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: Package installs properly.
[x]: Package is not relocatable.
[x]: Requires correct, justified where necessary.
[x]: CheckResultdir
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: Sources used to build the package match the upstream source, as provided
     in the spec URL.
[x]: Spec file is legible and written in American English.
[x]: Spec file name must match the spec package %{name}, in the format
[-]: Package contains systemd file(s) if in need.
[x]: File names are valid UTF-8.
[x]: Large documentation must go in a -doc subpackage.
[x]: Packages must not store files under /srv, /opt or /usr/local

[x]: Package contains BR: python2-devel or python3-devel
[-]: Binary eggs must be removed in %prep
[x]: 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.
[x]: Package meets the Packaging Guidelines::Python

===== SHOULD items =====

[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
[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]: Dist tag is present.
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Final provides and requires are sane (rpm -q --provides and rpm -q
[x]: Package functions as described.
[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.
[x]: The placement of pkgconfig(.pc) files are correct.
[x]: SourceX tarball generation or download is documented.
[x]: SourceX / PatchY prefixed with %{name}.
[x]: SourceX is a working URL.
[-]: 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
[!]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed files.
[x]: Spec use %global instead of %define.

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

[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.
[-]: Large data in /usr/share should live in a noarch subpackage if package is

Checking: sfact-0.0-2.20130128gitbc56c68.fc19.noarch.rpm
sfact.noarch: W: incoherent-version-in-changelog 0.0-2.20130128gitbc56c688 ['0.0-2.20130128gitbc56c68.fc19', '0.0-2.20130128gitbc56c68']

Please fix.

sfact.noarch: W: no-manual-page-for-binary sfact
sfact.noarch: W: no-manual-page-for-binary sfact-craft

Consider asking upstream to include a manpage or writing one yourself.

sfact.src: W: strange-permission sfact 0755L
sfact.src: W: strange-permission sfact-craft 0755L

False positive; these should be executable.

3 packages and 0 specfiles checked; 0 errors, 5 warnings.

Rpmlint (installed packages)
# rpmlint sfact sfact-doc
sfact.noarch: W: incoherent-version-in-changelog 0.0-2.20130128gitbc56c688 ['0.0-2.20130128gitbc56c68.fc19', '0.0-2.20130128gitbc56c68']
sfact.noarch: W: no-manual-page-for-binary sfact
sfact.noarch: W: no-manual-page-for-binary sfact-craft
2 packages and 0 specfiles checked; 0 errors, 3 warnings.
# echo 'rpmlint-done:'

All addressed above.

sfact-0.0-2.20130128gitbc56c68.fc19.noarch.rpm (rpmlib, GLIBC filtered):
    python(abi) = 2.7

sfact-doc-0.0-2.20130128gitbc56c68.fc19.noarch.rpm (rpmlib, GLIBC filtered):
    sfact = 0.0-2.20130128gitbc56c68.fc19

    sfact = 0.0-2.20130128gitbc56c68.fc19

    sfact-doc = 0.0-2.20130128gitbc56c68.fc19

MD5-sum check
https://github.com/ahmetcemturan/SFACT/archive/bc56c6882269fb14e36bc7bd6582c19be6114c06/sfact-0.0-bc56c68.tar.gz :
  CHECKSUM(SHA256) this package     : f65ea8bebb3cc7f9f1083a123e8339ef37028388c5e2e7e8a9dd39408379715c
  CHECKSUM(SHA256) upstream package : f65ea8bebb3cc7f9f1083a123e8339ef37028388c5e2e7e8a9dd39408379715c

Generated by fedora-review 0.3.1 (b71abc1) last change: 2012-10-16
Buildroot used: fedora-rawhide-x86_64
Command line :/usr/bin/fedora-review -b904798

Comment 9 Miro Hrončok 2013-02-01 21:32:30 UTC
Spec URL: https://raw.github.com/hroncok/SPECS/master/sfact.spec
SRPM URL: https://github.com/downloads/hroncok/SPECS/sfact-0.0-3.20130128gitbc56c68.fc18.src.rpm

- Corrected version in %%changelog
- Use exec in launchers

Comment 10 T.C. Hollingsworth 2013-02-01 21:45:52 UTC
% rpmlint SRPMS/sfact-0.0-3.20130128gitbc56c68.fc18.src.rpm 
sfact.src: W: strange-permission sfact 0755L
sfact.src: W: strange-permission sfact-craft 0755L
1 packages and 0 specfiles checked; 0 errors, 2 warnings.

Changelog warning gone.

% cat SOURCES/sfact
exec python /usr/lib/python2.7/site-packages/sfact/sfact.py "$@"
exit $?
% cat SOURCES/sfact-craft 
echo "Using pypy, you can ignore Tkinter warnings"
exec pypy /usr/lib/python2.7/site-packages/sfact/skeinforge_application/skeinforge_utilities/skeinforge_craft.py "$@"
exit $?

The `exit $?` lines are useless now that exec is used, but harmless.

This package is APPROVED.

Comment 11 Miro Hrončok 2013-02-02 00:33:24 UTC
New Package SCM Request
Package Name: sfact
Short Description: Converts 3D model into G-Code for RepRap
Owners: churchyard
Branches: f17 f18

Comment 12 Gwyn Ciesla 2013-02-04 14:04:36 UTC
Git done (by process-git-requests).

Comment 13 Fedora Update System 2013-02-04 15:53:42 UTC
sfact-0.0-3.20130128gitbc56c68.fc17 has been submitted as an update for Fedora 17.

Comment 14 Fedora Update System 2013-02-04 15:56:25 UTC
sfact-0.0-3.20130128gitbc56c68.fc18 has been submitted as an update for Fedora 18.

Comment 15 Fedora Update System 2013-02-05 02:57:11 UTC
sfact-0.0-3.20130128gitbc56c68.fc18 has been pushed to the Fedora 18 testing repository.

Comment 16 Fedora Update System 2013-02-13 04:34:38 UTC
sfact-0.0-3.20130128gitbc56c68.fc17 has been pushed to the Fedora 17 stable repository.

Comment 17 Fedora Update System 2013-02-13 04:37:55 UTC
sfact-0.0-3.20130128gitbc56c68.fc18 has been pushed to the Fedora 18 stable repository.

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