File deepin-utils.spec of Package deepin-utils

#
# spec file for package deepin-utils
#
# 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-utils
Summary:        Utils library for all project in Linux Deepin
License:        GPL-3.0+
Group:          System/GUI/GNOME
Version:        0.0.2git20140703
Release:        0
Url:            https://github.com/linuxdeepin/deepin-utils
Source0:        http://packages.linuxdeepin.com/deepin/pool/main/d/%{name}/%{name}_0.0.2+20140703165416~8aaf2a6f00.tar.gz
BuildRequires:  libsoup-devel
BuildRequires:  libwebkitgtk-devel
BuildRequires:  python-devel
BuildRequires:  python-gtk-devel
BuildRequires:  python-setuptools
BuildRequires:  update-desktop-files
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
Utils library for all project in Linux Deepin.

Base code move from utils module of deepin-ui.

%prep
%setup -q -n %{name}-0.0.2+20140703165416~8aaf2a6f00

%build

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

%files 
%defattr(-,root,root)
#%doc README
%{python_sitearch}/deepin_utils
%{python_sitearch}/deepin_utils-1.0-py2.7.egg-info
%{python_sitearch}/dtk_cairo_blur.so
%{python_sitearch}/dtk_webkit_cookie.so
%{python_sitearch}/deepin_font_icon.so

%changelog
openSUSE Build Service is sponsored by