File glogg.spec of Package glogg
#
# spec file for package glogg
#
# Copyright (c) 2020 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: lp152.5.3
Summary: Fast smart log explorer
License: GPL-3.0-only
Group: Productivity/Text/Utilities
URL: https://glogg.bonnefon.org/
Source: http://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: update-desktop-files
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}"
%suse_update_desktop_file -r "%{name}" Qt System Monitor
rm -rf %{buildroot}%{_datadir}/doc/%{name}
%files
%license COPYING
%doc README.md TODO doc/documentation.markdown
%{_bindir}/glogg
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/*/*/apps/glogg.*
%changelog
* Wed Feb 26 2020 Christophe Giboudeaux <christophe@krop.fr>
- Use python3-Markdown instead of the python2 variant.
* Mon Dec 18 2017 christophe@krop.fr
- Update to 1.1.4
* Fix a race condition leading to a crash
* Improve auto-reload of files
* Add support for multiple files on the command line
* Allow case insensitive filters
* Support for UTF-8 file, in addition to ISO-8859-1
* New icons
- Drop glogg-qdatastream.patch (fixed upstream)
* Wed Oct 14 2015 asterios.dramis@gmail.com
- Added a patch (glogg-qdatastream.patch) to fix compilation error
because of missing includes for openSUSE > 13.1.
* Fri Sep 18 2015 asterios.dramis@gmail.com
- Update to 1.0.2:
* Completely new code to detect changed file on Linux and
Windows.
* Keep the auto-refreshing search on when a file is truncated.
* Remember the setting of “auto-refresh” and “ignore case”.
* Various minor fixes.
From 1.0.1:
* Do not load the previous session when starting with a file name
(old behaviour can be restored with command line options)
* Add options to load existing session from the desktop
environment on Linux.
* Load a file in an existing glogg instance on Windows (exiting
behaviour but was previously broken).
* Store and restore window geometry.
* Add a “close” menu option and common shortcuts to close a tab.
From 1.0.0:
* Window geometry is now stored and restored once again.
* Added Firefox-like keyboard shortcuts for tabs.
* Added a version checker that will inform the Windows user of
new versions being available.
From 0.99.1:
* Opening a file now uses an already running instance of glogg if
one is present (on Windows and, optionally, Linux).
* Supports command line options to allow multiple instances (-m)
and to ignore the previous session (-s)
* Attempt to cleanly closes the file in case of memory full
condition (instead of crashing!).
* Add logging capabilities for debugging on Windows.
From 0.99.0:
* Tabbed interface.
- Use Qt5 for openSUSE > 13.1. Added pkgconfig build requirements
Qt5Core, Qt5DBus, Qt5Gui and Qt5Widgets for this.
- Updated build requirement python-markdown to python-Markdown.
- Added a patch (glogg-python-markdown.patch) to fix markdown
detection during compilation.
- Added a patch (glogg-qt5dbus.patch) to look for Qt5DBus rather
than QtDBus for openSUSE > 13.1.
* Sat Dec 7 2013 cgiboudeaux@gmx.com
- Update to 0.9.2.1
* Support incremental search for QuickFind (’/’ or ‘Ctrl+F’).
* Add (optional) line numbers to either or both views.
* Show the location of matches on the overview when hovering onto them.
* ‘Follow’ mode now works in both windows.
* Add some Windows friendly keyboard shortcuts.
* Add a ‘select all’ feature and block selecting with shift+click.
* Fix QuickFind directions to behave like vim (’*’, ’#’, ‘n’ and ‘N’).
* Add an option to have QuickFind ignore the case.
- Spec cleanup
* Fri Jan 4 2013 toddrme2178@gmail.com
- Update to 0.9.1
* Add a widget to select displaying marks, matches or both.
* Add a context pop-up menu when right clicking on a selection
and permit to add the selection to the current search.
* Add tooltips to indicate the full path of recent files.
* Correct problems with font rendering on some systems using
sub-pixel rendering (e.g. Ubuntu 12.04 LTS and Windows).
- Update to 0.9.0
* Add a ‘matches overview’ bar on the right hand side.
* Allow the user to create ‘marks’ in the log which are shown in
the filtered view and in the overview.
* Windows version now stores the configuration in an ini file
instead of the registry.
* Various bug corrections and memory usage enhancements.
- Update to 0.8.3
* New, more robust, preference storage backend
* Filters and history are not overwritten anymore when several
instances of glogg are used simultaneously
* Filters dialog is more intuitive and shows a preview of each
filter
* Fix the nasty flash on the info lines when a small update is
done to the log file
- removed upstreamed glogg-fix_pro.patch
* Wed Jan 5 2011 pascal.bleser@opensuse.org
- initial version (0.8.2)