- introduced new rpm macro: %install_fontsconf

for given file (path/to/01-font.conf), it
    1. creates %{_fontsconfavaildir}
    2. copies path/to/01-font.conf to %{_fontsconfavaildir}
  uses %link_avail_to_system_fontsconf to
    3. create %{_fontsconfddir}
    4. link %{_fontsavaildir}/01-fonts.conf %{_fontsconfddir}

OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/fontpackages?expand=0&rev=12
This commit is contained in:
Petr Gajdos 2012-10-02 15:35:01 +00:00 committed by Git OBS Bridge
parent 9b3d6e78ac
commit c1fc1d6efd
2 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Oct 2 15:34:14 UTC 2012 - pgajdos@suse.com
- introduced new rpm macro: %install_fontsconf
for given file (path/to/01-font.conf), it
1. creates %{_fontsconfavaildir}
2. copies path/to/01-font.conf to %{_fontsconfavaildir}
uses %link_avail_to_system_fontsconf to
3. create %{_fontsconfddir}
4. link %{_fontsavaildir}/01-fonts.conf %{_fontsconfddir}
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 2 11:33:46 UTC 2012 - pgajdos@suse.com Tue Oct 2 11:33:46 UTC 2012 - pgajdos@suse.com

View File

@ -20,6 +20,25 @@
ln -s "../../..%{_fontsconfavaildir}/%1" "%{buildroot}%{_fontsconfddir}" \ ln -s "../../..%{_fontsconfavaildir}/%1" "%{buildroot}%{_fontsconfddir}" \
%nil %nil
# macro: install_fontsconf
# for given file (path/to/01-font.conf), it
# 1. creates %{_fontsconfavaildir}
# 2. copies path/to/01-font.conf to %{_fontsconfavaildir}
# uses %link_avail_to_system_fontsconf to
# 3. create %{_fontsconfddir}
# 4. link %{_fontsavaildir}/01-fonts.conf %{_fontsconfddir}
%install_fontsconf() \
if test "x%1" == "x%%1"; then \
echo "Missing argument in call to %%install_fontsconf: path and name of configuration file." \
false \
fi \
mkdir -p "%{buildroot}%{_fontsconfavaildir}" \
install -m 644 -p "%1" "%{buildroot}%{_fontsconfavaildir}" \
conffile=`basename %1` \
%link_avail_to_system_fontsconf $conffile \
%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 \