rpms/tetex-font-cm-lgc/devel tetex-font-cm-lgc.spec,1.14,1.15

Sarantis Paskalis sarantis at fedoraproject.org
Mon Jan 12 10:45:51 UTC 2009


Author: sarantis

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

Modified Files:
	tetex-font-cm-lgc.spec 
Log Message:
- Restructure spec file according to
  https://fedoraproject.org/wiki/Fonts_SIG_Fedora_11_packaging_changes
  (bug #477461)
- 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-cm-lgc.spec
===================================================================
RCS file: /cvs/extras/rpms/tetex-font-cm-lgc/devel/tetex-font-cm-lgc.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- tetex-font-cm-lgc.spec	8 Sep 2008 14:10:23 -0000	1.14
+++ tetex-font-cm-lgc.spec	12 Jan 2009 10:45:21 -0000	1.15
@@ -1,12 +1,15 @@
 %define ctan_date  20051007
-%define texmf      %{_datadir}/texmf
-%define texfonts   %{texmf}/fonts
-%define texpkg     cm-lgc
-%define fontpath   public/%{texpkg}
+%define texmf        %{_datadir}/texmf
+%define texfonts     %{texmf}/fonts
+%define texpkg       cm-lgc
+%define texfontpath  public/%{texpkg}
+# definitions for fontpackages
+%define fontname     cm-lgc
+%define fontpkg      \-n\ cm-lgc-fonts
 
 Name:           tetex-font-cm-lgc
 Version:        0.5
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        CM-LGC Type1 fonts for LaTeX
 Group:          Applications/Publishing
 # Font exception
@@ -16,17 +19,25 @@
 # upstream source - unversioned zip file
 # ftp://tug.ctan.org/pub/tex-archive/fonts/ps-type1/cm-lgc.zip
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:       tetex-latex grep
+Requires:       texlive-latex grep cm-lgc-fonts
+BuildRequires:  symlinks
 BuildArch:      noarch
 
 
 %description
-This package contains the CM-LGC fonts. These are PostScript Type 1
-fonts converted from the METAFONT sources of the Computer Modern font
-families. CM-LGC supports the T1, T2A, LGR, and TS1 encodings,
-i.e. Latin, Cyrillic, and Greek. There are also support files for
-Omega/Lambda.
+TeX support files for the CM-LGC font.
 
+%define fontpkg \-n\ cm-lgc-fonts
+%package %{fontpkg}
+Summary:  CM-LGC Type1 fonts
+Group:    User Interface/X
+
+%description %{fontpkg}
+The  PostScript Type 1 fonts converted from the METAFONT sources of 
+the Computer Modern font families. CM-LGC supports the T1, T2A, LGR, 
+and TS1 encodings, i.e. Latin, Cyrillic, and Greek.
+
+%_font_pkg -n %{fontpkg} *.pfb *.afm
 
 %prep
 %setup -q -n %{texpkg}
@@ -39,53 +50,76 @@
 rm -rf %{buildroot}
 
 mkdir -p %{buildroot}%{texmf}/tex/latex/%{texpkg}
-mkdir -p %{buildroot}%{texfonts}/{ofm,ovf,type1,tfm,vf}/%{fontpath}
+mkdir -p %{buildroot}%{texfonts}/{afm,ofm,ovf,type1,tfm,vf}/%{texfontpath}
 mkdir -p %{buildroot}%{texfonts}/{enc,map}/dvips/%{texpkg}
 
-install -p -m 644 tex/latex/%{texpkg}/* %{buildroot}%{texmf}/tex/latex/%{texpkg}/
-install -p -m 644 fonts/ofm/%{fontpath}/* %{buildroot}%{texfonts}/ofm/%{fontpath}/
-install -p -m 644 fonts/ovf/%{fontpath}/* %{buildroot}%{texfonts}/ovf/%{fontpath}/
-install -p -m 644 fonts/type1/%{fontpath}/* %{buildroot}%{texfonts}/type1/%{fontpath}/
-install -p -m 644 fonts/tfm/%{fontpath}/* %{buildroot}%{texfonts}/tfm/%{fontpath}/
-install -p -m 644 fonts/vf/%{fontpath}/* %{buildroot}%{texfonts}/vf/%{fontpath}/
-install -p -m 644 dvips/base/* %{buildroot}%{texfonts}/enc/dvips/%{texpkg}/
-install -p -m 644 dvips/config/* %{buildroot}%{texfonts}/map/dvips/%{texpkg}/
-
+install -m 644 -p tex/latex/%{texpkg}/* %{buildroot}%{texmf}/tex/latex/%{texpkg}/
+install -m 644 -p fonts/ofm/%{texfontpath}/* %{buildroot}%{texfonts}/ofm/%{texfontpath}/
+install -m 644 -p fonts/ovf/%{texfontpath}/* %{buildroot}%{texfonts}/ovf/%{texfontpath}/
+install -m 644 -p fonts/tfm/%{texfontpath}/* %{buildroot}%{texfonts}/tfm/%{texfontpath}/
+install -m 644 -p fonts/vf/%{texfontpath}/* %{buildroot}%{texfonts}/vf/%{texfontpath}/
+install -m 644 -p dvips/base/* %{buildroot}%{texfonts}/enc/dvips/%{texpkg}/
+install -m 644 -p dvips/config/* %{buildroot}%{texfonts}/map/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 fonts/type1/%{texfontpath}/* %{buildroot}%{_fontdir}
+install -m 0644 -p fonts/afm/%{texfontpath}/* %{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)"
-if [ "$1" = "1" ]; then
-  /usr/bin/updmap-sys --quiet --nohash --cnffile ${conffile} --enable Map %{texpkg}.map
+%post 
+texhash
+conffile="$(texconfig-sys conf | grep updmap.cfg)"
+if [ "$1" -eq "1" ]; then
+    updmap-sys --quiet --nohash --cnffile ${conffile} --enable Map %{texpkg}.map
 fi
 
 
+
 %postun
-conffile="$(/usr/bin/texconfig-sys conf | /bin/grep updmap.cfg)"
-if [ "$1" = "0" ]; then
-  /usr/bin/updmap-sys --quiet --nohash --cnffile ${conffile} --disable %{texpkg}.map
+conffile="$(texconfig-sys conf | grep updmap.cfg)"
+if [ "$1" -eq "0" ]; then
+  updmap-sys --quiet --nohash --cnffile ${conffile} --disable %{texpkg}.map
 fi
-/usr/bin/texhash
+texhash
 
 
 %files
 %defattr(-,root,root,-)
 %doc COPYING HISTORY README
 %{texmf}/tex/latex/%{texpkg}
-%{texfonts}/ofm/%{fontpath}
-%{texfonts}/ovf/%{fontpath}
-%{texfonts}/tfm/%{fontpath}
-%{texfonts}/type1/%{fontpath}
-%{texfonts}/vf/%{fontpath}
+%{texfonts}/afm/%{texfontpath}
+%{texfonts}/ofm/%{texfontpath}
+%{texfonts}/ovf/%{texfontpath}
+%{texfonts}/tfm/%{texfontpath}
+%{texfonts}/type1/%{texfontpath}
+%{texfonts}/vf/%{texfontpath}
 %{texfonts}/enc/dvips/%{texpkg}
 %{texfonts}/map/dvips/%{texpkg}
 
 
+
 %changelog
+* Mon Jan 12 2009 Sarantis Paskalis <paskalis at di.uoa.gr> - 0.5-11
+- Restructure spec file according to
+  https://fedoraproject.org/wiki/Fonts_SIG_Fedora_11_packaging_changes
+  (bug #477461)
+- Split package to cm-lgc-fonts (.pfb and .afm) and tetex-font-cm-lgc 
+  (TeX stuff)
+- Include .afm files (forgotten in the previous versions)
+
 * Mon Sep  8 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 0.5-10
 - fix license tag
 




More information about the fonts-bugs mailing list