File TeX-Guy.spec of Package TeX-Guy
#
# spec file for package TeX-Guy
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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: TeX-Guy
BuildRequires: VFlib3-devel
BuildRequires: aalib-devel
BuildRequires: freetype-devel
BuildRequires: openmotif
BuildRequires: openmotif-devel
BuildRequires: t1lib-devel
BuildRequires: xorg-x11
BuildRequires: xorg-x11-devel
Provides: locale(texlive:ja)
Version: 1.3.1
Release: 0
Url: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/VFlib/
Source0: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/download/TypeHack/TeX-Guy-1.3.1.tar.bz2
Patch0: conflicting-types-for-on_exit.patch
Patch1: fix-build.patch
Patch2: TeX-Guy-ppc64.diff
Patch3: bugzilla-352478-variable-not-initialized.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: DVI Interpreter Library and Utilities for Displaying and Printing
License: GPL-2.0+
Group: Productivity/Publishing/TeX/Utilities
%description
The TeX-Guy package contains a device-independent DVI interpreter
library (DVIlib) and a set of device controlling programs for the X
Window System and printers.
%package -n TeX-Guy-devel
Summary: DVI Interpreter Library and Utilities for Displaying and Printing
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description -n TeX-Guy-devel
The TeX-Guy-devel package contains a device-independent DVI interpreter
library (DVIlib) and a set of device controlling programs for the X
Window System and printers.
%prep
%setup0 -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
rm -f config.cache
export CFLAGS="$RPM_OPT_FLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED"
./configure --prefix=/usr \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
%{_target_cpu}-suse-linux-gnu
make %{?_smp_mflags}
%install
export CFLAGS="$RPM_OPT_FLAGS -D_BSD_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED"
mkdir -p $RPM_BUILD_ROOT/usr/bin
make prefix=$RPM_BUILD_ROOT/usr libdir=$RPM_BUILD_ROOT/%{_libdir} install
# install doc files:
for i in `find . -regex ".*CHANGE.*\|.*COPYING.*\|.*00_.*\|.*License.*\|.*MAN.*"`
do
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/`dirname $i`
cp $i $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/`dirname $i`
done
%files
%defattr(-, root, root)
%doc %{_defaultdocdir}/%{name}
/usr/bin/*
%{_libdir}/libdvilib2.so.*
%dir /usr/share/DVIlib2
/usr/share/DVIlib2/*
%files -n TeX-Guy-devel
%defattr(-, root, root)
/usr/include/*
%{_libdir}/*.so
%{_libdir}/*a
%changelog