Install metainfo files under %{_metainfodir}.

This commit is contained in:
Akira TAGOH 2019-06-04 12:04:41 +00:00
parent 17842fc6d8
commit 74008c1e4e

View File

@ -16,7 +16,7 @@ in Unicode.\
Name: %{fontname}-fonts
Version: 20181223
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Hinted and Non Hinted OpenType fonts for Unicode scripts
License: OFL
URL: https://github.com/googlei18n/noto-fonts/
@ -153,7 +153,7 @@ Noto %1 font%{?2: for %(echo %* | sed -e "s/%1 //")}.\
%{_fontvfdir}/Noto%{-a*}%{!-a:%{fname}}-*VF.*tf \
%{_fontconfig_templatedir}/%{fconf} \
%config(noreplace) %{_fontconfig_confdir}/%{fconf}} \
%{_datadir}/appdata/%{subpkg}.metainfo.xml
%{_metainfodir}/%{subpkg}.metainfo.xml
%notopkg Kufi Arabic
%notopkg Music
@ -403,7 +403,7 @@ install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
# Add appstream metadata
install -Dm 0644 -p %{SOURCE200} \
%{buildroot}%{_datadir}/appdata/%{_fontname}.metainfo.xml
%{buildroot}%{_metainfodir}/%{_fontname}.metainfo.xml
%define fcconfbuild(a:g:p:v)\
%define _pname %(echo %{*} | tr "A-Z " "a-z-")\
@ -651,17 +651,20 @@ for f in \
echo '</component>' >> $meta
install -Dm 0644 -p %{_fontname}-$f.metainfo.xml \
%{buildroot}%{_datadir}/appdata/%{_fontname}-$f.metainfo.xml
%{buildroot}%{_metainfodir}/%{_fontname}-$f.metainfo.xml
done
%files common
%license LICENSE
%doc README.md FAQ.md
%{_datadir}/appdata/%{_fontname}.metainfo.xml
%{_metainfodir}/%{_fontname}.metainfo.xml
%changelog
* Tue Jun 4 2019 Akira TAGOH <tagoh@redhat.com> - 20181223-3
- Install metainfo files under %%{_metainfodir}.
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20181223-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild