diff --git a/README.md b/README.md index b37b8d6..7689846 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # pycxx +A set of C++ facilities to make it easier to write Python extensions. + diff --git a/pycxx.spec b/pycxx.spec new file mode 100644 index 0000000..475b39a --- /dev/null +++ b/pycxx.spec @@ -0,0 +1,47 @@ +%define pkgname %(echo %name | cut -d- -f2-) +Name: pycxx +Version: 7.1.5 +Release: 1mamba +Summary: A set of C++ facilities to make it easier to write Python extensions +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://cxx.sourceforge.net/ +Source: http://prdownloads.sourceforge.net/cxx/pycxx-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython3-devel +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/CXX \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files %{?pyappend} -f %{name}.filelist +%defattr(-,root,root) +%{python3_sitearch}/CXX-%{version}-py*.egg-info + +%changelog +* Wed May 19 2021 Silvan Calarco 7.1.5-1mamba +- package created using the webbuild interface