e3e0a8f
%global foundryname  ctan
e3e0a8f
%global fontpkg      kerkis
e3e0a8f
%global fontname     %{foundryname}-%{fontpkg}
e3e0a8f
%global fontconf     64-%{fontname}
e3e0a8f
%global ctan_date    20090115
e3e0a8f
%global texfonts     %{_texmf_main}/fonts
e3e0a8f
%global texfontpath  %{fontpkg}
23f7538
23f7538
# Common description
e3e0a8f
%global common_desc Kerkis type 1 fonts for LaTeX.  These fonts are particularly useful \
23f7538
for typesetting Greek. The Greek repertoire includes full support for \
23f7538
polytonic Greek, Greek numerals, and double forms of several letters \
23f7538
that occur in variant forms.
23f7538
23f7538
23f7538
Name:           ctan-kerkis-fonts
23f7538
Version:        2.0
25f2486
Release:        25%{?dist}
23f7538
Summary:        Kerkis Type 1 fonts
23f7538
Group:          Applications/Publishing
23f7538
License:        LPPL
23f7538
URL:            http://www.ctan.org/tex-archive/help/Catalogue/entries/kerkis.html
23f7538
Source0:        kerkis-%{ctan_date}.zip
23f7538
# upstream source - unversioned zip file
23f7538
# ftp://tug.ctan.org/pub/tex-archive/fonts/greek/kerkis.zip
23f7538
Source1:        %{fontname}-fontconfig.tar.gz
23f7538
# Tarball of fontconfig files for each font
23f7538
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
23f7538
BuildArch:      noarch
23f7538
BuildRequires:  fontpackages-devel texlive-texmf
23f7538
%description
23f7538
%{common_desc}
23f7538
23f7538
23f7538
%package common
23f7538
Summary:  Kerkis Type 1 fonts, common files (documentation…)
23f7538
Group:    User Interface/X
23f7538
Requires: fontpackages-filesystem
23f7538
%description common
23f7538
%common_desc
e3e0a8f
This package consists of files used by other %{fontname} packages.
23f7538
23f7538
e3e0a8f
%global seriffonts %{fontname}-serif-fonts
23f7538
%package -n %{seriffonts}
23f7538
Summary:  Kerkis serif Type1 fonts
23f7538
Group:    User Interface/X
64b5352
Requires:  %{name}-common = %{version}-%{release}
23f7538
%description -n %{seriffonts}
23f7538
%{common_desc}
23f7538
This package contains the Kerkis font family. It is based on the URW Bookman
23f7538
font and extends it with Greek characters and math support.
23f7538
23f7538
%_font_pkg -n serif -f %{fontconf}-serif.conf Kerkis.* Kerkis-*Bold.* Kerkis-*Italic.* Kerkis-*SmallCaps*
23f7538
23f7538
e3e0a8f
%global sansfonts %{fontname}-sans-fonts
23f7538
%package -n %{sansfonts}
23f7538
Summary:  KerkisSans Type1 fonts
23f7538
Group:    User Interface/X
64b5352
Requires:  %{name}-common = %{version}-%{release}
23f7538
%description -n %{sansfonts}
23f7538
%{common_desc}
23f7538
This package contains the KerkisSans font family, based on a free version
23f7538
of the AvantGardURW Bookman font.
23f7538
23f7538
%_font_pkg -n sans -f %{fontconf}-sans.conf KerkisSans* 
23f7538
23f7538
e3e0a8f
%global calligraphicfonts %{fontname}-calligraphic-fonts
23f7538
%package -n %{calligraphicfonts}
23f7538
Summary:  Kerkis Calligraphic Type1 fonts
23f7538
Group:    User Interface/X
64b5352
Requires:  %{name}-common = %{version}-%{release}
23f7538
%description -n %{calligraphicfonts}
23f7538
%{common_desc}
23f7538
This package contains the Kerkis-Calligraphic font family, a calligraphic font 
23f7538
family of Kerkis, based on URW Bookman.
23f7538
23f7538
%_font_pkg -n calligraphic -f %{fontconf}-calligraphic.conf Kerkis-Calligraphic* ktsy.*
23f7538
23f7538
e3e0a8f
%global texfontpkg tex-kerkis
23f7538
%package -n %{texfontpkg}
23f7538
Summary:  Kerkis Type1 fonts, TeX support files
23f7538
Group:    User Interface/X
23f7538
Requires: %{seriffonts} = %{version}-%{release}, %{sansfonts} = %{version}-%{release}
23f7538
Requires: tex(latex)
23f7538
Provides: tetex-font-kerkis = %{version}-%{release}
23f7538
Obsoletes: tetex-font-kerkis < 2.0-17
23f7538
23f7538
%description -n %{texfontpkg}
23f7538
%{common_desc}
23f7538
TeX support files.
23f7538
23f7538
23f7538
%prep
23f7538
%setup -q -a1 -n %{fontpkg}
23f7538
23f7538
23f7538
%build
23f7538
23f7538
23f7538
%install
23f7538
rm -rf %{buildroot}
23f7538
23f7538
mkdir -p %{buildroot}%{_texmf_main}/tex/latex/%{fontpkg}
23f7538
mkdir -p %{buildroot}%{texfonts}/{afm,tfm,type1,vf}/%{texfontpath}
23f7538
mkdir -p %{buildroot}%{texfonts}/{map,enc}/dvips/%{fontpkg}
23f7538
23f7538
install -p -m 644 tex/{*.sty,*.fd} %{buildroot}%{_texmf_main}/tex/latex/%{fontpkg}/
23f7538
install -p -m 644 tfm/*.tfm %{buildroot}%{texfonts}/tfm/%{texfontpath}/
23f7538
install -p -m 644 vf/*.vf %{buildroot}%{texfonts}/vf/%{texfontpath}/
23f7538
install -p -m 644 dvips/*.map %{buildroot}%{texfonts}/map/dvips/%{fontpkg}/
23f7538
install -p -m 644 dvips/*.enc %{buildroot}%{texfonts}/enc/dvips/%{fontpkg}/
23f7538
23f7538
#install .pfb and .afm files in %{_fontdir} as per the fedora font guidelines
23f7538
install -m 0755 -d %{buildroot}%{_fontdir}
23f7538
install -m 0644 -p type1/* %{buildroot}%{_fontdir}
23f7538
install -m 0644 -p afm/* %{buildroot}%{_fontdir}
23f7538
23f7538
pushd %{buildroot}%{_fontdir}
23f7538
for pfb_file in *.pfb ;  do
23f7538
    ln -s %{_fontdir}/$pfb_file %{buildroot}%{texfonts}/type1/%{texfontpath}/$pfb_file
23f7538
done
23f7538
for afm_file in *.afm ;  do
23f7538
    ln -s %{_fontdir}/$afm_file %{buildroot}%{texfonts}/afm/%{texfontpath}/$afm_file
23f7538
done
23f7538
popd
23f7538
23f7538
23f7538
# fontconfig stuff (see spectemplate-fonts-multi.spec)
23f7538
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
23f7538
                   %{buildroot}%{_fontconfig_confdir}
23f7538
23f7538
install -m 0644 -p fontconfig/%{fontname}-serif.conf \
23f7538
         %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-serif.conf
23f7538
install -m 0644 -p fontconfig/%{fontname}-sans.conf \
23f7538
         %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sans.conf
23f7538
install -m 0644 -p fontconfig/%{fontname}-calligraphic.conf \
23f7538
         %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-calligraphic.conf
23f7538
23f7538
23f7538
for fconf in %{fontconf}-serif.conf \
23f7538
             %{fontconf}-sans.conf \
23f7538
             %{fontconf}-calligraphic.conf ; do
23f7538
  ln -s %{_fontconfig_templatedir}/$fconf \
23f7538
        %{buildroot}%{_fontconfig_confdir}/$fconf
23f7538
done
23f7538
23f7538
23f7538
23f7538
%clean
23f7538
rm -rf %{buildroot}
23f7538
23f7538
23f7538
%post -n %{texfontpkg}
23f7538
texhash
23f7538
conffile="$(texconfig-sys conf | grep updmap.cfg)"
23f7538
if [ "$1" = "1" ]; then
23f7538
    updmap-sys --quiet --nohash --cnffile ${conffile} --enable Map %{fontpkg}.map
23f7538
fi
23f7538
23f7538
23f7538
%postun -n %{texfontpkg}
23f7538
conffile="$(texconfig-sys conf | grep updmap.cfg)"
23f7538
if [ "$1" = "0" ]; then
23f7538
    updmap-sys --quiet --nohash --cnffile ${conffile} --disable %{fontpkg}.map
23f7538
fi
23f7538
texhash
23f7538
23f7538
%files common
23f7538
%defattr(0644,root,root,0755)
23f7538
%doc License.txt README.html
8668817
%dir %{_fontdir}
23f7538
23f7538
23f7538
%files -n %{texfontpkg}
23f7538
%defattr(-,root,root,-)
23f7538
%{_texmf_main}/tex/latex/%{fontpkg}
23f7538
%{texfonts}/afm/%{texfontpath}
23f7538
%{texfonts}/tfm/%{texfontpath}
23f7538
%{texfonts}/type1/%{texfontpath}
23f7538
%{texfonts}/vf/%{texfontpath}
23f7538
%{texfonts}/map/dvips/%{fontpkg}
23f7538
%{texfonts}/enc/dvips/%{fontpkg}
23f7538
23f7538
23f7538
23f7538
%changelog
25f2486
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-25
25f2486
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
25f2486
0208d6f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-24
0208d6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0208d6f
e3e0a8f
* Thu Feb 11 2010 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-23
e3e0a8f
- Update source (tiny patch in kerkis.sty) (bug #561794). Thanks Jens Petersen
e3e0a8f
- Minor housecleaning
e3e0a8f
10885a6
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-22
10885a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
10885a6
e1e9d7d
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-21
e1e9d7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e1e9d7d
64b5352
* Sun Feb  1 2009 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-20
64b5352
- Also add forgotten requires on -common.
64b5352
8668817
* Sat Jan 31 2009 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-19
8668817
- Add forgotten %%{_fontdir} in %%files section in -common (bz #483333)
8668817
23f7538
* Tue Jan 20 2009 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-18
23f7538
- Address comments in https://bugzilla.redhat.com/show_bug.cgi?id=480591#c2
23f7538
  (thanks Nicolas Mailhot)
23f7538
    - Add a buildrequires for texlive-texmf
23f7538
    - Remove Requires: fontpackages-filesystem from main and add to common
23f7538
      subpackage.
23f7538
    - Fix Obsoletes to cover latest update for F-10
23f7538
    - Add -calligraphic-fonts subpackage
23f7538
    - Add substitution rules for fonts from which Kerkis and KerkisSans
23f7538
      derived
23f7538
    - Remove tabs to silence rpmlint
23f7538
23f7538
* Fri Jan 16 2009 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-17
23f7538
- Rename the package to ctan-kerkis-fonts
23f7538
- Name the subpackages according to
23f7538
  http://fedoraproject.org/wiki/PackagingDrafts/Font_package_naming_(2009-01-13)
23f7538
- Update to fontpackages-* >= 1.15
23f7538
23f7538
* Mon Jan 12 2009 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-16
23f7538
- Restructure spec file according to
23f7538
  https://fedoraproject.org/wiki/Fonts_SIG_Fedora_11_packaging_changes
23f7538
  (bug #477462)
23f7538
- Split package to cm-lgc-fonts (.pfb and .afm) and tetex-font-cm-lgc
23f7538
  (TeX stuff)
23f7538
- Include .afm files (forgotten in the previous versions)
23f7538
23f7538
23f7538
* Fri Jan  4 2008 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-15
23f7538
- Drop requirement for -fonts.
23f7538
- Point source URL to ctan.
23f7538
- Change license to LPPL.
23f7538
23f7538
* Tue Aug 29 2006 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-13
23f7538
- Bump release for FC6 rebuild.
23f7538
23f7538
* Mon Feb 20 2006 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-11
23f7538
- Rebuild for FC5.
23f7538
23f7538
* Sun Nov  6 2005 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-10
23f7538
- Use run-time define updmap.cfg (Michal Jaegermann, bug #172492).
23f7538
23f7538
* Wed Nov  2 2005 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-9
23f7538
- Use absolute path commands in post and postun.
23f7538
23f7538
* Wed Nov  2 2005 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-8
23f7538
- Remove explicit outputdir for updmap-sys (bug #172268)
23f7538
- Readd texhash in post and postun.
23f7538
23f7538
* Fri Oct  7 2005 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-7
23f7538
- Require tetex-fonts.
23f7538
- Drop kerkis-test.tex.
23f7538
- Use ctan zip soure.
23f7538
- Other cleanups.
23f7538
23f7538
* Tue Jun 21 2005 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-6
23f7538
- Run updmap-sys only when installing/removing, not updating.
23f7538
23f7538
* Fri Jun 10 2005 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-5
23f7538
- Fix location for font encoding files
23f7538
- Use updmap-sys instead of updmap
23f7538
23f7538
* Wed Jun  1 2005 Sarantis Paskalis <paskalis@di.uoa.gr> - 2.0-4
23f7538
- update location for map files according to TeXLive 2004.
23f7538
23f7538
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
23f7538
- rebuilt
23f7538
23f7538
* Wed May  5 2004 Marius L. Jøhndal <mariuslj at ifi.uio.no> - 0:2.0-0.fdr.2
23f7538
- Added kerkis-test.tex test document (bug 998).
23f7538
- Moved preun script to postun (bug 998).
23f7538
- Split Requires(post,postun) into separate Require statements (bug 998).
23f7538
23f7538
* Sun Nov 16 2003 Marius L. Johndal <mariuslj at ifi.uio.no> 0:2.0-0.fdr.1
23f7538
- Initial RPM release.