[senamirmir-washra-fonts] Add metainfo file to show this font in gnome-software

Parag Nemade pnemade at fedoraproject.org
Fri Nov 7 01:20:30 UTC 2014


commit d6bc3fef3e13e0467d9db3924c516dbed36717cf
Author: Parag Nemade <pnemade at redhat.com>
Date:   Fri Nov 7 06:50:18 2014 +0530

    Add metainfo file to show this font in gnome-software
    
    - Remove %clean section which is optional now
    - Remove buildroot which is optional now
    - Remove removal of buildroot in %install
    - Remove %defattr
    - Remove group tag

 senamirmir-washra-fonts.spec |   80 +++++++++++++++++++++++++++++++-----------
 1 files changed, 59 insertions(+), 21 deletions(-)
---
diff --git a/senamirmir-washra-fonts.spec b/senamirmir-washra-fonts.spec
index 99bcf36..ee7581d 100644
--- a/senamirmir-washra-fonts.spec
+++ b/senamirmir-washra-fonts.spec
@@ -11,10 +11,9 @@ Eritrean languages (Amharic, Blin, Geʼez, Harari, Meʼen, Tigre, Tigrinya…).
 
 Name:    %{fontname}-fonts
 Version: 4.1
-Release: 11%{?dist}
+Release: 12%{?dist}
 Summary: Fonts for the Geʼez (Ethiopic) script
 
-Group:   User Interface/X
 License: OFL
 URL:     http://www.senamirmir.org/projects/typography/typeface.html
 Source0: http://www.senamirmir.org/downloads/%{archivename}.zip
@@ -26,8 +25,18 @@ Source1: %{name}-fontconfig.conf
 # font families classified
 Source2: %{name}-yigezu-bisrat-goffer-fontconfig.conf
 Source3: %{name}-yigezu-bisrat-gothic-fontconfig.conf
-
-
+Source4: %{fontname}-bold.metainfo.xml
+Source5: %{fontname}-fantuwua.metainfo.xml
+Source6: %{fontname}-hiwua.metainfo.xml
+Source7: %{fontname}-jiret.metainfo.xml
+Source8: %{fontname}.metainfo.xml
+Source9: %{fontname}-semibold.metainfo.xml
+Source10: %{fontname}-tint.metainfo.xml
+Source11: %{fontname}-wookianos.metainfo.xml
+Source12: %{fontname}-yebse.metainfo.xml
+Source13: %{fontname}-yigezu-bisrat-goffer.metainfo.xml
+Source14: %{fontname}-yigezu-bisrat-gothic.metainfo.xml
+Source15: %{fontname}-zelan.metainfo.xml
 
 BuildArch:     noarch
 BuildRequires: fontpackages-devel
@@ -36,6 +45,8 @@ BuildRequires: fontpackages-devel
 %common_desc
 
 %_font_pkg -f %{fontconf}.conf washrab.ttf washrasb.ttf
+%{_datadir}/appdata/%{fontname}-semibold.metainfo.xml
+%{_datadir}/appdata/%{fontname}-bold.metainfo.xml
 
 %package common
 Summary:  Common files of %{name}
@@ -56,7 +67,7 @@ Requires: %{name}-common = %{version}-%{release}
 This package consists of the “Ethiopic Fantuwua” font.
 
 %_font_pkg -n fantuwua fantuwua.ttf
-
+%{_datadir}/appdata/%{fontname}-fantuwua.metainfo.xml
 
 %package -n %{fontname}-hiwua-fonts
 Summary:  A font for the Geʼez (Ethiopic) script
@@ -68,7 +79,7 @@ Requires: %{name}-common = %{version}-%{release}
 This package consists of the “Ethiopic Hiwua” font.
 
 %_font_pkg -n hiwua hiwua.ttf
-
+%{_datadir}/appdata/%{fontname}-hiwua.metainfo.xml
 
 %package -n %{fontname}-jiret-fonts
 Summary:  A font for the Geʼez (Ethiopic) script
@@ -80,7 +91,7 @@ Requires: %{name}-common = %{version}-%{release}
 This package consists of the “Ethiopia Jiret” font.
 
 %_font_pkg -n jiret jiret.ttf
-
+%{_datadir}/appdata/%{fontname}-jiret.metainfo.xml
 
 %package -n %{fontname}-tint-fonts
 Summary:  A font for the Geʼez (Ethiopic) script
