Bug 26374 - kwalify : new package request, python kwalify (needed for West)
Summary: kwalify : new package request, python kwalify (needed for West)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL: https://pypi.python.org/pypi/pykwalify/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-23 10:38 CET by Jybz
Modified: 2020-03-29 11:23 CEST (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
python-pykwalify.spec (1.66 KB, text/x-matlab)
2020-03-23 10:39 CET, Jybz
Details

Description Jybz 2020-03-23 10:38:14 CET
Hello!

New package request.

I based the spec on python-dateutil.spec
> http://svnweb.mageia.org/packages/updates/7/python-dateutil/current/SPECS/python-dateutil.spec?view=markup

removed the python2 part (as it will be obsoleted)
added %undefine _disable_source_fetch to ensure the source URL is good (I confirm) it needs to be removed.

I wasn't sure about the yaml to take between python3-pyaml and python3-yaml, but it works with python3-yaml.
Other point :
why python3dist(dateutil) doesn't work ?
> not work : BuildRequires:  python3dist(dateutil)
> working  : BuildRequires:  python3-dateutil
Same for yaml...
Comment 1 Jybz 2020-03-23 10:39:04 CET
Created attachment 11564 [details]
python-pykwalify.spec

spec
Comment 2 Lewis Smith 2020-03-24 19:54:12 CET
Assigning this package request to all packagers collectively. On a voluntary basis, one of them might, if there are no license or other legal issues, want to integrate it to the distribution and maintain it for bug and security fixes.

You Jybz might also want to join the packager team to maintain this piece of software: see https://wiki.mageia.org/en/Becoming_a_Mageia_Packager

Assignee: bugsquad => pkg-bugs
Severity: normal => enhancement
Summary: Kwalify : new package request, python kwalify (needed for West) => kwalify : new package request, python kwalify (needed for West)

Comment 3 Jani Välimaa 2020-03-29 10:57:21 CEST
(In reply to Jybz from comment #0)
> Other point :
> why python3dist(dateutil) doesn't work ?
> > not work : BuildRequires:  python3dist(dateutil)
> > working  : BuildRequires:  python3-dateutil
> Same for yaml...

There aren't such python3 dists as dateutil nor yaml.

$ urpmq --provides python3-dateutil | grep python3dist
python3dist(python-dateutil)[== 2.8.0]

$ urpmq --provides python3-yaml | grep python3dist
python3dist(pyyaml)[== 5.1.2]

CC: (none) => jani.valimaa

Comment 4 Jani Välimaa 2020-03-29 11:04:02 CEST
I've now imported python-pykwalify based on .spec from pyp2rpm. It's a handy tool to create a .spec for python pkgs from pypi.

The cmd I used downloads sources and creates a .spec to ~/rpmbuild.
$ pyp2rpm -s pykwalify

In most of the cases created .spec can be used as is to create a .src.rpm for importing to mga, but I tend to check it and clean/modify a bit.
Comment 5 Jani Välimaa 2020-03-29 11:23:36 CEST
Closing as FIXED.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


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