Create stable wheel dirs during build
We always create stable dirs in the package, but during build we picked up the autogenerated version which is %{version} amended by a time stamp. This is unstable (not nice) and works 23/7 only because of how upstream tries to make this PEP 440 proof. Consequently, we get "random" build failures. Make it %{version} which is stable and foolproof.
This commit is contained in:
parent
586b6b4497
commit
e64cf232b8
@ -114,9 +114,8 @@ make %{?_smp_mflags} c++ python
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install install-shared-c install-shared-c++ install-shared-python prefix=%{_prefix} libdir=%{_libdir} pydir=%{python3_sitearch} SO_INSTALL_MODE=755
|
||||
# wheel bundles too much, so build & install with make and generate metadata here:
|
||||
%{__python3} setup.py dist_info
|
||||
MUPDF_SETUP_VERSION=%{version} %{__python3} setup.py dist_info
|
||||
mkdir -p %{buildroot}/%{python3_sitearch}/%{pypiname}-%{version}.dist-info
|
||||
sed -i -e '/^Version:/s/^Version: .*$/Version: %{version}/' mupdf-*.dist-info/METADATA/PKG-INFO
|
||||
install -p -m644 mupdf-*.dist-info/METADATA/PKG-INFO %{buildroot}/%{python3_sitearch}/%{pypiname}-%{version}.dist-info/METADATA
|
||||
# handle docs on our own
|
||||
rm -rf %{buildroot}/%{_docdir}
|
||||
|
Loading…
Reference in New Issue
Block a user