From c5a0541bed3115ae74dfc36081930c92c87d9feb Mon Sep 17 00:00:00 2001 From: Nicolas Mailhot Date: Feb 21 2020 10:57:08 +0000 Subject: Convert to fonts-rpm-macros use --- diff --git a/.gitignore b/.gitignore index f521b7c..934a4df 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ GFS_JACKSON.zip +/GFS_Jackson.zip diff --git a/61-gfs-jackson-fonts.xml b/61-gfs-jackson-fonts.xml new file mode 100644 index 0000000..bc4d277 --- /dev/null +++ b/61-gfs-jackson-fonts.xml @@ -0,0 +1,12 @@ + + + + + + GFS Jackson + + fantasy + + + + diff --git a/gfs-jackson-fonts-fontconfig.conf b/gfs-jackson-fonts-fontconfig.conf deleted file mode 100644 index c42d4a3..0000000 --- a/gfs-jackson-fonts-fontconfig.conf +++ /dev/null @@ -1,16 +0,0 @@ - - - - - fantasy - - GFS Jackson - - - - GFS Jackson - - fantasy - - - diff --git a/gfs-jackson-fonts.spec b/gfs-jackson-fonts.spec index f177095..3719383 100644 --- a/gfs-jackson-fonts.spec +++ b/gfs-jackson-fonts.spec @@ -1,24 +1,19 @@ -%global fontname gfs-jackson -%global fontconf 61-%{fontname}.conf - -%global archivename GFS_JACKSON - -Name: %{fontname}-fonts +# SPDX-License-Identifier: MIT Version: 20080303 -Release: 22%{?dist} -Summary: GFS Jackson majuscule Greek font - -License: OFL -URL: http://www.greekfontsociety.gr/pages/en_typefaces_majuscules.html -Source0: http://www.greekfontsociety.gr/%{archivename}.zip -Source1: %{name}-fontconfig.conf -Source2: %{fontname}.metainfo.xml - -BuildArch: noarch -BuildRequires: fontpackages-devel -Requires: fontpackages-filesystem - -%description +Release: 23%{?dist} +URL: http://www.greekfontsociety-gfs.gr/typefaces/majuscule + +%global foundry GFS +%global fontlicense OFL +%global fontlicenses OFL.txt +%global fontdocs *.txt +%global fontdocsex %{fontlicenses} + +%global fontfamily Jackson +%global fontsummary GFS Jackson, a majuscule Greek font family +%global fonts *.otf +%global fontconfngs %{SOURCE10} +%global fontdescription %{expand: As it is known, the Greek alphabet was used in majuscule form for over a millennium before the minuscule letters gradually replaced it until they became the official script in the 9th century A.D. Thereafter, majuscule letters were @@ -39,111 +34,36 @@ Beza codex containning the New Testament from the 5th-6th century. Theodore Beza was the erudite scholar from Geneva who had given the codex as a gift to the University in 1581. -It has been designed by George D. Matthiopoulos. +It has been designed by George D. Matthiopoulos.} + +%global archivename %{lua:t=string.gsub(rpm.expand("%{foundry} %{fontfamily}"), "[%p%s]+", "_");print(t)} +Source0: http://www.greekfontsociety-gfs.gr/_assets/fonts/%{archivename}.zip +Source10: 61-%{fontpkgname}.xml + +%fontpkg %prep %setup -q -c -T -unzip -j -L -q %{SOURCE0} -chmod 0644 *.txt -for txt in *.txt ; do - fold -s $txt > $txt.new - sed -i 's/\r//' $txt.new - touch -r $txt $txt.new - mv $txt.new $txt -done - +unzip -j -q %{SOURCE0} +%linuxtext *.txt %build - +%fontbuild %install -install -m 0755 -d %{buildroot}%{_fontdir} -install -m 0644 -p *.otf %{buildroot}%{_fontdir} - -install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ - %{buildroot}%{_fontconfig_confdir} +%fontinstall -install -m 0644 -p %{SOURCE1} \ - %{buildroot}%{_fontconfig_templatedir}/%{fontconf} -ln -s %{_fontconfig_templatedir}/%{fontconf} \ - %{buildroot}%{_fontconfig_confdir}/%{fontconf} +%check +%fontcheck -# Add AppStream metadata -install -Dm 0644 -p %{SOURCE2} \ - %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml - -%_font_pkg -f %{fontconf} *.otf -%doc *.txt -%{_datadir}/appdata/%{fontname}.metainfo.xml +%fontfiles %changelog -* Tue Jan 28 2020 Fedora Release Engineering - 20080303-22 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering - 20080303-21 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Thu Jan 31 2019 Fedora Release Engineering - 20080303-20 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 20080303-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Fedora Release Engineering - 20080303-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 20080303-17 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 20080303-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed Feb 03 2016 Fedora Release Engineering - 20080303-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 20080303-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Fri Oct 17 2014 Parag Nemade - 20080303-13 -- Add metainfo file to show this font in gnome-software - -* Sat Jun 07 2014 Fedora Release Engineering - 20080303-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sat Aug 03 2013 Fedora Release Engineering - 20080303-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Wed Feb 13 2013 Fedora Release Engineering - 20080303-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Thu Jul 19 2012 Fedora Release Engineering - 20080303-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Fri Jan 13 2012 Fedora Release Engineering - 20080303-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Tue Feb 08 2011 Fedora Release Engineering - 20080303-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Fri Jul 24 2009 Fedora Release Engineering - 20080303-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Tue Feb 24 2009 Fedora Release Engineering - 20080303-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Mon Feb 16 2009 Nicolas Mailhot -- 20080303-4 -— prepare for F11 mass rebuild, new rpm and new fontpackages - -* Sun Nov 23 2008 Nicolas Mailhot -- 20080303-3 -ᛤ ‘rpm-fonts’ renamed to “fontpackages” - -* Fri Nov 14 2008 Nicolas Mailhot -- 20080303-2 -▤ Rebuild using new « rpm-fonts » +* Sat Feb 15 2020 Nicolas Mailhot +- 20080303-23 +✅ Convert to fonts-rpm-macros use -* Sun Jul 06 2008 Nicolas Mailhot +* Sun Jul 06 2008 Nicolas Mailhot - 20080303-1 -Π initial packaging +✅ Initial packaging diff --git a/gfs-jackson.metainfo.xml b/gfs-jackson.metainfo.xml deleted file mode 100644 index d441ea7..0000000 --- a/gfs-jackson.metainfo.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - gfs-jackson - CC-BY-3.0 - GFS Jackson - GFS Jackson majuscule Greek font - -

- GFS Jackson is an edition of the font cut, in 1788, by Joseph Jackson on - commission by the Cambridge University in preparation of the edition of the - Beza codex containning the New Testament from the 5th-6th century. Theodore - Beza was the erudite scholar from Geneva who had given the codex as a gift to - the University in 1581. - - It has been designed by George D. Matthiopoulos. -

-
- pnemade_at_redhat_dot_com - http://www.greekfontsociety.gr/pages/en_typefaces_majuscules.html -
diff --git a/sources b/sources index d5a8609..7c6617d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -73d235051292e23bc807c71d8c951e6b GFS_JACKSON.zip +SHA512 (GFS_Jackson.zip) = 0b0e18b25418b79968201ffc1ba069d009f923d08c3a55ed5d80fdd7071be1343574b61d0eedcae88db9941523dd4c818cd1b458934d8acfbab602035fca54e5