%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif %global srcname instant Name: python-%{srcname} Version: 0.9.8 Release: 1%{?dist} Summary: Python module for instant inlining of C and C++ code Group: Applications/Engineering License: BSD URL: http://www.fenics.org/wiki/Instant Source0: http://launchpad.net/instant/trunk/%{version}/+download/%{srcname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools %description Instant is a Python module that allows for instant inlining of C and C++ code in Python. It is a small Python module built on top of SWIG and Distutils. %prep %setup -q -n %{srcname}-%{version} chmod 0644 test/* %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README TODO doc/html_reference/ test/ %{_mandir}/man*/*.1* %{_bindir}/instant* %{python_sitelib}/%{srcname}/ %{python_sitelib}/%{srcname}*.egg-info %changelog * Sat Jul 03 2010 Fabian Affolter <fabian@bernewireless.net> - 0.9.8-1 - Updated to new upsteam version 0.9.8 - Updated the spec file to reflect changes in the guidelines - Updated docs * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Mar 24 2009 Fabian Affolter <fabian@bernewireless.net> - 0.9.6-1 - Updated to new upstream version 0.9.6 * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 04 2009 Fabian Affolter <fabian@bernewireless.net> - 0.9.5-2 - Added tests * Sat Jan 30 2009 Fabian Affolter <fabian@bernewireless.net> - 0.9.5-1 - Initial package for Fedora