- Remove unversioned files from devel subpkg too

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python38?expand=0&rev=10
This commit is contained in:
Tomáš Chvátal 2020-07-10 10:02:45 +00:00 committed by Git OBS Bridge
parent 5c8138e56b
commit f935fec56c
2 changed files with 11 additions and 10 deletions

View File

@ -1,17 +1,10 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 10 09:56:28 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Fri Jul 10 10:02:01 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Remove unversioned files from devel subpkg too
- Remove main python3 files from -base based whether we are - Remove main python3 files from -base based whether we are
primary interpreter or not primary interpreter or not
-------------------------------------------------------------------
Fri Jul 10 09:35:29 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix idle to be co-installable - Fix idle to be co-installable
-------------------------------------------------------------------
Fri Jul 10 08:44:54 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Add condition to be primary to provide/obsolete python3-* - Add condition to be primary to provide/obsolete python3-*
- Fix doc to build in versioned folder so the pythons can be - Fix doc to build in versioned folder so the pythons can be
installed next to each other installed next to each other

View File

@ -643,9 +643,14 @@ ln -sf python%{python_version} %{buildroot}%{_bindir}/python3
# decide to ship python3 or just python3.X # decide to ship python3 or just python3.X
%if !%{primary_interpreter} %if !%{primary_interpreter}
# base
rm %{buildroot}%{_bindir}/python3 rm %{buildroot}%{_bindir}/python3
rm %{buildroot}%{_bindir}/pydocs3 rm %{buildroot}%{_bindir}/pydocs3
rm %{buildroot}%{_mandir}/man1/python3.1 rm %{buildroot}%{_mandir}/man1/python3.1
# devel
rm %{buildroot}%{_bindir}/python3-config
rm %{buildroot}%{_libdir}/libpython3.so
rm %{buildroot}%{_libdir}/pkgconfig/{python3,python3-embed}.pc
%endif %endif
# link shared library instead of static library that tools expect # link shared library instead of static library that tools expect
@ -796,14 +801,17 @@ echo %{sitedir}/_import_failed > %{buildroot}/%{sitedir}/site-packages/zzzz-impo
%files -n %{python_pkg_name}-devel %files -n %{python_pkg_name}-devel
%defattr(644, root, root, 755) %defattr(644, root, root, 755)
%{_libdir}/libpython%{python_abi}.so %{_libdir}/libpython%{python_abi}.so
%if %{primary_interpreter}
%{_libdir}/libpython3.so %{_libdir}/libpython3.so
%endif
%{_libdir}/pkgconfig/* %{_libdir}/pkgconfig/*
%{_includedir}/python%{python_abi} %{_includedir}/python%{python_abi}
%{sitedir}/config-%{python_abi}-* %{sitedir}/config-%{python_abi}-*
%defattr(755, root, root) %defattr(755, root, root)
%{_bindir}/python%{python_abi}-config %{_bindir}/python%{python_abi}-config
# %%{_bindir}/python%%{python_version}-config %if %{primary_interpreter}
%{_bindir}/python3-config %{_bindir}/python3-config
%endif
# Own these directories to not depend on gdb # Own these directories to not depend on gdb
%dir %{_datadir}/gdb %dir %{_datadir}/gdb
%dir %{_datadir}/gdb/auto-load %dir %{_datadir}/gdb/auto-load