File python-efl.spec of Package python-efl

# spec file for package python-efl
# Copyright (c) 2013 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

Name:           python-efl
Version:        1.15.0
Release:        0
Summary:        Python bindings of evas
License:        GPL-3.0 and LGPL-3.0
Group:          System/Libraries
Source:         %{name}-%{version}.tar.xz
BuildRequires:  pkgconfig
BuildRequires:  python-cython
BuildRequires:  pkgconfig(dbus-python)
BuildRequires:  pkgconfig(ecore)
BuildRequires:  pkgconfig(edje)
BuildRequires:  pkgconfig(elementary)
BuildRequires:  pkgconfig(emotion)
BuildRequires:  pkgconfig(eo)
BuildRequires:  pkgconfig(evas)
BuildRequires:  pkgconfig(python)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires:  fdupes
# pre-unification mess
Obsoletes:     python-evas < %{version}
Provides:      python-evas = %{version}
Obsoletes:     python-ecore < %{version}
Provides:      python-ecore = %{version}
Obsoletes:     python-edje < %{version}
Provides:      python-edje = %{version}
Obsoletes:     python-emotion < %{version}
Provides:      python-emotion = %{version}
Obsoletes:     python-e_dbus < %{version}
Provides:      python-e_dbus = %{version}
Obsoletes:     python-elementary < %{version}
Provides:      python-elementary = %{version}

Python bindings of evas library, part of EFL.

%package doc
Summary:        Documentation for python-efl
Group:          TBD
BuildRequires:  python-sphinx

%description doc
HTML formated documentation for python-efl module.

%package examples
Summary:        Examples of python-efl usage
Group:          TBD

%description examples
Some examples of usage of python-efl.

%setup -q

python build -g
python build_doc


# module itself
python install --prefix="%{_prefix}" --root=%{buildroot}

# documentation
install -m 0755 -d "%{buildroot}/%{_docdir}/%{name}"
cp -R build/sphinx/html "%{buildroot}/%{_docdir}/%{name}"
rm "%{buildroot}/%{_docdir}/%{name}"/html/.buildinfo
%if 0%{?suse_version}
%fdupes -s "%{buildroot}/%{_docdir}/%{name}"

# examples
install -m 0755 -d "%{buildroot}/%{_datadir}/%{name}"
cp -R examples/  "%{buildroot}/%{_datadir}/%{name}/"
mkdir -p %{buildroot}/%{_docdir}/%{name}
cp -pr COPYING %{buildroot}/%{_docdir}/%{name}/
cp -pr COPYING.LESSER %{buildroot}/%{_docdir}/%{name}/
cp -pr AUTHORS %{buildroot}/%{_docdir}/%{name}/

%exclude %{_docdir}/%{name}/html/

%files doc

%files examples

openSUSE Build Service is sponsored by