File gnome-logs.spec of Package gnome-logs

#
# spec file for package gnome-logs
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Dominique Leuenberger, Amsterdam, The Netherlands
#
# 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:           gnome-logs
Version:        3.12.2
Release:        0
Summary:        GNOME System Log Viewer
License:        GPL-3.0+
Group:          System/Utilities
Url:            https://wiki.gnome.org/Design/Apps/SystemLog
Source:         http://download.gnome.org/sources/gnome-logs/3.12/%{name}-%{version}.tar.xz
BuildRequires:  gtk-doc
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool >= 0.50.0
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(gio-2.0) >= 2.39.90
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.9.6
BuildRequires:  pkgconfig(libsystemd-journal)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A utility for viewing detailed event logs for the system.

%lang_package
%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file -r %{name} GTK GNOME System Monitor

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%doc %{_datadir}/help/C/gnome-logs/
%{_bindir}/%{name}
%dir %{_datadir}/appdata
%{_datadir}/appdata/gnome-logs.appdata.xml
%{_datadir}/applications/%{name}.desktop
# Own non-standard dirs
%dir %{_datadir}/icons/hicolor/512x512
%dir %{_datadir}/icons/hicolor/512x512/apps
%{_datadir}/icons/hicolor/*/apps/gnome-logs.png
%{_mandir}/man1/%{name}.1%{?ext_man}

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by