- 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:
parent
9b3d6e78ac
commit
c1fc1d6efd
@ -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
|
||||
|
||||
|
@ -20,6 +20,25 @@
|
||||
ln -s "../../..%{_fontsconfavaildir}/%1" "%{buildroot}%{_fontsconfddir}" \
|
||||
%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
|
||||
# adds requires for fonts-config
|
||||
%reconfigure_fonts_prereq \
|
||||
|
Loading…
Reference in New Issue
Block a user