File dvi2tty.spec of Package dvi2tty

#
# spec file for package dvi2tty
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2024 Asterios Dramis <asterios.dramis@gmail.com>.
#
# 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.

Name:           dvi2tty
Version:        5.3.4
Release:        0
Summary:        TeX-DVI to ASCII Converter
License:        GPL-2.0+
Group:          Productivity/Publishing/TeX/Utilities
Url:            http://www.mesa.nl/pub/dvi2tty/
Source0:        http://www.mesa.nl/pub/dvi2tty/%{name}-%{version}.tgz
# PATCH-NEEDS-REBASE dvi2tty-5.3.1.patch -- 
Patch0:         dvi2tty-5.3.1.patch
# PATCH-FIX-OPENSUSE dvi2tty-pager.patch -- Use "less" as the default pager
Patch1:         dvi2tty-pager.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
DVI2TTY converts a TeX-DVI file into a readable ASCII text file. You can then
do full text searches without finding the TeX macros.

%prep
%autosetup -N
#%%patch -P 0
%patch -P 1 -p1

%build
make %{?_smp_mflags} CFLAGS="%{optflags}"

%install
install -dpm 0755 %{buildroot}{%{_bindir}/,%{_mandir}/man1/}
%make_install

# Fix rpmlint warning "spurious-executable-perm"
chmod 644 %{buildroot}%{_mandir}/man1/*.1

%files
%defattr(-,root,root,-)
%doc COPYING Changelog README TODO
%{_bindir}/disdvi
%{_bindir}/dvi2tty
%doc %{_mandir}/man1/disdvi.1%{ext_man}
%doc %{_mandir}/man1/dvi2tty.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by