%define priority 65-1 %define ppriority 65-0 %define fontname vlgothic %define archivename VLGothic-%{version} %define fontconf %{priority}-%{fontname}-gothic %define pfontconf %{ppriority}-%{fontname}-pgothic %define common_desc \ VLGothic provides Japanese TrueType fonts from the Vine Linux project.\ Most of the glyphs are taken from the M+ and Sazanami Gothic fonts,\ but some have also been improved by the project. Name: %{fontname}-fonts Version: 20110414 Release: 1%{?dist} Summary: Japanese TrueType font License: mplus and BSD Group: User Interface/X URL: http://dicey.org/vlgothic Source0: http://osdn.dl.sourceforge.jp/vlgothic/50227/%{archivename}.tar.bz2 Source1: %{fontname}-fontconfig-pgothic.conf Source2: %{fontname}-fontconfig-gothic.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: fontpackages-devel Requires: %{name}-common = %{version}-%{release} Obsoletes: VLGothic-fonts < 20090204-1 Provides: VLGothic-fonts = %{version}-%{release} %description %common_desc This package provides the monospace VLGothic font. %package common Summary: Common files for VLGothic Japanese TrueType fonts Group: User Interface/X Requires: fontpackages-filesystem %description common %common_desc This package consists of files used by other %{name} packages. %package -n %{fontname}-p-fonts Summary: Proportional Japanese TrueType font Group: User Interface/X Requires: %{name}-common = %{version}-%{release} Obsoletes: VLGothic-fonts-proportional < 20090204-1 Provides: VLGothic-fonts-proportional = %{version}-%{release} %description -n %{fontname}-p-fonts %common_desc This package provides the VLGothic font with proportional glyphs for some non-Japanese characters. %prep %setup -q -n VLGothic %build %{nil} %install rm -rf $RPM_BUILD_ROOT install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir} install -m 0644 -p *.ttf $RPM_BUILD_ROOT%{_fontdir} install -m 0755 -d $RPM_BUILD_ROOT%{_fontconfig_templatedir} \ $RPM_BUILD_ROOT%{_fontconfig_confdir} install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{pfontconf}.conf install -m 0644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf}.conf for fconf in %{pfontconf}.conf %{fontconf}.conf; do ln -s %{_fontconfig_templatedir}/$fconf $RPM_BUILD_ROOT%{_fontconfig_confdir}/$fconf done %clean rm -rf ${RPM_BUILD_ROOT} %files common %defattr(0644, root, root, 0755) %doc README* LICENSE* %dir %{_fontdir} %_font_pkg -f %{fontconf}.conf VL-Gothic-Regular.ttf %_font_pkg -n p -f %{pfontconf}.conf VL-PGothic-Regular.ttf %changelog * Thu Apr 14 2011 Akira TAGOH <tagoh@redhat.com> - 20110414-1 - New upstream release. * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20101218-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Dec 22 2010 Akira TAGOH <tagoh@redhat.com> - 20101218-1 - New upstream release. * Thu Aug 19 2010 Akira TAGOH <tagoh@redhat.com> - 20100818-1 - New upstream release. * Wed May 26 2010 Akira TAGOH <tagoh@redhat.com> - 20100416-3 - Improve the fontconfig config file to match ja as well. * Mon Apr 19 2010 Akira TAGOH <tagoh@redhat.com> - 20100416-2 - Get rid of compare="contains" again. * Mon Apr 19 2010 Akira TAGOH <tagoh@redhat.com> - 20100416-1 - New upstream release. - Get rid of binding="same" from the fontconfig config file. (#578048) * Fri Mar 12 2010 Akira TAGOH <tagoh@redhat.com> - 20100126-2 - Fix the locale-specific overrides rule to match with "ja" as well. (#572841) * Mon Mar 1 2010 Akira TAGOH <tagoh@redhat.com> - 20100126-1 - New upstream release. - Set the priority to 65-0 for vlgothic-p-fonts to avoid the effects of 65-nonlatin.conf and similarly 65-1 to vlgothic-fonts. (#476459) * Mon Dec 7 2009 Akira TAGOH <tagoh@redhat.com> - 20091202-1 - New upstream release. - Set the priority to 65 for vlgothic-p-fonts to override the rule in vlgothic-fonts for sans-serif. - Set the priority to 66 and contains both rules for sans-serif and monospace to avoid picking up the unrelated fonts in Live. where doesn't have vlgothic-p-fonts installed. (#544957) * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090612-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Jun 15 2009 Akira TAGOH <tagoh@redhat.com> - 20090612-1 - New upstream release. * Thu Apr 23 2009 Akira TAGOH <tagoh@redhat.com> - 20090422-1 - New upstream release. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090204-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 10 2009 Akira TAGOH <tagoh@redhat.com> - 20090204-2 - clean up. * Wed Feb 4 2009 Akira TAGOH <tagoh@redhat.com> - 20090204-1 - New upstream release. - Update spec file for new packaging policy. - Renamed VLGothic-fonts to vlgothic-fonts. - Renamed VLGothic-fonts-proportional to vlgothic-p-fonts. - Added vlgothic-fonts-common. * Fri Dec 5 2008 Akira TAGOH <tagoh@redhat.com> - 20081203-2 - update fontconfig config according to Fontconfig packaging tips. * Thu Dec 4 2008 Akira TAGOH <tagoh@redhat.com> - 20081203-1 - update to 20081203 release. - clean up spec file. - changed the priority prefix for fontconfig to 66 according to Fontconfig packaging tips. * Wed Oct 29 2008 Akira TAGOH <tagoh@redhat.com> - 20081029-1 - update to 20081029 release. * Tue Sep 9 2008 Akira TAGOH <tagoh@redhat.com> - 20080908-1 - update to 20080908 release. * Thu Jul 31 2008 Jens Petersen <petersen@redhat.com> - 20080624-1.fc10 - update to 20080624 release * Wed May 7 2008 Jens Petersen <petersen@redhat.com> - 20080429-1 - update to 20080429 release - rename 59-VLGothic-sans.conf to 59-VLGothic-proportional.conf * Thu Jan 17 2008 Jens Petersen <petersen@redhat.com> - 20071215-2.fc9 - move monospace font to main package and obsolete monospace subpackage - rename sans subpackage to proportional and obsolete sans subpackage - use a separate font dir for the proportional font subpackage - add fc-cache scriptlets and drop superfluous removal of old font config - drop the docs subpackage - use fontname, fontdir, and fontconfdir macros - improve summaries and descriptions - do not require fontconfig - drop VLGothic obsoletes and provides * Sat Jan 12 2008 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20071215-1 - Update to 20071215 * Thu Oct 18 2007 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20071015-2 - Rename the font directory. - Fix font selection problem in Flash 9. - Make it remove the old configuration files on updating. * Thu Oct 18 2007 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20071015-1 - Update to 20071015 - Make it separated into subpackages * Sat Sep 09 2007 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20070901-1 - Update to 20070901 * Sat Jun 02 2007 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20070507-1 - Update to 20070507 * Sun Apr 22 2007 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20070328-1 - Update to 20070328 * Wed Jan 03 2007 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20070101-1 - Update to 20070101 * Sun Dec 10 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20061026-5 - Decrease the priority of the VLGothic fonts lower than DejaVu fonts. - Now config files are replaced by every updating. * Wed Nov 29 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20061026-4 - Fix the mistyped dist tag. * Sat Nov 18 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20061026-3 - Modify the specfile along with the Fedora Extras packaging policy. * Sun Nov 12 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20061026-2 - Modify the specfile. * Sun Nov 12 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20061026-1 - Preparing for Fedora Extras. * Sat Oct 28 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20061021-2 - Update to 20061021. * Tue Sep 19 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20060913-2 - Update to 20060913. * Thu Aug 31 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> - 20060831-1 - Initial packaging.