From d973a77771a6302510ee0df08bc573dd30393925 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:53:38 +0100 Subject: [PATCH] python 2.7 rebuild [release 0.9.9-2mamba;Sun Jun 02 2013] --- Pyrex.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 73 insertions(+) create mode 100644 Pyrex.spec diff --git a/Pyrex.spec b/Pyrex.spec new file mode 100644 index 0000000..3bb74f2 --- /dev/null +++ b/Pyrex.spec @@ -0,0 +1,71 @@ +Name: Pyrex +Version: 0.9.9 +Release: 2mamba +Summary: A Language for Writing Python Extension Modules +Group: Development/Libraries/Python +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ +Source: http://www.cosc.canterbury.ac.nz/%7Egreg/python/Pyrex/Pyrex-%{version}.tar.gz +License: Public Domain +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Pyrex lets you write code that mixes Python and C data types any way you want, and compiles it into a C extension for Python. + +%prep +%setup -q +sed -i "s|python|%{__python}|" bin/pyrexc +sed -i "s|python|%{__python}|" bin/update_references + +%build +%{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%{__python} setup.py install \ + --root=%{buildroot} \ + --install-headers=%{_includedir}/python%{python_version} \ + --install-lib=%{python_sitearch} + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_bindir}/pyrexc +%dir %{python_sitearch}/Pyrex +%{python_sitearch}/Pyrex/* +%{python_sitearch}/Pyrex-%{version}-py*.egg-info +%dir %{python_sitearch}/Pyrex/Compiler +%{python_sitearch}/Pyrex/Compiler/Lexicon.pickle + +%changelog +* Sun Jun 02 2013 Silvan Calarco 0.9.9-2mamba +- python 2.7 rebuild + +* Mon Jun 21 2010 Automatic Build System 0.9.9-1mamba +- automatic update by autodist + +* Wed Mar 10 2010 Automatic Build System 0.9.8.6-1mamba +- automatic update by autodist + +* Mon Nov 24 2008 gil 0.9.8.5-1mamba +- update to 0.9.8.5 + +* Fri May 09 2008 Silvan Calarco 0.9.7-1mamba +- update to 0.9.7 + +* Tue Oct 24 2006 Silvan Calarco 0.9.4.1-1qilnx +- update to version 0.9.4.1 by autospec + +* Mon Aug 08 2005 Silvan Calarco 0.9.3-2qilnx +- rebuilt with Python 2.4 + +* Sat Jun 04 2005 Silvan Calarco 0.9.3-1qilnx +- package created by autospec + diff --git a/README.md b/README.md index 90b26a1..a34bd56 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # Pyrex +Pyrex lets you write code that mixes Python and C data types any way you want, and compiles it into a C extension for Python. +