Use dynamic %_prefix value when matching files for python(abi) provides
See https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.org/thread/UFKUM5UKCTNGIT3KJVYEI5VXPI23QMBN/ Flatpak builds redefine %_prefix and the dependencies should remain present. Also get rid of one useless ^ and prep the pattern for two digit Python major versions. Add a test that tests that we match our default %_prefix (was the case even before this commit).
This commit is contained in:
parent
bbfe4930d9
commit
8eef42cbaa
4 changed files with 31 additions and 2 deletions
|
|
@ -10,11 +10,18 @@ BuildRequires: python3-devel
|
|||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{python3_sitelib}
|
||||
mkdir -p %{buildroot}/opt%{python3_sitelib}
|
||||
mkdir -p %{buildroot}%{python3_sitearch}
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
mkdir -p %{buildroot}/opt%{_bindir}
|
||||
|
||||
echo "print()" > %{buildroot}%{python3_sitelib}/file.py
|
||||
echo "print()" > %{buildroot}/opt%{python3_sitelib}/file.py
|
||||
|
||||
cp %{python3_sitearch}/../lib-dynload/cmath.*.so %{buildroot}%{python3_sitearch}/file.so
|
||||
|
||||
cp %{_bindir}/python%{python3_version} %{buildroot}%{_bindir}/python%{python3_version}
|
||||
cp %{_bindir}/python%{python3_version} %{buildroot}/opt%{_bindir}/python%{python3_version}
|
||||
|
||||
|
||||
%package -n python-noarch
|
||||
|
|
@ -41,3 +48,19 @@ Summary: ...
|
|||
%files -n python-interpreter
|
||||
%{_bindir}/python%{python3_version}
|
||||
|
||||
|
||||
%package -n python-misplaced-library
|
||||
Summary: ...
|
||||
BuildArch: noarch
|
||||
%description -n python-misplaced-library
|
||||
...
|
||||
%files -n python-misplaced-library
|
||||
%pycached /opt%{python3_sitelib}/file.py
|
||||
|
||||
|
||||
%package -n python-misplaced-interpreter
|
||||
Summary: ...
|
||||
%description -n python-misplaced-interpreter
|
||||
...
|
||||
%files -n python-misplaced-interpreter
|
||||
/opt%{_bindir}/python%{python3_version}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue