A new user interface for you! Read more...

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 http://bugs.opensuse.org/
#

# 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
%endif
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
Url:            http://www.pyside.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.bz2

%description
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.


Authors:
--------
    Anderson Lizardo <anderson.lizardo@openbossa.org>
    Bruno Araujo <bruno.araujo@openbossa.org>
    Hugo Parente Lima <hugo.lima@openbossa.org>
    Lauro Moura <lauro.neto@openbossa.org>
    Luciano Wolf <luciano.wolf@openbossa.org>
    Marcelo Lira <marcelo.lira@openbossa.org>
    Renato Araujo Oliveira Filho <renato.filho@openbossa.org>

%prep
%setup -q

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

%install
pushd build
%makeinstall DESTDIR=$RPM_BUILD_ROOT
%if 0%{?suse_version}
%fdupes $RPM_BUILD_ROOT
%endif

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

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

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%_bindir/%{name}
%_libdir//generatorrunner/libboostpython_generator.so
%_mandir/man1/*

%changelog