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 http://bugs.opensuse.org/
#
# norootforbuild
%if 0%{?fedora}
%{!?py_sitedir: %define py_sitedir %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
%if 0%{?mdkversion}
%define py_sitedir %{py_platsitedir}
%endif
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
%endif
License: GPL v2
Group: Development/Libraries/Python
Summary: PySide tools
Version: 0.1.2
Release: 2
Url: http://www.pyside.org
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}
%{py_requires}
%endif
%description
This package provides a resource compiler and UI compiler for PySide
Authors:
--------
PySide developers
%prep
%setup -q -n pyside-tools-%{version}
%patch0
%build
%{__mkdir} build
pushd build
cmake .. -DCMAKE_INSTALL_PREFIX=%_prefix
make %{?jobs:-j%jobs}
%install
pushd build
%makeinstall DESTDIR=$RPM_BUILD_ROOT
%if 0%{?suse_version}
%fdupes $RPM_BUILD_ROOT
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%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
%_bindir/pyside-*
%{py_sitedir}/pysideuic/*.py
%{py_sitedir}/pysideuic/Compiler/*.py
%{py_sitedir}/pysideuic/elementtree/*.py
%{py_sitedir}/pysideuic/widget-plugins/*.py
%changelog