File python-pyside-tools.spec of Package python-pyside-tools

# spec file for package python-pyside (Version 0.1.2)
# 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

%if 0%{?fedora}
%{!?py_sitedir: %define py_sitedir %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%if 0%{?mdkversion}
%define py_sitedir %{py_platsitedir}

Name:           python-pyside-tools
BuildRequires:  gcc-c++ cmake boost-devel python-devel libqt4-devel python-pyside-devel
%if 0%{?suse_version}
BuildRequires:  libQtWebKit-devel fdupes
License:        GPL v2
Group:          Development/Libraries/Python
Summary:        PySide tools
Version:        0.1.2
Release:        2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        pyside-tools-%{version}.tar.bz2
Patch0:         pyside-tools-pylupdate_qt_dir.patch
Requires:       python-pyside
%if 0%{?suse_version}

This package provides a resource compiler and UI compiler for PySide

    PySide developers

%setup -q -n pyside-tools-%{version}

%{__mkdir} build
pushd build
cmake .. -DCMAKE_INSTALL_PREFIX=%_prefix
make %{?jobs:-j%jobs}

pushd build
%if 0%{?suse_version}


%doc AUTHORS LICENSE-uic LICENSE-rcc ChangeLog
%dir %{py_sitedir}/pysideuic
%dir %{py_sitedir}/pysideuic/Compiler
%dir %{py_sitedir}/pysideuic/elementtree
%dir %{py_sitedir}/pysideuic/widget-plugins