File deepin-gsettings.spec of Package deepin-gsettings

#
# spec file for package deepin-gsettings
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 Hillwood Yang <hillwood@linuxfans.org>
#
# 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/
#


Name:           deepin-gsettings
Summary:        Deepin gsettings python bindings
License:        GPL-3.0+
Group:          System/GUI/GNOME
Version:        0.1git20131206
Release:        0
Url:            http://www.linuxdeepin.com
Source0:        http://packages.linuxdeepin.com/deepin/pool/main/d/deepin-gsettings/%{name}_0.1+git20131206094009~a64de3ac19.tar.gz
BuildRequires:  libsoup-devel
BuildRequires:  libwebkitgtk-devel
BuildRequires:  python-devel
BuildRequires:  python-gtk-devel
BuildRequires:  python-setuptools
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(pygobject-2.0)
BuildRequires:  pkgconfig(webkit-1.0)
Requires:       python-numpy
Requires:       python-webkitgtk
#BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{py_requires}

%description
A python2 bindings in Linux Deepin

This package contains a module to get this working on 
Deepin Desktop which requires GSettings in their own 
XSETTINGS daemons.

%prep
%setup -q -n %{name}-0.1+git20131206094009~a64de3ac19

%build

%install
cp debian/docs .
cp debian/changelog .
export CFLAGS="$RPM_OPT_FLAGS" 
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc docs changelog
%{python_sitearch}/deepin_gsettings-0.1-py2.7.egg-info
%{python_sitearch}/deepin_gsettings.so

%changelog
openSUSE Build Service is sponsored by