File everpad.spec of Package everpad
#
# spec file for package everpad
#
# 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 http://bugs.opensuse.org/
#
Name: everpad
%define _gitsnapshot 0628abb
Version: 2.4.99.0.20140624.%{_gitsnapshot}
Release: 0
Summary: Evernote Client
License: BSD-3-Clause
Group: Productivity/Text/Editors
Url: https://github.com/nvbn/everpad/wiki
Source: %{name}-git%{_gitsnapshot}.tar.xz
# PATCH-FIX-OPENSUSE everpad-python-suse.patch sbrabec@suse.cz -- Fix name of python-oauth2.
Patch: %{name}-python-suse.patch
# PATCH-FEATURE-OPENSUSE everpad-thrift-update.patch sbrabec@suse.cz -- Port to the latest thrift from python-evernote.
Patch1: %{name}-thrift-update.patch
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: python
BuildRequires: python-setuptools
BuildRequires: update-desktop-files
# For directory ownership only:
BuildRequires: hicolor-icon-theme
BuildRequires: kdelibs4
Requires: dbus-1-python
Requires: python-SQLAlchemy
Requires: python-beautifulsoup
Requires: python-evernote
Requires: python-html2text
Requires: python-keyring
Requires: python-magic
Requires: python-oauth2
Requires: python-pyside
Requires: python-pysqlite
Requires: python-regex
Requires: python-setuptools
# python-support gtk2-engines-pixbuf python-regex
BuildArch: noarch
Recommends: %{name}-lang = %{version}
%py_requires
%description
Evernote client well integrated with the Linux desktop
Client has:
* indicator applet
Client support:
* notes
* tags
* notebooks
* resources
* places
* en-* tags
%lang_package
%prep
%setup -q -n %{name}
%patch -p1
%patch1 -p1
rm -r evernote thrift
%build
python setup.py\
build
%install
# HACK: SUSE python-pyside (deliberately) does not contain the egg-info dependency information. Set TRAVIS_CI to not include this requirement, and require package name only.
export TRAVIS_CI=1
python setup.py\
install\
--prefix=%{_prefix}\
--root=$RPM_BUILD_ROOT
%if 0%{?suse_version} > 1230
%suse_update_desktop_file everpad Feed # and maybe Utility TextTools
%else
# News: Ugly additional Categories. But Feed was not available up to 13.1, and check will fail without it.
%suse_update_desktop_file everpad News
%endif
%fdupes $RPM_BUILD_ROOT%{_datadir}
%fdupes $RPM_BUILD_ROOT%{_prefix}/lib
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%icon_theme_cache_post
%desktop_database_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%files
%defattr(-, root, root)
%doc README.rst
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/everpad
%{_datadir}/icons/hicolor/*/*/*.*
# FIXME: This directory should be owned by one of KDE packages.
%dir %{_datadir}/kde4/apps/plasma/runners
%{_datadir}/kde4/apps/plasma/runners/*
%{_datadir}/kde4/services/*
%{_datadir}/pixmaps/*.*
# Ubuntu only
%exclude %{_datadir}/unity/lenses/*
%{python_sitelib}/*
%files lang -f %{name}.lang
%changelog