#1 Add EPEL7 to google-roboto-fonts
Opened 6 years ago by hm1992. Modified 6 years ago
https://github.com/hjmallon/google-roboto-fonts-rpm.git epel7  into  epel7

google-roboto-fonts: Add epel7 release
Harry Mallon • 6 years ago  
64-google-roboto-condensed-fontconfig.conf
file added
+25
@@ -0,0 +1,25 @@

+ <?xml version="1.0" encoding="UTF-8"?>

+ <!DOCTYPE fontconfig SYSTEM "../fonts.dtd">

+ <fontconfig>

+         <alias>

+           <family>sans-serif</family>

+             <prefer>

+               <family>Roboto Condensed</family>

+             </prefer>

+         </alias>

+         <alias>

+           <family>Roboto Condensed</family>

+             <default>

+               <family>sans-serif</family>

+             </default>

+         </alias>

+ 	<match target="scan">

+ 		<test name="family">

+ 			<string>Roboto Condensed</string>

+ 		</test>

+ 		<edit name="width">

+ 			<const>condensed</const>

+ 		</edit>

+ 	</match>

+ </fontconfig>

+ 

64-google-roboto-fontconfig.conf
file added
+49
@@ -0,0 +1,49 @@

+ <?xml version="1.0" encoding="UTF-8"?>

+ <!DOCTYPE fontconfig SYSTEM "../fonts.dtd">

+ <fontconfig>

+         <alias>

+           <family>sans-serif</family>

+             <prefer>

+               <family>Roboto</family>

+             </prefer>

+         </alias>

+         <alias>

+           <family>Roboto</family>

+             <default>

+               <family>sans-serif</family>

+             </default>

+         </alias>

+ 	<match target="scan">

+ 		<test name="style">

+ 			<string>Thin</string>

+ 		</test>

+ 		<edit name="weight">

+ 			<const>thin</const>

+ 		</edit>

+ 	</match>

+ 	<match target="scan">

+ 		<test name="style">

+ 			<string>Thin Italic</string>

+ 		</test>

+ 		<edit name="weight">

+ 			<const>thin</const>

+ 		</edit>

+ 	</match>

+ 	<match target="scan">

+ 		<test name="style">

+ 			<string>Black</string>

+ 		</test>

+ 		<edit name="weight">

+ 			<const>black</const>

+ 		</edit>

+ 	</match>

+ 	<match target="scan">

+ 		<test name="style">

+ 			<string>Black Italic</string>

+ 		</test>

+ 		<edit name="weight">

+ 			<const>black</const>

+ 		</edit>

+ 	</match>

+ </fontconfig>

+ 

google-roboto-condensed.metainfo.xml
file added
+6
@@ -0,0 +1,6 @@

+ <?xml version="1.0" encoding="UTF-8"?>

+ <component type="font">

+   <id>google-roboto-condensed</id>

+   <metadata_license>CC0-1.0</metadata_license>

+   <extends>google-roboto</extends>

+ </component>

google-roboto-fonts.spec
file added
+114
@@ -0,0 +1,114 @@

+ %global pkgname roboto

+ %global srcname %{pkgname}-unhinted

+ %global fontname google-roboto

+ %global fontconf 64-%{fontname}

+ 

+ Name: google-roboto-fonts

+ Version: 2.136

+ Release: 3%{?dist}

+ Summary: Google Roboto fonts

+ 

+ # Only the metainfo.xml files are CC0

+ License: ASL 2.0 and CC0

+ URL: https://github.com/google/roboto

+ Source0: https://github.com/google/%{pkgname}/releases/download/v%{version}/%{srcname}.zip

+ Source1: %{fontconf}-condensed-fontconfig.conf

+ Source2: %{fontconf}-fontconfig.conf

+ Source3: %{fontname}-condensed.metainfo.xml

+ Source4: %{fontname}.metainfo.xml

+ BuildArch: noarch

+ 

+ BuildRequires: fontpackages-devel

+ 

+ Obsoletes: %{fontname}-common < 2.134-1

+ 

+ %description

+ Roboto is a sans-serif typeface family introduced with Android Ice Cream

+ Sandwich operating system. Google describes the font as "modern, yet

+ approachable" and "emotional".

+ 

+ %package -n %{fontname}-condensed-fonts

