File deepin-ui.spec of Package deepin-ui

#
# spec file for package deepin-ui
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 Hillwood Yang <hillwood@opensuse.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-ui
Summary:        UI toolkit for Linux Deepin
License:        GPL-3.0+
Group:          System/GUI/GNOME
Version:        2.0git20141229
Release:        0
Url:            http://www.linuxdeepin.com
Source0:        %{name}_1.1+20141229194712~5a86faec50.tar.gz
BuildRequires:  cairo-devel
BuildRequires:  fdupes
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libwebkitgtk-devel
BuildRequires:  python-devel
BuildRequires:  python-gtk-devel
BuildRequires:  python-setuptools
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(glib-2.0)
Requires:       deepin-utils
Requires:       python-cssselect
Requires:       python-webkitgtk
Obsoletes:      %{name}-demo < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%{py_requires}

%description
UI toolkit libs for Linux Deepin,Awesome and Beautiful UI libs with LinuxDeepin.


%prep
%setup -q -n %{name}-1.1+20141229194712~5a86faec50

%build

%install
chmod 644 AUTHORS
chmod 644 COPYING
export CFLAGS="$RPM_OPT_FLAGS" 
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT

%fdupes %{buildroot}

%files 
%defattr(-,root,root)
%doc AUTHORS COPYING
# %{_datadir}/pyshared
%{python_sitelib}/dtk
%dir %{python_sitelib}/dtk-1.0.3-py2.7.egg-info
%{python_sitelib}/dtk-1.0.3-py2.7.egg-info/PKG-INFO
%{python_sitelib}/dtk-1.0.3-py2.7.egg-info/SOURCES.txt
%{python_sitelib}/dtk-1.0.3-py2.7.egg-info/dependency_links.txt
%{python_sitelib}/dtk-1.0.3-py2.7.egg-info/top_level.txt

%changelog
openSUSE Build Service is sponsored by