diff --git a/pypy3.9.spec b/pypy3.9.spec index 8b41f86..db83a56 100644 --- a/pypy3.9.spec +++ b/pypy3.9.spec @@ -429,6 +429,8 @@ BuildPyPy \ %install +%global pypylibdir %{_libdir}/pypy%{pyversion} + # First, run packaging script, it will prep the installation tree in builddir %global installation_archive_name pypy%{pyversion}-%{version_} %global packaging_builddir builddir @@ -463,7 +465,7 @@ mv %{packaged_prefix}/include %{buildroot}%{_includedir} mv %{packaged_prefix}/%{_lib} %{buildroot}%{_libdir} # Create directories we want to own -install -d -m 0755 %{buildroot}%{_libdir}/pypy%{pyversion}/site-packages/__pycache__ +install -d -m 0755 %{buildroot}%{pypylibdir}/site-packages/__pycache__ %if "%{_lib}" == "lib64" # The 64-bit version needs to create "site-packages" in /usr/lib/ (for # pure-Python modules) as well as in /usr/lib64/ (for packages with extension @@ -713,12 +715,12 @@ CheckPyPy pypy%{pyversion}-c %files libs %doc README.rst -%license %{_libdir}/pypy%{pyversion}/LICENSE -%license %{_libdir}/pypy%{pyversion}/_cffi_ssl/LICENSE -%license %{_libdir}/pypy%{pyversion}/cffi.dist-info/LICENSE -%license %{_libdir}/pypy%{pyversion}/cffi/_pycparser/ply/LICENSE -%license %{_libdir}/pypy%{pyversion}/hpy.dist-info/LICENSE -%{_libdir}/pypy%{pyversion}/ +%license %{pypylibdir}/LICENSE +%license %{pypylibdir}/_cffi_ssl/LICENSE +%license %{pypylibdir}/cffi.dist-info/LICENSE +%license %{pypylibdir}/cffi/_pycparser/ply/LICENSE +%license %{pypylibdir}/hpy.dist-info/LICENSE +%{pypylibdir}/ %if "%{_lib}" == "lib64" %{_prefix}/lib/pypy%{pyversion}/ %endif