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 group tag
This commit is contained in:
parent
82da79a8c8
commit
4bd0b7991f
@ -11,15 +11,16 @@ creation through final publication, both in electronic and print formats.
|
||||
|
||||
Name: %{fontname}-fonts
|
||||
Version: 1.1.0
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: Scientific and engineering fonts
|
||||
|
||||
Group: User Interface/X
|
||||
License: OFL
|
||||
URL: http://www.stixfonts.org/
|
||||
Source0: http://downloads.sourceforge.net/stixfonts/%{archivename}.zip
|
||||
Source10: stix-fonts-fontconfig.conf
|
||||
Source11: stix-fonts-math-fontconfig.conf
|
||||
Source20: %{fontname}.metainfo.xml
|
||||
Source21: %{fontname}-math.metainfo.xml
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: fontpackages-devel
|
||||
@ -35,6 +36,7 @@ use in the usual four styles.
|
||||
|
||||
%_font_pkg -f %{fontconf}.conf STIX-*otf
|
||||
%doc License/*.pdf *.pdf
|
||||
%{_datadir}/appdata/%{fontname}.metainfo.xml
|
||||
|
||||
|
||||
%package -n %{fontname}-math-fonts
|
||||
@ -55,6 +57,7 @@ This package includes one symbol font completing the four faces in the main
|
||||
release.
|
||||
|
||||
%_font_pkg -n math -f %{fontconf}-math.conf STIXMath*otf
|
||||
%{_datadir}/appdata/%{fontname}-math.metainfo.xml
|
||||
|
||||
|
||||
%prep
|
||||
@ -65,8 +68,6 @@ release.
|
||||
|
||||
|
||||
%install
|
||||
rm -fr %{buildroot}
|
||||
|
||||
install -m 0755 -d %{buildroot}%{_fontdir}
|
||||
install -m 0644 -p Fonts/STIX-Word/*.otf %{buildroot}%{_fontdir}
|
||||
|
||||
@ -84,12 +85,21 @@ for fconf in %{fontconf}.conf \
|
||||
%{buildroot}%{_fontconfig_confdir}/$fconf
|
||||
done
|
||||
|
||||
|
||||
%clean
|
||||
rm -fr %{buildroot}
|
||||
# Add AppStream metadata
|
||||
install -Dm 0644 -p %{SOURCE20} \
|
||||
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
|
||||
install -Dm 0644 -p %{SOURCE21} \
|
||||
%{buildroot}%{_datadir}/appdata/%{fontname}-math.metainfo.xml
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Nov 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.1.0-7
|
||||
- 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 group tag
|
||||
|
||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user