File glogg.spec of Package glogg
#
# spec file for package glogg
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: glogg
Version: 1.1.4
Release: 0
Summary: Fast smart log explorer
License: GPL-3.0-only
URL: https://glogg.bonnefon.org/
Source: https://glogg.bonnefon.org/files/glogg-%{version}.tar.gz
# PATCH-FIX-OPENSUSE glogg-python-markdown.patch asterios.dramis@gmail.com -- Fix markdown detection during compilation (patch based on Fedora one)
Patch0: glogg-python-markdown.patch
# PATCH-FIX-OPENSUSE glogg-qt5dbus.patch asterios.dramis@gmail.com -- Look for Qt5DBus rather than QtDBus (patch taken from Fedora)
Patch1: glogg-qt5dbus.patch
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libboost_program_options-devel
BuildRequires: python3-Markdown
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Gui)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5Widgets)
%description
glogg is a multi-platform GUI application that helps browse and search through
long and complex log files. It is designed with programmers and system
administrators in mind and can be seen as a graphical, interactive combination
of grep and less.
Main features:
* Provides a second window showing the result of the current search
* Supports grep/egrep like regular expressions
* Colorizes the log and search results
* Displays a context view of where in the log the lines of interest are
* Is fast and reads the file directly from disk, without loading it into memory
%prep
%autosetup -p1
%build
%qmake5
%make_build
%install
%make_install INSTALL_ROOT="%{buildroot}%{_prefix}"
rm -r %{buildroot}%{_datadir}/doc/glogg
%files
%license COPYING
%doc README.md TODO doc/documentation.markdown
%{_bindir}/glogg
%{_datadir}/applications/glogg.desktop
%{_datadir}/icons/*/*/apps/glogg.*
%changelog