Add a MetaInfo file for the software center
This commit is contained in:
parent
7407736999
commit
06573ebbc2
2 changed files with 18 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
Name: %{fontname}-fonts
|
||||
Version: 1.017
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: A set of mono-spaced OpenType fonts designed for coding environments
|
||||
|
||||
Group: User Interface/X
|
||||
|
|
@ -11,6 +11,7 @@ License: OFL
|
|||
URL: http://sourceforge.net/projects/sourcecodepro.adobe
|
||||
Source0: http://downloads.sourceforge.net/project/sourcecodepro.adobe/SourceCodePro_FontsOnly-%{version}.zip
|
||||
Source1: %{name}-fontconfig.conf
|
||||
Source2: %{fontname}.metainfo.xml
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: fontpackages-devel
|
||||
|
|
@ -42,14 +43,22 @@ install -m 0644 -p %{SOURCE1} \
|
|||
ln -s %{_fontconfig_templatedir}/%{fontconf} \
|
||||
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
||||
|
||||
# Add AppStream metadata
|
||||
install -Dm 0644 -p %{SOURCE2} \
|
||||
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
|
||||
|
||||
%clean
|
||||
|
||||
%_font_pkg -f %{fontconf} *.otf
|
||||
%{_datadir}/appdata/%{fontname}.metainfo.xml
|
||||
|
||||
%doc SourceCodeProReadMe.html LICENSE.txt
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Oct 15 2014 Richard Hughes <richard@hughsie.com> - 1.017-5
|
||||
- Add a MetaInfo file for the software center; this is a font we want to show.
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.017-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
8
adobe-source-code-pro.metainfo.xml
Normal file
8
adobe-source-code-pro.metainfo.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
||||
<component type="font">
|
||||
<id>adobe-source-code-pro</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<name>Source Code</name>
|
||||
<summary>A set of mono-spaced fonts designed for coding environments</summary>
|
||||
</component>
|
||||
Loading…
Add table
Add a link
Reference in a new issue