rpms/tetex-font-kerkis/devel tetex-font-kerkis.spec,1.18,1.19

Sarantis Paskalis sarantis at fedoraproject.org
Mon Jan 12 11:46:08 UTC 2009


Author: sarantis

Update of /cvs/extras/rpms/tetex-font-kerkis/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14662

Modified Files:
	tetex-font-kerkis.spec 
Log Message:
- Restructure spec file according to
  https://fedoraproject.org/wiki/Fonts_SIG_Fedora_11_packaging_changes
  (bug #477462)
- Split package to cm-lgc-fonts (.pfb and .afm) and tetex-font-cm-lgc
  (TeX stuff)
- Include .afm files (forgotten in the previous versions)




Index: tetex-font-kerkis.spec
===================================================================
RCS file: /cvs/extras/rpms/tetex-font-kerkis/devel/tetex-font-kerkis.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- tetex-font-kerkis.spec	4 Jan 2008 12:45:06 -0000	1.18
+++ tetex-font-kerkis.spec	12 Jan 2009 11:45:38 -0000	1.19
@@ -1,12 +1,15 @@
-%define ctan_date  20051007
-%define texmf      %{_datadir}/texmf
-%define texfonts   %{texmf}/fonts
-%define texpkg     kerkis
-%define fontpath   %{texpkg}
+%define ctan_date    20051007
+%define texmf        %{_datadir}/texmf
+%define texfonts     %{texmf}/fonts
+%define texpkg       kerkis
+%define texfontpath  %{texpkg}
+# definitions for fontpackages
+%define fontname     kerkis
+%define fontpkg      \-n\ %{fontname}-fonts
 
 Name:           tetex-font-kerkis
 Version:        2.0
-Release:        15%{?dist}
+Release:        16%{?dist}
 Summary:        Kerkis type 1 fonts for LaTeX
 Group:          Applications/Publishing
 License:        LPPL
@@ -15,23 +18,31 @@
 # upstream source - unversioned zip file
 # ftp://tug.ctan.org/pub/tex-archive/fonts/greek/kerkis.zip
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:       tetex-latex
+Requires:       texlive-latex kerkis-fonts = %{version}-%{release}
 BuildArch:      noarch
 
 
 %description
-This package contains the Kerkis type 1 fonts for LaTeX.
+TeX support files for the Kerkis Type 1 font.
 
-These fonts are particularly useful for typesetting Greek. The
-Greek repertoire includes full support for polytonic Greek, Greek
-numerals, and double forms of several letters that occur in variant
-forms.
+%define fontpkg \-n\ kerkis-fonts
+%package %{fontpkg}
+Summary:  Kerkis Type1 fonts
+Group:    User Interface/X
+
+%description %{fontpkg}
+Kerkis type 1 fonts for LaTeX.  These fonts are particularly useful
+for typesetting Greek. The Greek repertoire includes full support for
+polytonic Greek, Greek numerals, and double forms of several letters 
+that occur in variant forms.
 
 The Latin part of the font comprise old style numbers, accented Latin
 characters and common ligatures (including frequently omitted
 ligatures such as "fj").
 
-Please see the file "License.txt" for details on the use of this font.
+
+%_font_pkg -n %{fontpkg} *.pfb *.afm
+
 
 
 %prep
@@ -45,50 +56,72 @@
 rm -rf %{buildroot}
 
 mkdir -p %{buildroot}%{texmf}/tex/latex/%{texpkg}
-mkdir -p %{buildroot}%{texfonts}/{tfm,type1,vf}/%{fontpath}
+mkdir -p %{buildroot}%{texfonts}/{afm,tfm,type1,vf}/%{texfontpath}
 mkdir -p %{buildroot}%{texfonts}/{map,enc}/dvips/%{texpkg}
 
 install -p -m 644 tex/{*.sty,*.fd} %{buildroot}%{texmf}/tex/latex/%{texpkg}/
-install -p -m 644 tfm/*.tfm %{buildroot}%{texfonts}/tfm/%{fontpath}/
-install -p -m 644 type1/*.pfb %{buildroot}%{texfonts}/type1/%{fontpath}/
-install -p -m 644 vf/*.vf %{buildroot}%{texfonts}/vf/%{fontpath}/
+install -p -m 644 tfm/*.tfm %{buildroot}%{texfonts}/tfm/%{texfontpath}/
+install -p -m 644 vf/*.vf %{buildroot}%{texfonts}/vf/%{texfontpath}/
 install -p -m 644 dvips/*.map %{buildroot}%{texfonts}/map/dvips/%{texpkg}/
 install -p -m 644 dvips/*.enc %{buildroot}%{texfonts}/enc/dvips/%{texpkg}/
 
+#install .pfb and .afm files in %{_fontdir} as per the fedora font guidelines
+install -m 0755 -d %{buildroot}%{_fontdir}
+install -m 0644 -p type1/* %{buildroot}%{_fontdir}
+install -m 0644 -p afm/* %{buildroot}%{_fontdir}
+
+pushd %{buildroot}%{_fontdir}
+for pfb_file in *.pfb ;  do
+    ln -s %{_fontdir}/$pfb_file %{buildroot}%{texfonts}/type1/%{texfontpath}/$pfb_file
+done
+for afm_file in *.afm ;  do
+    ln -s %{_fontdir}/$afm_file %{buildroot}%{texfonts}/afm/%{texfontpath}/$afm_file
+done
+popd
+
 
 %clean
 rm -rf %{buildroot}
 
 
 %post
-/usr/bin/texhash
-conffile="$(/usr/bin/texconfig-sys conf | /bin/grep updmap.cfg)"
+texhash
+conffile="$(texconfig-sys conf | grep updmap.cfg)"
 if [ "$1" = "1" ]; then
-  /usr/bin/updmap-sys --quiet --nohash --cnffile ${conffile} --enable Map %{texpkg}.map
+    updmap-sys --quiet --nohash --cnffile ${conffile} --enable Map %{texpkg}.map
 fi
 
 
 %postun
-conffile="$(/usr/bin/texconfig-sys conf | /bin/grep updmap.cfg)"
+conffile="$(texconfig-sys conf | grep updmap.cfg)"
 if [ "$1" = "0" ]; then
-  /usr/bin/updmap-sys --quiet --nohash --cnffile ${conffile} --disable %{texpkg}.map
+    updmap-sys --quiet --nohash --cnffile ${conffile} --disable %{texpkg}.map
 fi
-/usr/bin/texhash
+texhash
 
 
 %files
 %defattr(-,root,root,-)
 %doc License.txt README.html
 %{texmf}/tex/latex/%{texpkg}
-%{texfonts}/tfm/%{fontpath}
-%{texfonts}/type1/%{fontpath}
-%{texfonts}/vf/%{fontpath}
+%{texfonts}/afm/%{texfontpath}
+%{texfonts}/tfm/%{texfontpath}
+%{texfonts}/type1/%{texfontpath}
+%{texfonts}/vf/%{texfontpath}
 %{texfonts}/map/dvips/%{texpkg}
 %{texfonts}/enc/dvips/%{texpkg}
 
 
 
 %changelog
+* Mon Jan 12 2009 Sarantis Paskalis <paskalis at di.uoa.gr> - 2.0-16
+- Restructure spec file according to
+  https://fedoraproject.org/wiki/Fonts_SIG_Fedora_11_packaging_changes
+  (bug #477462)
+- Split package to cm-lgc-fonts (.pfb and .afm) and tetex-font-cm-lgc
+  (TeX stuff)
+- Include .afm files (forgotten in the previous versions)
+
 
 * Fri Jan  4 2008 Sarantis Paskalis <paskalis at di.uoa.gr> - 2.0-15
 - Drop requirement for -fonts.




More information about the Fedora-fonts-bugs-list mailing list