File lifeograph.spec of Package lifeograph

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

%description
Lifeograph is an off-line and private journal and note taking application.

%lang_package

%prep
%setup -q

%build
%cmake
make %{?_smp_mflags}

%install
%cmake_install

%find_lang lifeograph

%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}/icons/hicolor/scalable/apps/lifeograph-symbolic.svg
%{_datadir}/lifeograph/
%{_datadir}/pixmaps/lifeograph.png

%files lang -f %{name}.lang
%defattr(-,root,root)
openSUSE Build Service is sponsored by