File lifeograph.spec of Package lifeograph

#
# spec file for package 
#
# 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:           lifeograph
Version:	1.0.1
Release:	1
License:	GPL-3.0
Summary:	Private digital diary
Url:		http://lifeograph.wikidot.com/
Group:		Productivity/Other
Source:		https://launchpad.net/lifeograph/trunk/1.0.1/+download/lifeograph-1.0.1.tar.gz
BuildRequires:	cmake
BuildRequires:	enchant-devel
BuildRequires:	fdupes
BuildRequires:	gcc-c++
BuildRequires:	gtkmm3-devel
BuildRequires:	intltool
BuildRequires:	libgcrypt-devel
BuildRequires:	pkgconfig
BuildRequires:	update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%description
lifeograph has all the basic features one might expect from a diary program and a few more:

- supports encrypted (with real encryption) and unencrypted diaries
- automatically logs out when not used for some time (to protect your diary when you forget to log out doing some other thing) (optional)
- automatically formats entry titles and subheadings (we owe thanks to tomboy for the idea)
- wiki-like rich text formatting (*bold*, _italic_, =strikeout=, etc…)
- basic searching/filtering and replacing text

and many more.
  
%prep
%setup -q -n lifeograph-1.0.1


%build
cmake . -DCMAKE_INSTALL_PREFIX=/usr
make 

%install
make install DESTDIR=$RPM_BUILD_ROOT

%fdupes -s %{buildroot}%{_datadir}


%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_bindir}/lifeograph
%dir %{_datadir}/appdata/
%{_datadir}/appdata/lifeograph.appdata.xml
%{_datadir}/icons/hicolor/*/apps/lifeograph.png
%{_datadir}/icons/hicolor/scalable/apps/lifeograph.svg
%{_datadir}/lifeograph/
%{_datadir}/pixmaps/lifeograph.png
%lang(ar) %{_datadir}/locale/ar/LC_MESSAGES/lifeograph.mo
%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/lifeograph.mo
%lang(de) %{_datadir}/locale/de/LC_MESSAGES/lifeograph.mo
%lang(es) %{_datadir}/locale/es/LC_MESSAGES/lifeograph.mo
%lang(eu) %{_datadir}/locale/eu/LC_MESSAGES/lifeograph.mo
%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/lifeograph.mo
%lang(gl) %{_datadir}/locale/gl/LC_MESSAGES/lifeograph.mo
%lang(he) %{_datadir}/locale/he/LC_MESSAGES/lifeograph.mo
%lang(hu) %{_datadir}/locale/hu/LC_MESSAGES/lifeograph.mo
%lang(it) %{_datadir}/locale/it/LC_MESSAGES/lifeograph.mo
%lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/lifeograph.mo
%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/lifeograph.mo
%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/lifeograph.mo
%lang(ro) %{_datadir}/locale/ro/LC_MESSAGES/lifeograph.mo
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/lifeograph.mo
%lang(sr) %{_datadir}/locale/sr/LC_MESSAGES/lifeograph.mo
%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/lifeograph.mo
%lang(tr) %{_datadir}/locale/tr/LC_MESSAGES/lifeograph.mo
%lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/lifeograph.mo
%lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/lifeograph.mo