File mimetex.spec of Package mimetex

#
# spec file for package gcompris
#
# Copyright (c) 2012-2017 Lars Vogdt
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           mimetex
Summary:        LaTeX math expressions to anti-aliased GIF images converter
Version:        1.76
Release:        1
Url:            http://www.forkosh.com/mimetex.html
Group:          Productivity/Publishing/TeX/Utilities
License:        GPL-2.0
BuildRequires:  gcc
Source:         %{name}-%{version}.tar.bz2
Source2:        mimetex.man.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define         cachepath /var/cache/mimetex

%description
LaTeX math expressions to anti-aliased GIF images converter
mimeTex parses LaTeX math expressions emitting directly GIF images
without intermediate dvi-to-gif conversion.

mimeTex is a standalone program that doesn't use TeX in any way, a kind
of lightweight alternative to MathML.

%prep
%setup -q

%build
export CFLAGS="%optflags"
gcc $CFLAGS -DAA -DINPUTPATH=\"srv,var,home,tmp\" mimetex.c gifsave.c -lm -o mimetex

%install
install -Dm755 mimetex %{buildroot}%{_bindir}/mimetex
install -Dm644 %{SOURCE2} %{buildroot}%{_mandir}/man1/mimetex.1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README COPYING mimetex.html
%doc %{_mandir}/man1/*
%{_bindir}/mimetex

%changelog
openSUSE Build Service is sponsored by