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