Re: MathML fonts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2005-09-18 at 19:40 +0200, Eric Tanguy wrote:

> > 
> I can't access this site to get and see these spec files. Have you an
> idea ?

Nope - but I'll attach them.
Happens to me from time to time to, cheap host.
Name:		mathematica_ttf
Version:	4.1
Release:	0.1
Summary:	Mathematica TTF Fonts

Group:		User Interface/X
License:	Commercial Non Distributable
URL:		http://support.wolfram.com/mathematica/systems/windows/general/latestfonts.html
Source0:	MathFonts_TrueType.exe
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch

NoSource:	0

BuildRequires:	xorg-x11-font-utils
BuildRequires:  unzip
Requires(post,preun,postun):	/usr/bin/fc-cache /usr/sbin/chkfontpath


%description
This package contains the Mathematica True Type fonts, which are useful for
viewing MathML content.

%prep
%setup -T -c
unzip %{SOURCE0}

%build

%install
rm -rf %buildroot
mkdir -p %buildroot/%{_datadir}/fonts/mathematica
for a in `ls |grep "\.ttf$"`; do
	install -m444 $a %buildroot/%{_datadir}/fonts/mathematica/
done
pushd %buildroot/%{_datadir}/fonts/mathematica/
mkfontscale .
mkfontdir
# for ghost
touch fonts.cache-1
popd

%clean
rm -rf %buildroot

%files
%defattr(-,root,root,-)
%{_datadir}/fonts/mathematica/*.ttf
%{_datadir}/fonts/mathematica/fonts.dir
%{_datadir}/fonts/mathematica/fonts.scale
%ghost %{_datadir}/fonts/mathematica/fonts.cache-1

%post
if [ "$1" = 1 ]; then
  /usr/sbin/chkfontpath --add %{_datadir}/fonts/mathematica
fi
/usr/bin/fc-cache %{_datadir}/fonts

%preun
if [ "$1" = 0 ]; then
  /usr/sbin/chkfontpath --remove %{_datadir}/fonts/mathematica
fi

%postun
if [ "$1" = "0" ]; then
  /usr/bin/fc-cache %{_datadir}/fonts
fi

%changelog
* Sun Sep 18 2005 Michael A. Peters <mpeters@xxxxxxx> 4.1-0.1
- Mozilla MathML wants 4.1, add unzip to BuildRequires

* Sun Sep 18 2005 Michael A. Peters <mpeters@xxxxxxx> 4.2-0.1
- Initial Packaging for Fedora

Name:		mathtype_ttf
Version:	1.0
Release:	0.2
Summary:	MathType TTF Fonts

Group:		User Interface/X
License:	Commercial Distributable With Restriction
URL:		http://www.mathtype.com/en/dl/fonts/getfont.asp
Source0:	MathTypeTrueTypeFonts.exe
Source1:        MathType_License.rtf
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch

BuildRequires:	cabextract
BuildRequires:	xorg-x11-font-utils
Requires(post,preun,postun):	/usr/bin/fc-cache /usr/sbin/chkfontpath


%description
This package contains the MathType True Type fonts, which are useful for
viewing MathML content.

%prep
%setup -T -c
cabextract -L %{SOURCE0}
cp %{SOURCE1} .

%build

%install
rm -rf %buildroot
mkdir -p %buildroot/%{_datadir}/fonts/mathtype
for a in `ls |grep "\.ttf$"`; do
	install -m444 $a %buildroot/%{_datadir}/fonts/mathtype/
done
pushd %buildroot/%{_datadir}/fonts/mathtype/
mkfontscale .
mkfontdir
# for ghost
touch fonts.cache-1
popd

%clean
rm -rf %buildroot

%files
%defattr(-,root,root,-)
%doc MathType_License.rtf
%{_datadir}/fonts/mathtype/*.ttf
%{_datadir}/fonts/mathtype/fonts.dir
%{_datadir}/fonts/mathtype/fonts.scale
%ghost %{_datadir}/fonts/mathtype/fonts.cache-1

%post
if [ "$1" = 1 ]; then
  /usr/sbin/chkfontpath --add %{_datadir}/fonts/mathtype
fi
/usr/bin/fc-cache %{_datadir}/fonts

%preun
if [ "$1" = 0 ]; then
  /usr/sbin/chkfontpath --remove %{_datadir}/fonts/mathtype
fi

%postun
if [ "$1" = "0" ]; then
  /usr/bin/fc-cache %{_datadir}/fonts
fi

%changelog
* Sun Sep 18 2005 Michael A. Peters <mpeters@xxxxxxx> 1.0-0.2
- Initial Packaging for Fedora


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux