From c7769d41015e751da0735f78fce1cdd4c3e10afe Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 31 2019 12:32:26 +0000 Subject: import fonts-tweak-tool-0.3.2-5.el7 --- diff --git a/.fonts-tweak-tool.metadata b/.fonts-tweak-tool.metadata new file mode 100644 index 0000000..73b588c --- /dev/null +++ b/.fonts-tweak-tool.metadata @@ -0,0 +1 @@ +bd1c028cec893c24c361ef80b22dcc8d6b8e5926 SOURCES/fonts-tweak-tool-0.3.2.tar.bz2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..341562a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/fonts-tweak-tool-0.3.2.tar.bz2 diff --git a/SOURCES/fonts-tweak-tool-sigint.patch b/SOURCES/fonts-tweak-tool-sigint.patch new file mode 100644 index 0000000..7cf17eb --- /dev/null +++ b/SOURCES/fonts-tweak-tool-sigint.patch @@ -0,0 +1,32 @@ +From f3a1f55c594a06503c27c8a7e9f6c11308bf1053 Mon Sep 17 00:00:00 2001 +From: Akira TAGOH +Date: Thu, 12 Dec 2013 20:20:28 +0900 +Subject: [PATCH] Workaround to terminate with SIGINT + +--- + fonts-tweak-tool | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/fonts-tweak-tool b/fonts-tweak-tool +index 6e8c5e3..60ede69 100755 +--- a/fonts-tweak-tool ++++ b/fonts-tweak-tool +@@ -24,6 +24,7 @@ import gettext + import gi + import locale + import os ++import signal + from fontstweak.fontstweak import FontsTweakConst + from fontstweak.util import FontsTweakUtil + from fontstweak.aliasui import FontsTweakAliasUI +@@ -45,6 +46,7 @@ except Locale.Error as e: + os.environ['LC_ALL'] = 'C' + locale.setlocale(locale.LC_ALL, '') + ++signal.signal(signal.SIGINT, signal.SIG_DFL) + gettext.bind_textdomain_codeset(FontsTweakConst.GETTEXT_PACKAGE, locale.nl_langinfo(locale.CODESET)) + gettext.bindtextdomain(FontsTweakConst.GETTEXT_PACKAGE, FontsTweakConst.LOCALEDIR) + gettext.textdomain(FontsTweakConst.GETTEXT_PACKAGE) +-- +1.8.4.2 + diff --git a/SOURCES/fonts-tweak-tool-sitearchdir.patch b/SOURCES/fonts-tweak-tool-sitearchdir.patch new file mode 100644 index 0000000..fcc1d35 --- /dev/null +++ b/SOURCES/fonts-tweak-tool-sitearchdir.patch @@ -0,0 +1,12 @@ +diff -pruN fonts-tweak-tool-0.3.2.orig/fontstweak/Makefile.am fonts-tweak-tool-0.3.2/fontstweak/Makefile.am +--- fonts-tweak-tool-0.3.2.orig/fontstweak/Makefile.am 2013-05-13 15:48:12.000000000 +0900 ++++ fonts-tweak-tool-0.3.2/fontstweak/Makefile.am 2014-02-05 20:18:51.000000000 +0900 +@@ -35,7 +35,7 @@ pyscripts_sources = \ + $(NULL) + + pyscripts_PYTHON = $(pyscripts_sources) +-pyscriptsdir = $(pythondir)/fontstweak ++pyscriptsdir = $(pyexecdir)/fontstweak + + lib_LTLIBRARIES = \ + libfontstweak-resources.la \ diff --git a/SPECS/fonts-tweak-tool.spec b/SPECS/fonts-tweak-tool.spec new file mode 100644 index 0000000..c75f415 --- /dev/null +++ b/SPECS/fonts-tweak-tool.spec @@ -0,0 +1,148 @@ +Name: fonts-tweak-tool +Version: 0.3.2 +Release: 5%{?dist} +Summary: Tool for customizing fonts per language + +Group: User Interface/Desktops +License: LGPLv3+ +URL: https://bitbucket.org/tagoh/%{name}/ +Source0: https://bitbucket.org/tagoh/%{name}/downloads/%{name}-%{version}.tar.bz2 +Patch0: %{name}-sigint.patch +Patch1: %{name}-sitearchdir.patch + +BuildRequires: desktop-file-utils +BuildRequires: intltool +BuildRequires: python-devel +BuildRequires: gobject-introspection-devel glib2-devel +Requires: libeasyfc-gobject >= 0.12.1 +Requires: pygobject3 +Requires: gtk3 +Requires: hicolor-icon-theme + +%description +fonts-tweak-tool is a GUI tool for customizing fonts per language on desktops +using fontconfig. + +%prep +%setup -q +%patch0 -p1 -b .0-sigint +%patch1 -p1 -b .0-sitearch + +autoreconf -f -i +%configure --disable-static + +%build +make %{?_smp_mflags} + +%install +desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications fonts-tweak-tool.desktop +make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="/usr/bin/install -p" + +rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.{la,so} +rm -f $RPM_BUILD_ROOT%{_datadir}/gir-*/FontsTweak-*.gir + +%find_lang %{name} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files -f %{name}.lang +%doc README COPYING AUTHORS NEWS +%{_bindir}/%{name} +%{python_sitearch}/fontstweak +%{_datadir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_libdir}/libfontstweak-resources.so.0* +%{_libdir}/girepository-*/FontsTweak-*.typelib + +%changelog +* Fri Feb 7 2014 Akira TAGOH - 0.3.2-5 +- Fix the installation path for python scripts (#1061035) + +* Fri Jan 24 2014 Daniel Mach - 0.3.2-4 +- Mass rebuild 2014-01-24 + +* Fri Jan 10 2014 Akira TAGOH - 0.3.2-3 +- Fix SIGINT handling workaround. (#1040256) + +* Fri Dec 27 2013 Daniel Mach - 0.3.2-2 +- Mass rebuild 2013-12-27 + +* Wed Jul 31 2013 Akira TAGOH - 0.3.2-1 +- New upstream release. + +* Thu Apr 18 2013 Akira TAGOH - 0.3.1-1 +- New upstream release. + - Fix a crash. (#952983) + +* Fri Mar 29 2013 Akira TAGOH - 0.3.0-1 +- New upstream release. + +* Tue Feb 26 2013 Akira TAGOH - 0.2.0-1 +- New upstream release. + - Improve UI (#909769) + +* Wed Feb 13 2013 Fedora Release Engineering - 0.1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Jan 22 2013 Akira TAGOH - 0.1.5-1 +- New upstream release. + - Updated translations (#816378) + +* Tue Dec 18 2012 Akira TAGOH - 0.1.4-1 +- New upstream release. + - Fix file writing issue when the classification filter is turned off. + (#886330) + +* Sat Nov 24 2012 Akira TAGOH - 0.1.2-1 +- New upstream release + - Fix broken icons issue on non-GNOME desktops (#879140) + +* Wed Nov 21 2012 Akira TAGOH - 0.1.1-3 +- Fix a typo + +* Wed Nov 21 2012 Akira TAGOH - 0.1.1-2 +- clean up and improve the spec file. + +* Mon Oct 22 2012 Akira TAGOH - 0.1.1-1 +- New upstream release. + - Drop the unnecessary warnings (#859455) + +* Wed Sep 19 2012 Akira TAGOH - 0.1.0-1 +- New upstream release. + +* Mon Aug 06 2012 James Ni - 0.0.8-1 +- Apply pull request from tagoh + +* Tue Jul 24 2012 James Ni - 0.0.7-1 +- Fixed rhbz#838871, Apply button is always clickable +- Fixed rhbz#838854, existing settings in .i18n isn't reflected to initial value +- Fixed rhbz#838865, Unable to remove language in GTK Language Order tab +- Fixed rhbz#838850 - empty language added to .i18n + +* Thu Jul 19 2012 Fedora Release Engineering - 0.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Jun 27 2012 James Ni - 0.0.6-1 +- Implement pango_language feature and bug fix + +* Tue Mar 20 2012 James Ni - 0.0.5-1 +- Fix issue of 'UnicodeWarning: Unicode equal comparison failed' + +* Mon Mar 19 2012 James Ni - 0.0.4-1 +- Bug fix and feature enhancement + +* Thu Feb 23 2012 James Ni - 0.0.3-1 +- Fix the issue of spec file + +* Fri Feb 17 2012 James Ni - 0.0.2-3 +- Fix the issue of spec file + +* Wed Feb 08 2012 James Ni - 0.0.2-2 +- Fix the issue of spec file + +* Tue Feb 07 2012 James Ni - 0.0.2-1 +- Update the licenses file and modify the spec file + +* Mon Feb 06 2012 James Ni - 0.0.1-1 +- initial package