!1 Package init

Merge pull request !1 from 成子晗/master
This commit is contained in:
openeuler-ci-bot 2020-06-20 11:01:48 +08:00 committed by Gitee
commit c77b317ba2
4 changed files with 73 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,24 @@
From dc6770ba4b79db91543d27bd20fc3f00de1101c8 Mon Sep 17 00:00:00 2001
From: Akira TAGOH <akira@tagoh.org>
Date: Thu, 19 Jul 2018 09:12:53 +0000
Subject: [PATCH] clean up
---
fontstweak/ui/fonts-tweak-config.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/fontstweak/ui/fonts-tweak-config.py b/fontstweak/ui/fonts-tweak-config.py
index 4888c7f..473b74d 100644
--- a/fontstweak/ui/fonts-tweak-config.py
+++ b/fontstweak/ui/fonts-tweak-config.py
@@ -26,7 +26,6 @@ from distutils.version import LooseVersion
from gi.repository import Gtk
from gi.repository import Pango
from gi.repository import Easyfc
-from xdg import BaseDirectory
try:
from tweaks import FontsTweak
except ImportError:
--
2.18.0.rc2

45
fonts-tweak-tool.spec Normal file
View File

@ -0,0 +1,45 @@
Name: fonts-tweak-tool
Version: 0.4.5
Release: 4
Summary: A tool for customizing fonts per language
License: LGPLv3+
URL: https://bitbucket.org/tagoh/fonts-tweak-tool/
Source0: https://bitbucket.org/tagoh/fonts-tweak-tool/downloads/fonts-tweak-tool-%{version}.tar.bz2
Patch0000: fonts-tweak-tool-drop-pyxdg.patch
BuildRequires: desktop-file-utils intltool python3-devel gobject-introspection-devel glib2-devel
Requires: libeasyfc-gobject >= 0.14.0 python3-gobject gtk3 hicolor-icon-theme
%description
A tool for customizing fonts per language on desktops using fontconfig.
%prep
%autosetup -n fonts-tweak-tool-%{version} -p1
%configure PYTHON=%{__python3}
%build
%make_build
%install
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications fonts-tweak-tool.desktop
%make_install
%find_lang fonts-tweak-tool
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f fonts-tweak-tool.lang
%doc README AUTHORS NEWS COPYING
%{_bindir}/fonts-tweak-tool
%{python3_sitearch}/fontstweak
%{_datadir}/fonts-tweak-tool
%{_datadir}/appdata/fonts-tweak-tool.appdata.xml
%{_datadir}/applications/fonts-tweak-tool.desktop
%{_libdir}/libfontstweak-resources.so.0*
%{_libdir}/girepository-*/FontsTweak-*.typelib
%exclude %{_libdir}/lib*.{la,so}
%exclude %{_datadir}/gir-*/FontsTweak-*.gir
%changelog
* Wed Apr 15 2020 chengzihan <chengzihan2@huawei.com> - 0.4.5-4
- Package init

4
fonts-tweak-tool.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: git
src_repo: https://bitbucket.org/tagoh/fonts-tweak-tool.git
tag_prefix: ^
seperator: .