From 76f7882134df3814f7ea9a72d579ef5d68d3241a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:38:01 +0100 Subject: [PATCH] package created using the webbuild interface [release 7.1.5-1mamba;Wed May 19 2021] --- README.md | 2 ++ pycxx.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 pycxx.spec 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