@@ -92,7 +103,7 @@ Requires: %{name}-common = %{version}-%{release}
 This package consists of the “Ethiopic Tint” font.
 
 %_font_pkg -n tint tint.ttf
-
+%{_datadir}/appdata/%{fontname}-tint.metainfo.xml
 
 %package -n %{fontname}-wookianos-fonts
 Summary:  A font for the Geʼez (Ethiopic) script
@@ -104,7 +115,7 @@ Requires: %{name}-common = %{version}-%{release}
 This package consists of the “Ethiopic Wookianos” font.
 
 %_font_pkg -n wookianos wookianos.ttf
-
+%{_datadir}/appdata/%{fontname}-wookianos.metainfo.xml
 
 %package -n %{fontname}-yebse-fonts
 Summary:  A font for the Geʼez (Ethiopic) script
@@ -116,7 +127,7 @@ Requires: %{name}-common = %{version}-%{release}
 This package consists of the “Ethiopic Yebse” font.
 
 %_font_pkg -n yebse yebse.ttf
-
+%{_datadir}/appdata/%{fontname}-yebse.metainfo.xml
 
 %package -n %{fontname}-yigezu-bisrat-goffer-fonts
 Summary:  A decorative font for the Geʼez (Ethiopic) script
@@ -131,7 +142,7 @@ Goffer” decorative font. It is dedicated to Ato Yigezu Bisrat, whose 1963 book
 design that served as inspiration for this work.
 
 %_font_pkg -n yigezu-bisrat-goffer -f %{fontconf}-yigezu-bisrat-goffer.conf goffer.ttf
-
+%{_datadir}/appdata/%{fontname}-yigezu-bisrat-goffer.metainfo.xml
 
 %package -n %{fontname}-yigezu-bisrat-gothic-fonts
 Summary:  A decorative font for the Geʼez (Ethiopic) script
@@ -146,7 +157,7 @@ decorative font. It is dedicated to Ato Yigezu Bisrat, whose 1963 book
 this work.
 
 %_font_pkg -n yigezu-bisrat-gothic -f %{fontconf}-yigezu-bisrat-gothic.conf yigezubisratgothic.ttf
-
+%{_datadir}/appdata/%{fontname}-yigezu-bisrat-gothic.metainfo.xml
 
 %package -n %{fontname}-zelan-fonts
 Summary:  A font for the Geʼez (Ethiopic) script
@@ -158,7 +169,7 @@ Requires: %{name}-common = %{version}-%{release}
 This package consists of the “Ethiopic Zelan” font.
 
 %_font_pkg -n zelan zelan.ttf
-
+%{_datadir}/appdata/%{fontname}-zelan.metainfo.xml
 
 %prep
 %setup -c -q
@@ -171,11 +182,9 @@ done
 
 
 %build
-
+#nothing to build
 
 %install
-rm -fr %{buildroot}
-
 install -m 0755 -d %{buildroot}%{_fontdir}
 install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
 
@@ -198,16 +207,45 @@ for fconf in %{fontconf}.conf \
 done
 
 
-%clean
-rm -fr %{buildroot}
-
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE4} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-bold.metainfo.xml
+install -Dm 0644 -p %{SOURCE5} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-fantuwua.metainfo.xml
+install -Dm 0644 -p %{SOURCE6} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-hiwua.metainfo.xml
+install -Dm 0644 -p %{SOURCE7} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-jiret.metainfo.xml
+install -Dm 0644 -p %{SOURCE8} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE9} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-semibold.metainfo.xml
+install -Dm 0644 -p %{SOURCE10} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-tint.metainfo.xml
+install -Dm 0644 -p %{SOURCE11} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-wookianos.metainfo.xml
+install -Dm 0644 -p %{SOURCE12} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-yebse.metainfo.xml
+install -Dm 0644 -p %{SOURCE13} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-yigezu-bisrat-goffer.metainfo.xml
+install -Dm 0644 -p %{SOURCE14} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-yigezu-bisrat-gothic.metainfo.xml
+install -Dm 0644 -p %{SOURCE15} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-zelan.metainfo.xml
 
 %files common
-%defattr(0644,root,root,0755)
 %doc *.txt *.pdf *.doc
-
+%{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Thu Nov 06 2014 Parag Nemade <pnemade AT redhat DOT com> - 4.1-12
+- Add metainfo file to show this font in gnome-software
+- Remove %%clean section which is optional now
+- Remove buildroot which is optional now
+- Remove removal of buildroot in %%install
+- Remove %%defattr
+- Remove group tag
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.1-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the fonts-bugs mailing list