File: luit.spec

package info (click to toggle)
luit 2.0.20240910-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,156 kB
  • sloc: ansic: 7,750; sh: 4,086; perl: 272; makefile: 157
file content (68 lines) | stat: -rw-r--r-- 1,798 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Summary: Locale and ISO 2022 support for Unicode terminals
%define AppProgram luit
%define AppVersion 20240910
%define UseProgram b%{AppProgram}
# $XTermId: luit.spec,v 1.73 2024/09/09 08:19:49 tom Exp $
Name: %{UseProgram}
Version: %{AppVersion}
Release: 1
License: MIT
Group: Applications/System
URL: https://invisible-island.net/%{name}/
Source0: %{AppProgram}-%{AppVersion}.tgz

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

This package installs an alternative binary "bluit", and adds a symbolic link
for "xterm-filter".

%prep

%define debug_package %{nil}

%setup -q -n %{AppProgram}-%{AppVersion}

%build

INSTALL_PROGRAM='${INSTALL}' \
%configure \
  --program-prefix=b \
  --target %{_target_platform} \
  --prefix=%{_prefix} \
  --bindir=%{_bindir} \
  --libdir=%{_libdir} \
  --mandir=%{_mandir}

make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

make install                    DESTDIR=$RPM_BUILD_ROOT
( cd $RPM_BUILD_ROOT%{_bindir}      && ln -s %{UseProgram} xterm-filter )
( cd $RPM_BUILD_ROOT%{_mandir}/man1 && ln -s %{UseProgram}.1 xterm-filter.1 )

strip $RPM_BUILD_ROOT%{_bindir}/%{UseProgram}

%files
%defattr(-,root,root)
%doc %{AppProgram}.log.html
%{_prefix}/bin/%{UseProgram}
%{_prefix}/bin/xterm-filter
%{_mandir}/man1/*

%changelog
# each patch should add its ChangeLog entries here

* Tue Jan 11 2022 Thomas Dickey <dickey@his.com>
- update URL, install package as "bluit"

* Sat Jun 05 2010 Thomas Dickey <dickey@his.com>
- Fixes/improvements for FreeBSD and Solaris

* Mon May 31 2010 Thomas Dickey <dickey@his.com>
- initial version