Build the python package with dist-info
This commit is contained in:
parent
1d2d12d786
commit
58b9e99f51
@ -1,6 +1,3 @@
|
||||
# Turn off the brp-python-bytecompile script
|
||||
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
|
||||
|
||||
Name: liblouis
|
||||
Version: 3.28.0
|
||||
Release: 1%{?dist}
|
||||
@ -67,7 +64,6 @@ them is suitable for braille transcription.
|
||||
Summary: Python 3 language bindings for %{name}
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python3-louis}
|
||||
|
||||
%description -n python3-louis
|
||||
This package provides Python 3 language bindings for %{name}.
|
||||
@ -86,11 +82,19 @@ This package provides the documentation for liblouis.
|
||||
%autosetup
|
||||
chmod 664 tables/*
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
cd python
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
%configure --disable-static --enable-ucs4
|
||||
# parallel builds fail
|
||||
make
|
||||
cd doc; xetex %{name}.texi
|
||||
cd ../python
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%check
|
||||
@ -110,11 +114,10 @@ install -pm 0644 liblouis/internal.h %{buildroot}%{_includedir}/%{name}
|
||||
# Replace table files with identical content by symlinks
|
||||
%fdupes -s %{buildroot}%{_datadir}/%{name}/tables/
|
||||
|
||||
cd python/louis
|
||||
|
||||
install -d %{buildroot}%{python3_sitelib}/louis
|
||||
install -pm 0644 __init__.py %{buildroot}%{python3_sitelib}/louis/
|
||||
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/louis/
|
||||
cd python
|
||||
%pyproject_install
|
||||
%pyproject_save_files louis
|
||||
cd -
|
||||
|
||||
# Remove Rpaths from the executables. We must do that in the %%install section
|
||||
# because, otherwise, the test suite wouldn't build.
|
||||
@ -144,8 +147,7 @@ done
|
||||
%{_bindir}/lou_*
|
||||
%{_mandir}/man1/lou_*.1*
|
||||
|
||||
%files -n python3-louis
|
||||
%{python3_sitelib}/louis/
|
||||
%files -n python3-louis -f %{pyproject_files}
|
||||
|
||||
%files doc
|
||||
%doc doc/%{name}.{html,txt,pdf}
|
||||
@ -156,6 +158,7 @@ done
|
||||
- Update to 3.28.0
|
||||
- Install internal.h for MuseScore
|
||||
- Drop ancient obsoletes
|
||||
- Build the python package with dist-info
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.25.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
Loading…
Reference in New Issue
Block a user