+ Summary: Google Roboto condensed fonts

+ Obsoletes: %{fontname}-common < 2.134-1

+ 

+ %description -n %{fontname}-condensed-fonts

+ Google Roboto condensed fonts.

+ 

+ %prep

+ %autosetup -n %{srcname}

+ 

+ %build

+ 

+ %install

+ # install fonts

+ install -m 0755 -d %{buildroot}%{_fontdir}

+ install -m 0644 -p Roboto*.ttf %{buildroot}%{_fontdir}

+ 

+ # install fontconfig files

+ install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \

+                    %{buildroot}%{_fontconfig_confdir}

+ install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf

+ install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-condensed.conf

+ for fconf in %{fontconf}.conf %{fontconf}-condensed.conf; do

+   ln -s %{_fontconfig_templatedir}/$fconf %{buildroot}%{_fontconfig_confdir}/$fconf

+ done

+ 

+ # install appdata

+ install -m 0755 -d %{buildroot}%{_datadir}/appdata

+ install -m 0644 -p %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/appdata

+ 

+ %_font_pkg -f %{fontconf}.conf Roboto-*.ttf

+ %{_datadir}/appdata/%{fontname}.metainfo.xml

+ %license LICENSE

+ 

+ %_font_pkg -n condensed -f %{fontconf}-condensed.conf RobotoCondensed-*.ttf

+ %{_datadir}/appdata/%{fontname}-condensed.metainfo.xml

+ %license LICENSE

+ 

+ %changelog

+ * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.136-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

+ 

+ * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.136-2

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

+ 

+ * Mon Jan 30 2017 David Tardon <dtardon@redhat.com> - 2.136-1

+ - new upstream release

+ 

+ * Tue Nov 08 2016 David Tardon <dtardon@redhat.com> - 2.135-1

+ - new upstream release

+ 

+ * Mon Sep 26 2016 David Tardon <dtardon@redhat.com> - 2.134-1

+ - update to latest release

+ 

+ * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-10

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

+ 

+ * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-9

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

+ 

+ * Tue Dec 23 2014 David Tardon <dtardon@redhat.com> - 1.2-8

+ - revert the previous "update"

+ - Resolves: rhbz#1174935 fix font metadata

+ 

+ * Tue Dec 23 2014 David Tardon <dtardon@redhat.com> - 1.2-7

+ - drop obsolete requires

+ 

+ * Wed Dec 17 2014 David Tardon <dtardon@redhat.com> - 1.2-6

+ - Resolves: rhbz#1174935 update to what is presumably the latest release

+   of the font

+ 

+ * Mon Nov 24 2014 David Tardon <dtardon@redhat.com> - 1.2-5

+ - use just Roboto as the font's name in metainfo

+ 

+ * Thu Nov 20 2014 David Tardon <dtardon@redhat.com> - 1.2-4

+ - add AppData files

+ 

+ * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3

+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

+ 

+ * Mon Apr 07 2014 David Tardon <dtardon@redhat.com> - 1.2-2

+ - integrate package review suggestions

+ 

+ * Thu Apr 03 2014 David Tardon <dtardon@redhat.com> - 1.2-1

+ - initial import

google-roboto.metainfo.xml
file added
+15
@@ -0,0 +1,15 @@

+ <?xml version="1.0" encoding="UTF-8"?>

+ <component type="font">

+   <id>google-roboto</id>

+   <metadata_license>CC0-1.0</metadata_license>

+   <name>Roboto</name>

+   <summary>Roboto font family</summary>

+   <description>

+     <p>Roboto is a sans-serif typeface family introduced with Android Ice Cream

+         Sandwich operating system. Google describes the font as "modern, yet

+         approachable" and "emotional".

+     </p>

+   </description>

+   <update_contact>dtardon@redhat.com</update_contact>

+   <url type="homepage">https://www.google.com/fonts/specimen/Roboto</url>

+ </component>

sources
file modified
+1
@@ -0,0 +1,1 @@

+ SHA512 (roboto-unhinted.zip) = 84b64b4a8f61fd8d75165efbf41ca72ed31cd8203d10c439b5ae5a20ca656df98ec2f3bd34e6aa8a6c407a9e411fb5ec9e2cedf83383931825d5771562a1e600