File luit.spec of Package luit

#
# spec file for package luit
#
# Copyright (c) 2015 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:           luit
Version:        20141204
Release:        0
Summary:        Locale and ISO 2022 support for Unicode terminals
License:        MIT
Group:          System/X11/Utilities
Url:            http://invisible-island.net/luit/
Source0:        ftp://invisible-island.net/%{name}/%{name}-%{version}.tgz
# PATCH-FIX-UPSTREAM u_luit-Set-up-terminal-before-fork.diff fdo#48638 -- Set up terminal before fork
Patch0:         u_luit-Set-up-terminal-before-fork.diff
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(fontenc)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(zlib)
# This was part of the xorg-x11 package up to version 7.6
Conflicts:      xorg-x11 <= 7.6
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Luit is a filter that can be run between an arbitrary application and a
UTF-8 terminal emulator. It will convert application output from the
locale's encoding into UTF-8, and convert terminal input from UTF-8 into
the locale's encoding.

%prep
%setup -q
%patch0 -p1

%build
%configure --with-localealiasfile=%{_datadir}/X11/locale/locale.alias
make %{?_smp_mflags}

%install
%make_install

%files
%defattr(-,root,root)
%{_bindir}/luit
%{_mandir}/man1/luit.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by