Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 30406c4f4b3ccd08d308b725a944a935 > files > 1

fonts-type1-cyrillic-1.1-4mdk.src.rpm

Summary:	Cyrillic Type1 fonts
Name:		fonts-type1-cyrillic
Version:	1.1
Release:	4mdk

# The "TopTeam" bulgarian company kindly donated good quality
# PS Type1 cyrillic font "Teams" to X community !
# info from: "Alexander Voropay" <a.voropay@globalone.ru>
Source0:	http://www.sensi.org/download/teams-1.1.tar.gz
#
Source1:	oldslavic.tar.bz2

License:	Free
Group:		System/Fonts/True type
BuildArch:	noarch
BuildRoot:	%_tmppath/%name-%version-%release-root
BuildRequires:	freetype-tools
Prereq:		%_sbindir/chkfontpath

%description
Scalable fonts including common Cyrillic glyphs

%prep

%setup -n teams -a1
mv doc teams
mkdir oldslavic
cp README COPYING oldslavic/

%build
cat > README << EOF
The "Teams" fonts are under X11 licence, see under the teams/ directory

The "OldSlavic" font is under the GPL, see under the oldslavic/ directory
EOF

%install
rm -fr %buildroot

install -d %buildroot/%_datadir/fonts/type1/cyrillic/
install -d %buildroot/%_datadir/fonts/afms/cyrillic/
install -m 0644 *.pfb %buildroot/%_datadir/fonts/type1/cyrillic
# the *.pfb files don't show up in Xft; installing the *.pfa ones
install -m 0644 Teams/*.pfa %buildroot/%_datadir/fonts/type1/cyrillic
# 
install -m 0644 *.afm %buildroot/%_datadir/fonts/afms/cyrillic/
install -m 0644 Teams/*.afm %buildroot/%_datadir/fonts/afms/cyrillic/

(
cd %buildroot/%_datadir/fonts/type1/cyrillic
# OOo requries afm files in same dire as fonts
ln ../../afms/cyrillic/*.afm .
%{_bindir}/fc-cache . || touch fonts.cache-1
)

# not listed in xfs, as the fonts don't cover any of the X11 encodings
# they only have basic cyrillic

%clean
rm -fr %buildroot

%postun
# 0 means a real uninstall
if [ "$1" = "0" ]; then
   %{_bindir}/fc-cache %{_datadir}/fonts/ 
fi

%post
%{_bindir}/fc-cache %{_datadir}/fonts/ 

%files
%defattr(0644,root,root,0755)
%doc README* teams/ oldslavic/
%dir %_datadir/fonts/
%dir %_datadir/fonts/afms/
%dir %_datadir/fonts/afms/cyrillic
%_datadir/fonts/afms/cyrillic/*.afm
%dir %_datadir/fonts/type1/
%dir %_datadir/fonts/type1/cyrillic
%_datadir/fonts/type1/cyrillic/*.pfa
%_datadir/fonts/type1/cyrillic/*.pfb
%_datadir/fonts/type1/cyrillic/*.afm
%_datadir/fonts/type1/cyrillic/fonts.cache-1


%changelog
* Fri Jul 25 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.1-4mdk
- rebuild

* Tue Feb 18 2003 Pablo Saratxaga <pablo@mandrakesoft.com> 1.1-3mdk
- proper use of fc-cache

* Wed Sep 04 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 1.1-2mdk 
- added *.afm files in same directory as fonts (OOo requries that)

* Tue Sep 03 2002 Pablo Saratxaga <pablo@mandrakesoft.com> 1.1-1mdk
- first release for mandrake