only define %fname when not overriding the font name
prevents rpmbuild warnings: "warning: Macro %fname defined but not used within scope"
This commit is contained in:
parent
362d8304b8
commit
3763861fb1
@ -156,7 +156,7 @@ Common files for Google Noto fonts.
|
||||
# -o adds an obsoletes for an older package name
|
||||
%define notopkg(ca:o:)\
|
||||
%define pname %(echo %{*} | tr "A-Z " "a-z-")\
|
||||
%define fname %(echo %{*} | sed -e "s/ //g")\
|
||||
%{!-a:%define fname %(echo %{*} | sed -e "s/ //g")}\
|
||||
%define subpkg %{fontname}-%{pname}\
|
||||
%package -n %{subpkg}-fonts\
|
||||
Summary: %{*} font\
|
||||
@ -180,10 +180,10 @@ fi\
|
||||
\
|
||||
%files -n %{subpkg}-fonts \
|
||||
%dir %{_fontdir} \
|
||||
%{_fontdir}/Noto%{-a*}%{!-a:%fname}-*.*t%{-c:c}%{!-c:f}\
|
||||
%{_fontdir}/Noto%{-a*}%{!-a:%{fname}}-*.*t%{-c:c}%{!-c:f}\
|
||||
%{_fontconfig_templatedir}/%{fontconf}-%{pname}.conf\
|
||||
%config(noreplace) %{_fontconfig_confdir}/%{fontconf}-%{pname}.conf\
|
||||
#%%_font_pkg -n %{pname} -f %{fontconf}-%{pname}.conf Noto%{-a*}%{!-a:%fname}*.*t%{-c:c}%{!-c:f}\
|
||||
#%%_font_pkg -n %{pname} -f %{fontconf}-%{pname}.conf Noto%{-a*}%{!-a:%{fname}}*.*t%{-c:c}%{!-c:f}\
|
||||
%{_datadir}/appdata/%{subpkg}.metainfo.xml
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user