File fontmatrix.spec of Package fontmatrix
#
# spec file for package fontmatrix
#
# Copyright (c) 2023 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: fontmatrix
Version: 0.9.100
Release: 0
Summary: Free font collections manager
License: GPL-2.0-only
Group: Productivity/Graphics/Other
URL: https://github.com/%{name}/%{name}
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: cmake(Qt5PrintSupport)
BuildRequires: cmake(Qt5Sql)
BuildRequires: cmake(Qt5Svg)
BuildRequires: cmake(Qt5WebKitWidgets)
BuildRequires: cmake(Qt5Xml)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files
%description
Fontmatrix is a font management application for Linux, macOS, and Windows.
It helps keeping your font collection in order, allowing you to enable and
disable availability of fonts and font families in your system. This is
typically in demand by designers who tend to have huge collections of
typefaces.
Searching for the right font in Fontmatrix is easy thanks to advanced support
for PANOSE and user defined filters, as well as tags.
Fontmatrix is also useful for type designers and enthusiasts, because it
simplifies testing of OpenType features and allows comparing fonts glyph by
glyph which is extremely useful for learning type design.
%prep
%setup -q
%build
%cmake
%cmake_build
%install
%cmake_install
%fdupes %{buildroot}%{_datadir}/%{name}
%post
%desktop_database_post
%icon_theme_cache_post
:
%postun
%desktop_database_postun
%icon_theme_cache_postun
:
%files
%license COPYING
%doc AUTHORS README.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/icons/hicolor/48x48
%dir %{_datadir}/icons/hicolor/48x48/apps
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog