forked from pool/python-py3c
- Add destdir.patch to fix pc file and includes install
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py3c?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
d85d16e4f7
commit
b5927d85ef
@@ -25,6 +25,7 @@ License: MIT
|
||||
URL: http://py3c.readthedocs.io/
|
||||
Source: https://github.com/encukou/py3c/archive/v%{version}.tar.gz#/py3c-%{version}.tar.gz
|
||||
Source99: python-py3c-rpmlintrc
|
||||
Patch0: destdir.patch
|
||||
# Needed for test build
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -40,14 +41,24 @@ py3c helps you port C extensions to Python 3.
|
||||
It provides a detailed guide, and a set of macros to make porting easy
|
||||
and reduce boilerplate.
|
||||
|
||||
%package -n py3c-devel
|
||||
Summary: Development files for py3c
|
||||
|
||||
%description -n py3c-devel
|
||||
py3c helps you port C extensions to Python 3.
|
||||
|
||||
%prep
|
||||
%setup -q -n py3c-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
# we will use the make install to deploy includes
|
||||
rm -r %{buildroot}%{_includedir}
|
||||
%make_install prefix=%{_prefix}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -72,8 +83,16 @@ popd
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
%dir %{_includedir}/python%{python_bin_suffix}
|
||||
%dir %{_includedir}/python%{python_bin_suffix}/py3c
|
||||
%{_includedir}/python%{python_bin_suffix}/py3c/*.h
|
||||
|
||||
%files -n py3c-devel
|
||||
%{_includedir}/py3c.h
|
||||
%dir %{_includedir}/py3c
|
||||
%{_includedir}/py3c/capsulethunk.h
|
||||
%{_includedir}/py3c/comparison.h
|
||||
%{_includedir}/py3c/compat.h
|
||||
%{_includedir}/py3c/fileshim.h
|
||||
%{_includedir}/py3c/py3shims.h
|
||||
%{_includedir}/py3c/tpflags.h
|
||||
%{_datadir}/pkgconfig/py3c.pc
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user