rpms/VLGothic-fonts/F-8 VLGothic-fonts.spec,1.8,1.9

Jens Petersen (petersen) fedora-extras-commits at redhat.com
Thu Jan 17 07:07:14 UTC 2008


Author: petersen

Update of /cvs/pkgs/rpms/VLGothic-fonts/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21658

Modified Files:
	VLGothic-fonts.spec 
Log Message:
- 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 at users.sourceforge.net> - 20071215-1
- Update to 20071215

* Thu Oct 18 2007 Ryo Dairiki <ryo-dairiki at users.sourceforge.net> - 20071015-2
- Rename the font directory.
- Fix font selection problem in Flash 9.

* Thu Oct 18 2007 Ryo Dairiki <ryo-dairiki at users.sourceforge.net> - 20071015-1
- Make it separated into subpackages




Index: VLGothic-fonts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/VLGothic-fonts/F-8/VLGothic-fonts.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- VLGothic-fonts.spec	18 Oct 2007 14:28:57 -0000	1.8
+++ VLGothic-fonts.spec	17 Jan 2008 07:06:13 -0000	1.9
@@ -1,57 +1,51 @@
-Name: VLGothic-fonts
-Version: 20071015
-Release: 1%{?dist}
-Summary: VLGothic the Japanese TrueType font
+%define fontname VLGothic
+%define fontdir %{_datadir}/fonts/%{fontname}
+%define fontconfdir %{_sysconfdir}/fonts/conf.d
+
+Name: %{fontname}-fonts
+Version: 20071215
+Release: 2%{?dist}
+Summary: Japanese TrueType font
 
 License: mplus and BSD
 Group: User Interface/X
 URL: http://dicey.org/vlgothic
-Source0: http://vinelinux.org/~daisuke/vlgothic/VLGothic-%{version}.tar.bz2
+Source0: http://vinelinux.org/~daisuke/vlgothic/%{fontname}-%{version}.tar.bz2
 Source1: 59-VLGothic-sans.conf
 Source2: 59-VLGothic-monospace.conf
-BuildRoot: %{_tmppath}/VLGothic-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch
-
-Requires: fontconfig
-Obsoletes: VLGothic < %{version}-%{release}
-Provides: VLGothic = %{version}-%{release}
-Requires: %{name}-docs = %{version}-%{release}
-Requires: %{name}-sans = %{version}-%{release}
-Requires: %{name}-monospace = %{version}-%{release}
+Obsoletes: %{name}-monospace < 20071215-2
 
 %description
-VLGothic is a Japanese TrueType font from Vine Linux project.
-The most grphys are taken from M+ font and sazanami mincho font, 
-but there are some fixes applied by the project.
-
-%package docs
-Summary: Documents for VLGothic-fonts
-Group: Documentation
+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.
 
-%description docs
-The VLGothic-fonts-docs package contains documentation for VLGothic font.
+The main package provides the monospace VLGothic font.
 
-%package sans
-Summary: Sans glyphs of VLGothic-fonts
-Group: User Interface/X
-Requires: %{name}-docs = %{version}-%{release}
+%description -l ja
+VLゴシックフォントファミリは、 M+ FONTS PROJECT による M+1C および M+1M フォントを
+英数字、かな、および一部の漢字に使用し、不足部分として Electronic Font Open Laboratory
+による さざなみゴシックフォント をベースに Project Vine が改変し漢字部に使用した
+ゴシック体の日本語 TrueType フォントです。
 
-%description sans
-The VLGothic-fonts-sans package contains sans glyphs of VLGothic fonts.
 
-%package monospace
-Summary: Monospace glyphs of VLGothic-fonts
+%package proportional
+Summary: Proportional Japanese TrueType font
 Group: User Interface/X
-Requires: %{name}-docs = %{version}-%{release}
+Obsoletes: %{name}-sans < 20071215-2
 
-%description monospace
-The VLGothic-fonts-monospace package contains monospace glyphs of VLGothic fonts.
+%description proportional
+This package provides the VLGothic font with proportional glyphs for some
+non-Japanese characters.
 
 %prep
