specfile fixes [release 2.6.2-2mamba;Thu Jun 24 2021]
This commit is contained in:
parent
5dab624d61
commit
3d83dba32f
@ -1,6 +1,6 @@
|
|||||||
Name: python-pybind11
|
Name: python-pybind11
|
||||||
Version: 2.6.2
|
Version: 2.6.2
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Seamless operability between C++11 and Python
|
Summary: Seamless operability between C++11 and Python
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -10,15 +10,23 @@ URL: https://pypi.org/project/pybind11/
|
|||||||
Source: https://pypi.debian.net/pybind11/pybind11-%{version}.tar.gz
|
Source: https://pypi.debian.net/pybind11/pybind11-%{version}.tar.gz
|
||||||
License: BSD
|
License: BSD
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
## note: run 'autospec -u -a6 python-pybind11' to get the list of build requirements.
|
BuildRequires: libpython3-devel
|
||||||
|
BuildRequires: python3.7dist(setuptools)
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: libpython-devel
|
BuildRequires: libpython-devel
|
||||||
Requires: python >= %python_version
|
Requires: python >= %python_version
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Group: Development/Libraries
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: python-pybind11-py3 = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains header and cmake files for developing applications that use %{name}.
|
||||||
|
|
||||||
%if 0%{?with_pyver}
|
%if 0%{?with_pyver}
|
||||||
%pyver_package
|
%pyver_package
|
||||||
%endif
|
%endif
|
||||||
@ -34,22 +42,37 @@ CFLAGS="%{optflags}" %{__python} setup.py build
|
|||||||
%{__python} setup.py install \
|
%{__python} setup.py install \
|
||||||
-O1 --skip-build \
|
-O1 --skip-build \
|
||||||
--root="%{buildroot}" \
|
--root="%{buildroot}" \
|
||||||
--install-headers=%{python_inc} \
|
--install-headers=%{_includedir} \
|
||||||
--install-lib=%{python_sitearch} \
|
--install-lib=%{python_sitearch} \
|
||||||
--record=%{name}.filelist
|
--record=%{name}.filelist
|
||||||
|
|
||||||
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
||||||
|
sed -i "/include/d" %{name}.filelist
|
||||||
|
sed -i "/cmake/d" %{name}.filelist
|
||||||
|
|
||||||
|
mv %{buildroot}%{python_sitearch}/pybind11/include %{buildroot}%{_prefix}/
|
||||||
|
install -d -m0755 %{buildroot}%{_datadir}/cmake
|
||||||
|
mv %{buildroot}%{python_sitearch}/pybind11/share/cmake/pybind11 %{buildroot}%{_datadir}/cmake/
|
||||||
|
|
||||||
%files %{?pyappend} -f %{name}.filelist
|
%files %{?pyappend} -f %{name}.filelist
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
## note: this list is just an example; modify as required
|
%dir %{python_sitearch}/pybind11-%{version}-py*.egg-info
|
||||||
# %{python_sitearch}/%{name}.py*
|
%{python_sitearch}/pybind11-%{version}-py*.egg-info/*
|
||||||
# %{python_sitearch}/%{name}.so
|
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
## note: add extra documentation (if any)
|
|
||||||
# %doc README.rst
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{_includedir}/pybind11
|
||||||
|
%{_includedir}/pybind11/*.h
|
||||||
|
%dir %{_includedir}/pybind11/detail
|
||||||
|
%{_includedir}/pybind11/detail/*.h
|
||||||
|
%dir %{_datadir}/cmake/pybind11
|
||||||
|
%{_datadir}/cmake/pybind11/*.cmake
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.2-2mamba
|
||||||
|
- specfile fixes
|
||||||
|
|
||||||
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 2.6.2-1mamba
|
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 2.6.2-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user