1#
2# spec file for package smenu
3#
4
5Name:           smenu
6Version:        @VERSION@
7Release:        0
8Summary:        A standard input word picker
9License:        GPL-2.0-only
10Group:          Productivity/Text/Utilities
11URL:            https://github.com/p-gen/%{name}
12Source:         %{name}-%{version}.tar.bz2
13BuildRequires:  ncurses-devel
14BuildRoot:      %{_tmppath}/%{name}-%{version}-build
15
16%description
17This tool reads words from a file or standard input, presents them in an
18interactive window after the current line on the terminal, and writes the
19selected words, if any, to standard output.
20
21%prep
22%setup -q
23
24%build
25%configure
26make %{?_smp_mflags}
27
28%package tests
29Summary:        Testing system for %{name}
30Group:          Productivity/Text/Utilities
31Requires:       smenu
32
33%description tests
34This packages contains some scripts and a number of tests to check the
35%{name} tool.
36
37%install
38%if 0%{?suse_version} < 1315
39make install DESTDIR="%{?buildroot}"
40%else
41%make_install
42%endif
43
44%files tests
45%defattr(-,root,root,-)
46%doc tests
47
48%files
49%defattr(-,root,root,-)
50%attr(0755,root,root) %{_bindir}/*
51%if 0%{?sle_version} < 120300
52%doc COPYRIGHT
53%else
54%license COPYRIGHT
55%endif
56%doc examples README.rst FAQ
57%{_mandir}/man1/*
58
59%changelog
60