Bug 1047788 (Naftawayh) - Review Request: python-naftawayh - Arabic word tagger
Summary: Review Request: python-naftawayh - Arabic word tagger
Keywords:
Status: CLOSED ERRATA
Alias: Naftawayh
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Parag AN(पराग)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-02 09:06 UTC by Mosaab Alzoubi
Modified: 2014-11-14 20:23 UTC (History)
2 users (show)

Fixed In Version: python-naftawayh-0.2-4.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-14 20:23:36 UTC
Type: Bug
Embargoed:
panemade: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Mosaab Alzoubi 2014-01-02 09:06:56 UTC
Spec URL: http://ojuba.org/oji/SPECS/python-naftawayh.spec
SRPM URL: http://ojuba.org/oji/SRPMS/python-naftawayh-0.2-1.oji.fc19.src.rpm
Description:
Naftawayh is a python library for Arabic word tagging (word classification)
into types (nouns, verbs, stopwords), which is useful in language processing,
especially for text mining. Naftawayh works according to the Arabic word
structure, and the ability to guess the word class, through certain signs. 

Fedora Account System Username: moceap

Comment 1 Mosaab Alzoubi 2014-01-02 09:07:45 UTC
Koji Task: http://koji.fedoraproject.org/koji/taskinfo?taskID=6347785

Comment 2 Mosaab Alzoubi 2014-01-12 01:26:14 UTC
- Fix license line.
- Fix %%prep section.

=====================================

Spec URL: http://ojuba.org/oji/SPECS/python-naftawayh.spec
SRPM URL: http://ojuba.org/oji/SRPMS/python-naftawayh-0.2-2.fc20.src.rpm

Comment 3 Leon Weber 2014-03-20 23:22:57 UTC
I’ll take a look.

Comment 4 Leon Weber 2014-03-29 10:57:17 UTC
Sorry, I think someone else should do the review.  There doesn’t seem to be any English documentation whatsoever, so as I don’t know Arabic, I can’t really check if the package is working.

I can give you some hints though:

It would be good if you could ask upstream to provide at least some rough documentation in English (a README file maybe), and also to include the license in a COPYING file (currently the only way to find out the license is the tag in the setup.py file, which isn’t optimal. I don’t know if it states the license on the website because it’s Arabic only).

You can skip the Group:-tag in the spec file.

Otherwise the package looks okay.

Comment 5 Parag AN(पराग) 2014-10-21 06:07:37 UTC
Review:

+ package built fine in mock rawhide(x86_64)

+ rpmlint on generated rpms gave output
python-naftawayh.noarch: I: enchant-dictionary-not-found ar
python-naftawayh.noarch: W: spelling-error %description -l en_US stopwords -> stop words, stop-words, Stoppard
python-naftawayh.noarch: W: no-documentation
python-naftawayh.src: W: spelling-error %description -l en_US stopwords -> stop words, stop-words, Stoppard
2 packages and 0 specfiles checked; 0 errors, 3 warnings.


+ Source verified with upstream as (sha256sum)
srpm tarball: 862c8e2ddcd09bfd55f9218e31998a759afc507b4f26549a835809a8eb3893bb
upstream tarball : 862c8e2ddcd09bfd55f9218e31998a759afc507b4f26549a835809a8eb3893bb

+ License is just "GPL+" as per PKG-INFO  

suggestions:

1) Email to upstream author and get clarification on what is the license for this python module. When you get reply you can include that reply as a LICENSE file as Source1: in spec and add it to %doc

2) I failed to understand the meaning of following line
#Site of files just for including:

instead of this you can include like "Remove the python shebang"

3) you need to follow https://fedoraproject.org/wiki/Packaging:Python guidelines

Add in %prep after setup macro line
rm -rf *.egg-info

this is to make sure you will not install directly egg info file that upstream if providing and instead you are installing egg info that gets created in %build section

4) As per python guidelines your %install section should use
%{__python2} setup.py install --skip-build --root=%{buildroot}


5) your %files section should look like this
%files -n python-%{module_name}
%doc PKG-INFO
%{python2_sitelib}/%{modname}/
%{python2_sitelib}/%{distname}-%{version}-py2.*.egg-info


