Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > eaeae87c54f326a712f7518a81186190 > files > 1

fonts-type1-cyrillic-1.1-7mdv2008.0.src.rpm

Summary:	Cyrillic Type1 fonts
Name:		fonts-type1-cyrillic
Version:	1.1
Release:	%mkrel 7

# 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:	GPL+ and MIT
Group:		System/Fonts/Type1
BuildArch:	noarch
BuildRoot:	%_tmppath/%name-%version-%release-root
BuildRequires:	freetype-tools
BuildRequires:	mkfontdir
Requires(post): fontconfig
Requires(postun): fontconfig

%description
Scalable fonts including common Cyrillic glyphs.

%prep

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

%build

%install
rm -fr %buildroot

install -d %buildroot/%_datadir/fonts/type1/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/type1/cyrillic/
install -m 0644 Teams/*.afm %buildroot/%_datadir/fonts/type1/cyrillic/

mkfontdir %buildroot/%_datadir/fonts/type1/cyrillic
cp %buildroot/%_datadir/fonts/type1/cyrillic/fonts.dir %buildroot/%_datadir/fonts/type1/cyrillic/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/type1/cyrillic \
    %{buildroot}%_sysconfdir/X11/fontpath.d/type1-cyrillic:pri=50

# 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
   [ -x %_bindir/fc-cache ] && %{_bindir}/fc-cache
fi

%post
touch %{_datadir}/fonts/type1
[ -x %_bindir/fc-cache ] && %{_bindir}/fc-cache

%files
%defattr(0644,root,root,0755)
%doc README* teams/ oldslavic/
%_datadir/fonts/type1/cyrillic
%_sysconfdir/X11/fontpath.d/type1-cyrillic:pri=50



%changelog
* Wed Sep 19 2007 Adam Williamson <awilliamson@mandriva.com> 1.1-7mdv2008.0
+ Revision: 90331
- buildrequires mkfontdir
- rebuild for 2008
- adapt to new font policies
- new license policy
- clean spec


* Fri Nov 03 2006 Pablo Saratxaga <pablo@mandriva.com> 1.1-6mdv2007.0
+ Revision: 76298
- Import fonts-type1-cyrillic

* Fri Nov 03 2006 Pablo Saratxaga <pablo@mandriva.com> 1.1-6mdv2007.1
- use mkrel
- fixed package Group

* Wed Feb 08 2006 Frederic Crozat <fcrozat@mandriva.com> 1.1-5mdk
- Don't package fontconfig cache file
- Fix prereq
- touch parent directory to workaround rpm changing directory last modification
  time (breaking fontconfig cache consistency detection)