On 14. 10. 20 20:29, Vojtěch Polášek wrote:
Hello,

I have some basics of RPM packaging, but I have not created a package from scratch yet. I would like to package one Python package called Tesserwrap. I used the pyp2rpm program to create a spec file. The file is here:

https://fedorapeople.org/~vpolasek/tesserwrap.spec

Unfortunately the build fails because there are some installed and unpackaged files. One of them is some debug file which I would probably discard, one of them is a shared library.

/usr/lib/debug/usr/lib64/python3.8/site-packages/libtesserwrap.cpython-38-x86_64-linux-gnu.so-0.1.6-1.fc32.x86_64.debug
/usr/lib64/python3.8/site-packages/libtesserwrap.cpython-38-x86_64-linux-gnu.so

I have some questions:

1. How to ignore that installed file, e.g. do not package it? This goes for the debug file.

The debug file will be handled by magic when you include the normal file with Python extension module.

2. Where is some list of macros which I could use for my paths and file names? The file name of the library contains python version (cpython38). Can this be somehow expressed with macro or do I have to put there the file name manually?

Add this to %files:

%{python3_sitearch}/libtesserwrap%{python3_ext_suffix}

Or this:

%{python3_sitearch}/libtesserwrap.cpython-%{python3_version_nodots}-%{python3_platform_triplet}.so

Or this:

%{python3_sitearch}/libtesserwrap.cpython-*.so

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]

Reply via email to