- introduced new rpm macro: %files_fontsconf_availdir
to be included in %files section of package which ships own fontconfig files; expands in /usr/share/%{name} /usr/share/%{name}/conf.avail - introduced new rpm macro: %files_fontsconf_file to be included in %files section of package which ships own fontconfig file; %files_fontsconf_file -l name.conf expands in /usr/share/%{name}/conf.avail/name.conf %config /etc/fonts/conf.d/name.conf when -l switch isn't supplied, only /usr/share/%{name}/conf.avail/name.conf is packaged OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/fontpackages?expand=0&rev=13
This commit is contained in:
parent
c1fc1d6efd
commit
6bc29260fa
@ -1,3 +1,25 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 8 12:39:33 UTC 2012 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- introduced new rpm macro: %files_fontsconf_availdir
|
||||||
|
to be included in %files section of package which ships own
|
||||||
|
fontconfig files; expands in
|
||||||
|
/usr/share/%{name}
|
||||||
|
/usr/share/%{name}/conf.avail
|
||||||
|
- introduced new rpm macro: %files_fontsconf_file
|
||||||
|
to be included in %files section of package which ships own
|
||||||
|
fontconfig file;
|
||||||
|
|
||||||
|
%files_fontsconf_file -l name.conf
|
||||||
|
|
||||||
|
expands in
|
||||||
|
/usr/share/%{name}/conf.avail/name.conf
|
||||||
|
%config /etc/fonts/conf.d/name.conf
|
||||||
|
|
||||||
|
when -l switch isn't supplied, only
|
||||||
|
/usr/share/%{name}/conf.avail/name.conf
|
||||||
|
is packaged
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 2 15:34:14 UTC 2012 - pgajdos@suse.com
|
Tue Oct 2 15:34:14 UTC 2012 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
%nil
|
%nil
|
||||||
|
|
||||||
# macro: install_fontsconf
|
# macro: install_fontsconf
|
||||||
# for given file (path/to/01-font.conf), it
|
# takes exactly one argument; for given file (path/to/01-font.conf), it
|
||||||
# 1. creates %{_fontsconfavaildir}
|
# 1. creates %{_fontsconfavaildir}
|
||||||
# 2. copies path/to/01-font.conf to %{_fontsconfavaildir}
|
# 2. copies path/to/01-font.conf to %{_fontsconfavaildir}
|
||||||
# uses %link_avail_to_system_fontsconf to
|
# uses %link_avail_to_system_fontsconf to
|
||||||
@ -39,6 +39,29 @@
|
|||||||
%link_avail_to_system_fontsconf $conffile \
|
%link_avail_to_system_fontsconf $conffile \
|
||||||
%nil
|
%nil
|
||||||
|
|
||||||
|
# macro: files_fontsconf_availdir
|
||||||
|
# packages /usr/share/%{name}/conf.avail directory,
|
||||||
|
# which is intended for fontconfig files shipped by the
|
||||||
|
# (font) package
|
||||||
|
|
||||||
|
%files_fontsconf_availdir() \
|
||||||
|
%dir %{_datadir}/%{name} \
|
||||||
|
%dir %{_fontsconfavaildir} \
|
||||||
|
%nil
|
||||||
|
|
||||||
|
# macro: files_fontsconf_file
|
||||||
|
# takes exactly one argument; for given fontconfig file
|
||||||
|
# (01-fontconfig.conf) macro expands in correct %%files entry
|
||||||
|
#
|
||||||
|
# -l option also packages %%{_fontsconfddir}/01-fontconfig.conf link
|
||||||
|
|
||||||
|
%files_fontsconf_file(l) \
|
||||||
|
%{_fontsconfavaildir}/%1 \
|
||||||
|
%{-l: \
|
||||||
|
%config %{_fontsconfddir}/%1 \
|
||||||
|
} \
|
||||||
|
%nil
|
||||||
|
|
||||||
# macro: reconfigure_fonts_prereq
|
# macro: reconfigure_fonts_prereq
|
||||||
# adds requires for fonts-config
|
# adds requires for fonts-config
|
||||||
%reconfigure_fonts_prereq \
|
%reconfigure_fonts_prereq \
|
||||||
|
Loading…
Reference in New Issue
Block a user