File: luit.spec

package info (click to toggle)
luit 2.0.20221028-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,136 kB
  • sloc: ansic: 7,711; sh: 3,615; perl: 272; makefile: 156
file content (71 lines) | stat: -rw-r--r-- 1,805 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
69
70
71
Summary: luit - Locale and ISO 2022 support for Unicode terminals
%define AppProgram luit
%define AppVersion 20221028
%define UseProgram b%{AppProgram}
# $XTermId: luit.spec,v 1.69 2022/10/28 19:51:21 tom Exp $
Name: %{UseProgram}
Version: %{AppVersion}
Release: 1
License: MIT
Group: Applications/System
URL: ftp://invisible-island.net/%{AppProgram}
Source0: %{AppProgram}-%{AppVersion}.tgz
Packager: Thomas Dickey <dickey@invisible-island.net>

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

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

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

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

%changelog
# each patch should add its ChangeLog entries here

* Tue Jan 11 2022 Thomas Dickey
- update URL, install package as "bluit"

* Sat Jun 05 2010 Thomas Dickey
- Fixes/improvements for FreeBSD and Solaris

* Mon May 31 2010 Thomas Dickey
- initial version