%global upname llvmpy Name: python-%{upname} Version: 0.12.0 Release: 1%{?dist} Summary: Python bindings for LLVM License: BSD URL: http://www.llvmpy.org/ Source: https://github.com/llvmpy/llvmpy/archive/%{version}.tar.gz BuildRequires: python2-devel llvm-devel zlib-devel BuildRequires: python-sphinx python-nose %description llvmpy is a Python wrapper around the llvm C++ library which allows simple access to compiler tools. # we don't want to provide private python extension libs %global __provides_exclude_from ^(%{python_sitearch}/.*\\.so)$ %prep %setup -qn %{upname}-%{version} # Remove some shebangs pushd llpython for i in $(grep -l -r "/usr/bin/env"); do sed -i -e '1d' $i; done popd %build CFLAGS="%{optflags}" %{__python} setup.py build make %{?_smp_mflags} html -C docs rm docs/_build/html/.buildinfo %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} pushd %{buildroot}/%{python_sitearch} find -name "*.so" | xargs chmod 755 popd %files %doc CHANGELOG README_LLVM_CBUILDER.md LICENSE README.rst docs/_build/html %{python_sitearch}/llpython %{python_sitearch}/llvm %{python_sitearch}/llvmpy %{python_sitearch}/llvm_array %{python_sitearch}/llvm_cbuilder %{python_sitearch}/llvmpy-tag_.%{version}-py2.7.egg-info %changelog * Wed Sep 04 2013 Sergio Pascual - 0.12.0-1 - New upstream source (0.12.0) with LLVM 3.3 support * Fri May 24 2013 Sergio Pascual - 0.11.2-1 - Initial spec file