File TeX-Guy.spec of Package TeX-Guy

#
# spec file for package TeX-Guy (Version 1.3.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           TeX-Guy
BuildRequires:  VFlib3-devel gtk-devel openmotif openmotif-devel t1lib-devel xorg-x11
License:        GPL v2 or later
Group:          Productivity/Publishing/TeX/Utilities
AutoReqProv:    on
Provides:       locale(texlive:ja)
Version:        1.3.1
Release:        97
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

%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.

* It is recommended to use "xgdvi", "spawx11", or "spawg" as
previewers, because they support antialiasing. (Other previewers are
sample implementations and not as good.)



Authors:
--------
    Hirotsugu Kakugawa   <h.kakugawa@computer.org>

%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.

* It is recommended to use "xgdvi", "spawx11", or "spawg" as
previewers, because they support antialiasing. (Other previewers are
sample implemenation and not as good.)



Authors:
--------
    Hirotsugu Kakugawa   <h.kakugawa@computer.org>

%prep
%setup0 -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
rm -f config.cache
# update config.{guess,sub}
%{?suse_update_config}
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

%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
%find_lang xgdvi --all-name

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files -f xgdvi.lang
%defattr(-, root, root)
%doc %{_defaultdocdir}/%{name}
/usr/bin/*
%{_libdir}/libdvilib2.so.*
%dir /usr/share/xgdvi
/usr/share/xgdvi/*
%dir /usr/share/DVIlib2
/usr/share/DVIlib2/*

%files -n TeX-Guy-devel
%defattr(-, root, root)
/usr/include/*
%{_libdir}/*.so
%{_libdir}/*a

%changelog
* Thu Jan 10 2008 - mfabian@suse.de
- Bugzilla #352478: remove uninitialized and unused variable.
- use find_lang macro
* Fri Apr 27 2007 - mfabian@suse.de
- replace "Provides: locale(tetex:ja)" with
  "Provides: locale(texlive:ja)".
* Wed Jan 17 2007 - mfabian@suse.de
- update to 1.3.1 (to build with VFlib3-3.6.14).
  •DVIlib 2.9.0: Added user data fields in dvi object.
  Fixed memory errors.
  •xgdvi:  Improved EPS image clipping and image caching.
  Fixed memory errors.
- remove bugzilla-152205-array-subscript-out-of-range.patch,
  TeX-Guy-nls.patch, TeX-Guy-1.2.4-patch-1.diff, TeX-Guy-fixes.patch,
  (included upstream).
* Tue Feb 28 2006 - mfabian@suse.de
- add "Provides:       locale(tetex:ja)".
* Mon Feb 20 2006 - mfabian@suse.de
- Bugzilla #152205: "array subscript out of range".
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Sep 17 2005 - meissner@suse.de
- fixed implicits.
* Tue Apr 20 2004 - meissner@suse.de
- add defines so prototypes for mkstemp / fdopen get included.
* Mon Oct 20 2003 - meissner@suse.de
- norootforbuild, fixed ppc64.
* Wed Jun 11 2003 - ro@suse.de
- fix filelist
* Mon Apr 14 2003 - mfabian@suse.de
- add TeX-Guy-1.2.4-patch-1.diff to avoid the crash on document
  reload
- make Japanese translations work not only in ja_JP.eucJP locale
  but also in ja_JP.UTF-8.
- add German translations
* Sat Aug 10 2002 - mfabian@suse.de
- update to 1.2.4
- add directories /usr/share/xgdvi and /usr/share/DVIlib2 to
  filelist
- TeX-Guy-devel should require TeX-Guy
* Fri Apr 12 2002 - mfabian@suse.de
- use %%{_libdir}
* Mon Aug 13 2001 - mfabian@suse.de
- update to TeX-Guy-1.2.1
* Mon May 07 2001 - mfabian@suse.de
- bzip2 sources
* Tue Feb 20 2001 - mfabian@suse.de
-  new package: TeX-Guy version 1.1.9
openSUSE Build Service is sponsored by