https://bugzilla.redhat.com/show_bug.cgi?id=1900858

            Bug ID: 1900858
           Summary: Add virtual provides for installed Python modules
           Product: Fedora
           Version: rawhide
            Status: NEW
         Component: fontforge
          Severity: low
          Assignee: ke...@scrye.com
          Reporter: c...@musicinmybrain.net
        QA Contact: extras...@fedoraproject.org
                CC: fonts-bugs@lists.fedoraproject.org, ke...@scrye.com,
                    p...@frixxon.co.uk, pnem...@redhat.com
  Target Milestone: ---
    Classification: Fedora



Description of problem:

The RPM package for fontforge, which installs the “fontforge” and “psMat”
Python modules, should provide python3-fontforge, python3-psMat, and so on.
This will make it easier for end-users and for packagers with Python-based
fontforge dependencies, and will comply with the Fedora packaging guidelines:
https://docs.fedoraproject.org/pt_BR/packaging-guidelines/Python/#_provides

Note that this will not provide python3dist(fontforge) or similar, as the
modules are not distributed on PyPI and there is no .dist-info/.egg-info; see
https://docs.fedoraproject.org/pt_BR/packaging-guidelines/Python/#_automatic_provides_with_a_standardized_name
for details.

Version-Release number of selected component (if applicable):

20200314-9, and all previous versions and releases

How reproducible:


Steps to Reproduce:
1. With fontforge RPM installed: rpm -q --provides fontforge
2. Observe that no Python provides are present.
3. dnf install python3-{fontforge,psMat}
4. Observe that nothing provides these.

Actual results:

[user@host ~]$ rpm -q --provides fontforge
application()
application(org.fontforge.FontForge.desktop)
fontforge = 20200314-9.fc33
fontforge(x86-64) = 20200314-9.fc33
libfontforge.so.4()(64bit)
metainfo()
metainfo(org.fontforge.FontForge.appdata.xml)
mimehandler(application/font-woff)
mimehandler(application/vnd.font-fontforge-sfd)
mimehandler(application/x-font-bdf)
mimehandler(application/x-font-otf)
mimehandler(application/x-font-pcf)
mimehandler(application/x-font-tex)
mimehandler(application/x-font-ttf)
mimehandler(application/x-font-type1)
mimehandler(font/otf)
mimehandler(font/ttf)
mimehandler(font/woff)
mimehandler(font/woff2)

[user@host ~]$ sudo dnf install python3-{fontforge,psMat}
No match for argument: python3-fontforge
No match for argument: python3-psMat

Expected results:

[user@host ~]$ rpm -q --provides fontforge
application()
application(org.fontforge.FontForge.desktop)
fontforge = 20200314-10.fc33
fontforge(x86-64) = 20200314-10.fc33
libfontforge.so.4()(64bit)
metainfo()
metainfo(org.fontforge.FontForge.appdata.xml)
mimehandler(application/font-woff)
mimehandler(application/vnd.font-fontforge-sfd)
mimehandler(application/x-font-bdf)
mimehandler(application/x-font-otf)
mimehandler(application/x-font-pcf)
mimehandler(application/x-font-tex)
mimehandler(application/x-font-ttf)
mimehandler(application/x-font-type1)
mimehandler(font/otf)
mimehandler(font/ttf)
mimehandler(font/woff)
mimehandler(font/woff2)
python-fontforge = 20200314-10.fc33
python-psMat = 20200314-10.fc33
python3-fontforge = 20200314-10.fc33
python3-psMat = 20200314-10.fc33
python3.9-fontforge = 20200314-10.fc33
python3.9-psMat = 20200314-10.fc33

[user@host ~]$ sudo dnf install python3-{fontforge,psMat}
Package fontforge-20200314-10.fc33.x86_64 is already installed.
Package fontforge-20200314-10.fc33.x86_64 is already installed.

Additional info:

I have prepared a PR that adds the necessary macros:
https://src.fedoraproject.org/rpms/fontforge/pull-request/7


-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
fonts-bugs mailing list -- fonts-bugs@lists.fedoraproject.org
To unsubscribe send an email to fonts-bugs-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/fonts-bugs@lists.fedoraproject.org

Reply via email to