6) License tag can be just "GPL+" as there is no mention of any GPL version information but good to ask upstream. 

7) Group tag is optional so you can remove it for fedora releases.

Comment 7 Parag AN(पराग) 2014-10-24 04:14:56 UTC
1) fix the rpmlint messages
python-naftawayh.noarch: I: enchant-dictionary-not-found ar
python-naftawayh.noarch: W: spelling-error %description -l en_US stopwords -> stop words, stop-words, Stoppard
python-naftawayh.noarch: W: wrong-file-end-of-line-encoding /usr/share/doc/python-naftawayh/PKG-INFO
python-naftawayh.src: W: spelling-error %description -l en_US stopwords -> stop words, stop-words, Stoppard
python-naftawayh.src:13: W: mixed-use-of-spaces-and-tabs (spaces: line 13, tab: line 4)
2 packages and 0 specfiles checked; 0 errors, 4 warnings.

=> fix the wrong-file-end-of-line-encoding and mixed-use-of-spaces-and-tabs warnings.

2) When you add license text as GPLv1 and use tag GPL+ then its contradiction. Because GPL+ mean technically licensed under *any* version of the GPL.

If upstream is saying its GPLv1 then ask upstream to add it in upstream code and release new version or as I said either keep license as "GPL+" and drop Source1 or if upstream can clarify it as a GPLv1 then attach its email reply or any other static reference on the internet (say like you got a reply on upstream project website) that you can include in spec file.

Comment 8 Mosaab Alzoubi 2014-10-24 20:09:26 UTC
I called him not by email, and he mean GPLv1.
All Fixed:

Spec: http://ojuba.org/test/python-naftawayh.spec
Srpm: http://ojuba.org/test/python-naftawayh-0.2-4.oj35.src.rpm

Comment 9 Parag AN(पराग) 2014-10-25 01:18:07 UTC
just a single rpmlint warning remains
python-naftawayh.src:13: W: mixed-use-of-spaces-and-tabs (spaces: line 13, tab: line 4)

you can fix this when you import this package.

APPROVED.

Comment 10 Mosaab Alzoubi 2014-10-25 01:26:23 UTC
Ok, Thank You.

New Package SCM Request
=======================
Package Name: python-naftawayh
Short Description: Arabic word tagger
Owners: moceap
Branches: f19 f20 f21 epel7

Comment 11 Gwyn Ciesla 2014-10-27 11:59:49 UTC
Git done (by process-git-requests).

Comment 12 Fedora Update System 2014-10-28 19:04:40 UTC
python-naftawayh-0.2-4.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/python-naftawayh-0.2-4.el7

Comment 13 Fedora Update System 2014-10-28 19:13:22 UTC
python-naftawayh-0.2-4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-naftawayh-0.2-4.fc19

Comment 14 Fedora Update System 2014-10-28 19:24:37 UTC
python-naftawayh-0.2-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-naftawayh-0.2-4.fc20

Comment 15 Fedora Update System 2014-10-28 19:33:05 UTC
python-naftawayh-0.2-4.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/python-naftawayh-0.2-4.fc21

Comment 16 Fedora Update System 2014-10-31 01:24:47 UTC
python-naftawayh-0.2-4.el7 has been pushed to the Fedora EPEL 7 testing repository.

Comment 17 Fedora Update System 2014-11-10 06:10:46 UTC
python-naftawayh-0.2-4.fc19 has been pushed to the Fedora 19 stable repository.

Comment 18 Fedora Update System 2014-11-10 06:11:27 UTC
python-naftawayh-0.2-4.fc20 has been pushed to the Fedora 20 stable repository.

Comment 19 Fedora Update System 2014-11-10 06:42:24 UTC
python-naftawayh-0.2-4.fc21 has been pushed to the Fedora 21 stable repository.

Comment 20 Fedora Update System 2014-11-14 20:23:36 UTC
python-naftawayh-0.2-4.el7 has been pushed to the Fedora EPEL 7 stable repository.


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