-%setup -q -n VLGothic
+%setup -q -n %{fontname}
 
 
 %build
+%{nil}
 
 
 %install
@@ -61,8 +55,35 @@
 install -p -m644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_sysconfdir}/fonts/conf.d
 install -p -m644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_sysconfdir}/fonts/conf.d
 
-mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/fonts/japanese/TrueType
-mv *.ttf ${RPM_BUILD_ROOT}/%{_datadir}/fonts/japanese/TrueType
+mkdir -p ${RPM_BUILD_ROOT}/%{fontdir}
+mkdir -p ${RPM_BUILD_ROOT}/%{fontdir}-proportional
+install -p -m644 VL-Gothic-Regular.ttf ${RPM_BUILD_ROOT}/%{fontdir}
+install -p -m644 VL-PGothic-Regular.ttf ${RPM_BUILD_ROOT}/%{fontdir}-proportional
+
+
+%post
+if [ -x %{_bindir}/fc-cache ]; then
+  %{_bindir}/fc-cache -f %{fontdir} || :
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+  if [ -x %{_bindir}/fc-cache ]; then
+    %{_bindir}/fc-cache -f %{fontdir} || :
+  fi
+fi
+
+%post proportional
+if [ -x %{_bindir}/fc-cache ]; then
+  %{_bindir}/fc-cache -f %{fontdir}-proportional || :
+fi
+
+%postun proportional
+if [ "$1" = "0" ]; then
+  if [ -x %{_bindir}/fc-cache ]; then
+    %{_bindir}/fc-cache -f %{fontdir}-proportional || :
+  fi
+fi
 
 
 %clean
@@ -71,28 +92,41 @@
 
 %files
 %defattr(-,root,root,-)
+%doc README* LICENSE*
+%dir %{fontdir}
+%config(noreplace) %{_sysconfdir}/fonts/conf.d/59-VLGothic-monospace.conf
+%{fontdir}/VL-Gothic-Regular.ttf
 
-%files monospace
-%dir %{_datadir}/fonts/japanese/
-%dir %{_datadir}/fonts/japanese/TrueType
-%config %{_sysconfdir}/fonts/conf.d/59-VLGothic-monospace.conf
-%{_datadir}/fonts/japanese/TrueType/VL-Gothic-Regular.ttf
-
-%files sans
-%dir %{_datadir}/fonts/japanese/
-%dir %{_datadir}/fonts/japanese/TrueType
-%config %{_sysconfdir}/fonts/conf.d/59-VLGothic-sans.conf
-%{_datadir}/fonts/japanese/TrueType/VL-PGothic-Regular.ttf
-
-%files docs
-%defattr(-,root,root,-)
+%files proportional
 %doc README* LICENSE*
+%dir %{fontdir}-proportional
+%config(noreplace) %{_sysconfdir}/fonts/conf.d/59-VLGothic-sans.conf
+%{fontdir}-proportional/VL-PGothic-Regular.ttf
 
 
 %changelog
+* Thu Jan 17 2008 Jens Petersen <petersen at redhat.com> - 20071215-2
+- 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 at users.sourceforge.net> - 20071215-1
+- Update to 20071215
+
+* Thu Oct 18 2007 Ryo Dairiki <ryo-dairiki at 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 at users.sourceforge.net> - 20071015-1
 - Update to 20071015
-- Make it separated into subpackages 
+- Make it separated into subpackages
 
 * Sat Sep 09 2007 Ryo Dairiki <ryo-dairiki at users.sourceforge.net> - 20070901-1
 - Update to 20070901
@@ -111,7 +145,7 @@
 - Now config files are replaced by every updating.
 
 * Wed Nov 29 2006 Ryo Dairiki <ryo-dairiki at users.sourceforge.net> - 20061026-4
-- Fix the misstyped dist tag.
+- Fix the mistyped dist tag.
 
 * Sat Nov 18 2006 Ryo Dairiki <ryo-dairiki at users.sourceforge.net> - 20061026-3
 - Modify the specfile along with the Fedora Extras packaging policy.




More information about the fedora-extras-commits mailing list