File lookit.spec of Package lookit

#
# spec file for package lookit
#
# Copyright (c) 2016 SUSE LINUX 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/
#

Name:           lookit
Version:        1.1.0
Release:        0
Summary:        Quick Screenshot Uploader
License:        GPL-2.0
Group:          Productivity/Graphics/Other
Url:            http://zachtib.github.com/lookit
Source:         https://github.com/zachtib/lookit/archive/%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  update-desktop-files
BuildRequires:  hicolor-icon-theme
BuildRequires:  fdupes
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Lookit is a screenshot utility for Linux that allows quick capturing
and uploading of screenshots for easy sharing.

%prep
%setup -q

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%suse_update_desktop_file -r %{name} Utility DesktopUtility

%fdupes %{buildroot}%{_prefix}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files 
%defattr(-,root,root)
%doc Changelog
%{_bindir}/lookit
%python_sitelib/*
%python_sitelib/lookit/
%python_sitelib/lookit/data
%python_sitelib/lookit/poster
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/extensions
%{_datadir}/gnome-shell/extensions/lookit@extensions.zachtib.com
%dir %{_datadir}/icons/ubuntu-mono-dark
%dir %{_datadir}/icons/ubuntu-mono-dark/apps
%{_datadir}/icons/ubuntu-mono-dark/apps/22
%{_datadir}/icons/ubuntu-mono-dark/apps/24
%dir %{_datadir}/icons/ubuntu-mono-light
%dir %{_datadir}/icons/ubuntu-mono-light/apps
%{_datadir}/icons/ubuntu-mono-light/apps/22
%{_datadir}/icons/ubuntu-mono-light/apps/24
%{_datadir}/applications/lookit.desktop
%{_datadir}/icons/hicolor/scalable/apps/lookit-panel.svg
%{_datadir}/pixmaps/lookit.svg

%changelog
openSUSE Build Service is sponsored by