File dvgt.spec of Package dvgt

#
# spec file for package dvgt (Version 3.51L3)
#
# 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:           dvgt
BuildRequires:  texlive-bin-devel texlive-devel texlive-latex
License:        Public Domain, Freeware
Group:          Productivity/Publishing/TeX/Utilities
Requires:       texlive
AutoReqProv:    on
Version:        3.51L3
Release:        1209
Summary:        A DVI Previewer
Source:         dvgt-3.51L3.tar.bz2
Patch:          dvgt-3.51L3.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Dvgt is a DVI previewer for console, terminals, and graphical terminals
like Tektronics or the good old XTerm. dvgt tries to fit the conditions
of the DVI files, therefore output on text terminals is not legible.



Authors:
--------
    Andrew Trevorrow <akt@uacomsci.ua.oz>
    Ian Dall
    Geoffrey Tobin <ecsgrt@luxor.latrobe.edu.au>
    Rob Malouf <malouf@csli.stanford.edu>

%prep
%setup
%patch

%build
RPM_OPT_FLAGS="-std=gnu89 $RPM_OPT_FLAGS -fno-strict-aliasing -funsigned-char"
#RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-uninitialized -Wno-unused -pipe"
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-unused -pipe"
export RPM_OPT_FLAGS
pushd src
   make -f Makefile.linux
popd
pushd doc
   make

%install
cd src
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install    -m 755 dvgt   $RPM_BUILD_ROOT/usr/bin/
install -c -m 644 dvgt.1 $RPM_BUILD_ROOT%{_mandir}/man1/
cd ../doc
mkdir -p $RPM_BUILD_ROOT%{_docdir}/dvgt
install -c -m 644 sysguide.dvi  $RPM_BUILD_ROOT%{_docdir}/dvgt/
install -c -m 644 userguide.dvi $RPM_BUILD_ROOT%{_docdir}/dvgt/
cd ../
install -c -m 644 README        $RPM_BUILD_ROOT%{_docdir}/dvgt/
install -c -m 644 README.Linux  $RPM_BUILD_ROOT%{_docdir}/dvgt/
install -c -m 644 README-3.51l2 $RPM_BUILD_ROOT%{_docdir}/dvgt/
install -c -m 644 README.SuSE   $RPM_BUILD_ROOT%{_docdir}/dvgt/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/usr/bin/dvgt
%{_mandir}/man1/dvgt.1.gz
%dir %{_docdir}/dvgt
%{_docdir}/dvgt/sysguide.dvi
%{_docdir}/dvgt/userguide.dvi
%{_docdir}/dvgt/README
%{_docdir}/dvgt/README.Linux
%{_docdir}/dvgt/README-3.51l2
%{_docdir}/dvgt/README.SuSE

%changelog
* Thu Mar 13 2008 werner@suse.de
- Minor adoption on new gcc
* Mon Apr 23 2007 ro@suse.de
- use texlive for building
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 14 2006 schwab@suse.de
- Don't strip binaries.
* Fri Oct 21 2005 werner@suse.de
- Return address not of array but the first element (bug #129945)
* Sun Jan 11 2004 adrian@suse.de
- add %%defattr
* Fri Jun 13 2003 coolo@suse.de
- package docdir
* Tue May 27 2003 coolo@suse.de
- use BuildRoot
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Tue May 14 2002 werner@suse.de
- Do not strip in debugging case
* Mon Nov 12 2001 ro@suse.de
- no svgalib
* Mon Mar 05 2001 werner@suse.de
- Avoid svga/vga if not available on the current architecture
* Sat Dec 09 2000 nashif@suse.de
-  sorted
* Mon Jun 05 2000 uli@suse.de
- moved docs to %%{_docdir}
* Wed Mar 01 2000 uli@suse.de
- moved man page to /usr/share
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Jul 15 1999 ro@suse.de
- fixed filelist
* Thu Jul 15 1999 werner@suse.de
- Elementary fixes againsat buffer overflows
* Wed Jul 14 1999 werner@suse.de
- New package of an old tool (dvi viewer for tek and other terminals)
	- A few changes to support kpatsea and (some) virtual fonts.
	- Fix 8 bit handling of characters
	- Implement rudimentary DC to latin 1 mapping
openSUSE Build Service is sponsored by