summaryrefslogtreecommitdiffstats
path: root/smenu.spec.in
blob: 0ac06c085a55c79bfdbbd129ff682c141e8c1255 (plain)
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
#
# spec file for package smenu
#

Name:           smenu
Version:        @VERSION@
Release:        0
Summary:        A standard input word picker
License:        GPL-2.0-only
Group:          Productivity/Text/Utilities
URL:            https://github.com/p-gen/%{name}
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  ncurses-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This tool reads words from a file or standard input, presents them in an
interactive window after the current line on the terminal, and writes the
selected words, if any, to standard output.

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%package tests
Summary:        Testing system for %{name}
Group:          Productivity/Text/Utilities
Requires:       smenu

%description tests
This packages contains some scripts and a number of tests to check the
%{name} tool.

%install
%if 0%{?suse_version} < 1315
make install DESTDIR="%{?buildroot}"
%else
%make_install
%endif

%files tests
%defattr(-,root,root,-)
%doc tests

%files
%defattr(-,root,root,-)
%attr(0755,root,root) %{_bindir}/*
%if 0%{?sle_version} < 120300
%doc COPYRIGHT
%else
%license COPYRIGHT
%endif
%doc examples README.rst FAQ
%{_mandir}/man1/*

%changelog