Name: shiboken Version: 0.3.2 Release: 4%{?dist} Summary: CPython bindings generator for C++ libraries Group: Development/Tools License: GPLv2 URL: http://www.pyside.org Source0: http://www.pyside.org/files/shiboken-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: apiextractor-devel BuildRequires: cmake BuildRequires: generatorrunner-devel BuildRequires: python2-devel BuildRequires: python-sphinx BuildRequires: qt4-devel BuildRequires: sparsehash-devel Requires: %{name}-libs = %{version}-%{release} # for %%{_libdir}/generatorrunner/ Requires: generatorrunner %description Shiboken is a bindings generator for C++ libraries that outputs CPython source code. It uses generatorrunner and apiextractor to collect information from library headers, merging modifications and handwritten code defined in the type system description. Shiboken is the binding generator used to create the PySide bindings. %package libs Summary: CPython bindings generator for C++ libraries - shared library Group: System Environment/Libraries License: LGPLv2 with exceptions %description libs Shiboken is a bindings generator for C++ libraries that outputs CPython source code. It uses generatorrunner and apiextractor to collect information from library headers, merging modifications and handwritten code defined in the type system description. This is the shared library used by shiboken. %package devel Summary: Development files for %{name} Group: Development/Libraries License: GPLv2 and LGPLv2 with exceptions Requires: %{name} = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release} Requires: cmake Requires: python2-devel %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q # Build against sparsehash package rm -rf ext/sparsehash/ %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake} .. popd make %{?_smp_mflags} -C %{_target_platform} # Build html docs make -C doc html rm -f doc/_build/html/_static/images/._* rm -f doc/_build/html/.buildinfo %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} %check make test -C %{_target_platform} %clean rm -rf $RPM_BUILD_ROOT %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc ChangeLog COPYING %{_bindir}/shiboken %{_libdir}/generatorrunner/* %files libs %defattr(-,root,root,-) %doc COPYING.libshiboken %{_libdir}/libshiboken.so.* %files devel %defattr(-,root,root,-) %doc doc/_build/html/ %{_includedir}/shiboken/ %{_libdir}/libshiboken.so %{_libdir}/pkgconfig/*.pc %{_libdir}/cmake/Shiboken-%{version}/ %changelog * Sat Jul 24 2010 Kalev Lember - 0.3.2-4 - Explicitly require generatorrunner for %%{_libdir}/generatorrunner/ directory ownership (#609738) * Sat Jul 24 2010 Kalev Lember - 0.3.2-3 - Require python2-devel in devel package as the public headers include Python.h * Sat Jul 24 2010 Kalev Lember - 0.3.2-2 - BR sparsehash-devel instead of sparsehash (#609738) * Thu Jul 01 2010 Kalev Lember - 0.3.2-1 - Initial RPM release