]>
Commit | Line | Data |
---|---|---|
882a89ba AM |
1 | Summary: A simple serial device I/O tool |
2 | Name: tio | |
cbe711a4 | 3 | Version: 2.6 |
882a89ba AM |
4 | Release: 1 |
5 | License: GPL v2+ | |
6 | Group: Applications/Communications | |
7 | Source0: https://github.com/tio/tio/releases/download/v%{version}/%{name}-%{version}.tar.xz | |
cbe711a4 | 8 | # Source0-md5: 04520aa71f20a5ffd5ba98b4e1d4d94f |
882a89ba | 9 | URL: https://github.com/tio/tio |
b81b57dc JP |
10 | BuildRequires: inih-devel |
11 | BuildRequires: linux-libc-headers >= 7:2.6.20 | |
12 | BuildRequires: meson >= 0.53.2 | |
882a89ba | 13 | BuildRequires: ninja |
8d91463b | 14 | BuildRequires: pkgconfig |
3278ae14 | 15 | BuildRequires: rpm-build >= 4.6 |
f2204d0a | 16 | BuildRequires: rpmbuild(macros) >= 1.736 |
b81b57dc JP |
17 | BuildRequires: tar >= 1:1.22 |
18 | BuildRequires: xz | |
882a89ba AM |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | tio is a simple serial device tool which features a straightforward | |
23 | command-line and configuration file interface to easily connect to | |
24 | serial TTY devices for basic I/O operations. | |
25 | ||
3278ae14 JP |
26 | %package -n bash-completion-tio |
27 | Summary: bash-completion for tio | |
28 | Group: Applications/Shells | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | Requires: bash-completion >= 1:2.0 | |
31 | BuildArch: noarch | |
32 | ||
33 | %description -n bash-completion-tio | |
34 | bash-completion for tio. | |
35 | ||
882a89ba AM |
36 | %prep |
37 | %setup -q | |
38 | ||
39 | %build | |
40 | %meson build \ | |
e68adb29 | 41 | -Dbashcompletiondir=%{bash_compdir} |
882a89ba AM |
42 | |
43 | %ninja_build -C build | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %ninja_install -C build | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc AUTHORS NEWS README.md TODO | |
56 | %attr(755,root,root) %{_bindir}/tio | |
57 | %{_mandir}/man1/tio.1* | |
3278ae14 JP |
58 | |
59 | %files -n bash-completion-tio | |
60 | %defattr(644,root,root,755) | |
61 | %{bash_compdir}/tio |