File fonts-tweak-tool.spec of Package fonts-tweak-tool

#
# spec file for package fonts-tweak-tool
#
# Copyright (c) 2025 SUSE LINUX Products 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: fonts-tweak-tool
Version: 0.4.8
Release: 0
Summary: Tool for customizing fonts per language

License: LGPL-3.0-or-later
URL: https://gitlab.com/tagoh/%{name}/
Source0: https://gitlab.com/api/v4/projects/tagoh%2F%{name}packages/generic/%{name}/%{version}/%{name}-%{version}.tar.bz2

BuildRequires: desktop-file-utils
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: python3-devel
BuildRequires: libtool
BuildRequires: gettext-tools
BuildRequires: intltool
BuildRequires: pkgconfig(gobject-introspection-1.0) pkgconfig(glib-2.0)
BuildRequires: make
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: fdupes
BuildRequires: libeasyfc-devel
Requires: python3-gobject
Requires: python3dist(packaging)

%description
fonts-tweak-tool is a GUI tool for customizing fonts per language on desktops
using fontconfig.

%prep
%autosetup -p1
autoreconf --force --install
cp ./po/Makevars.template ./po/Makevars

%build

%configure --disable-static PYTHON=%{__python3} 
%make_build

%install
%make_install

desktop-file-install --dir=%{buildroot}%{_datadir}/applications --remove-only-show-in="GNOME;Unity;" fonts-tweak-tool.desktop

rm -f %{buildroot}%{_libdir}/lib*.so
%__brp_remove_la_files
rm -f %{buildroot}%{_datadir}/gir-*/FontsTweak-*.gir

%fdupes %{buildroot}/%{_prefix}

%find_lang %{name}

%ldconfig_scriptlets



%files -f %{name}.lang
%doc README AUTHORS NEWS
%license COPYING
%{_bindir}/%{name}
%{python3_sitearch}/fontstweak
%{_datadir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_libdir}/libfontstweak-resources.so.0*
%{_libdir}/girepository-*/FontsTweak-*.typelib
openSUSE Build Service is sponsored by