File boostpythongenerator.spec of Package boostpythongenerator

# spec file for package boostpythongenerator (Version 0.3.3)
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           boostpythongenerator
BuildRequires:  gcc-c++ python-devel boost-devel cmake libqt4-devel libapiextractor0-devel libgenrunner0_3_3-devel
%if 0%{?suse_version}
BuildRequires:  libQtWebKit-devel fdupes
License:        GPL v2 or later
Group:          Development/Libraries/C and C++
Summary:        Generates Python bindings for Qt based libraries
Version:        0.3.3
Release:        2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.bz2

The Boost::Python Generator (A.K.A. boostpythongenerator) is the program that
creates the bindings source files from Qt headers and auxiliary files
(typesystems, global.h and glue files). It makes heavy use of the API
Extractor library.

    Anderson Lizardo <>
    Bruno Araujo <>
    Hugo Parente Lima <>
    Lauro Moura <>
    Luciano Wolf <>
    Marcelo Lira <>
    Renato Araujo Oliveira Filho <>

%setup -q

%{__mkdir} build
pushd build
cmake .. -DCMAKE_INSTALL_PREFIX=%_prefix -DLIB_SUFFIX=$(echo %_lib | cut -b4-)
make %{?jobs:-j%jobs}

pushd build
%if 0%{?suse_version}

%post -n %{name} -p /sbin/ldconfig

%postun -n %{name} -p /sbin/ldconfig