summaryrefslogtreecommitdiffstats
path: root/smenu.spec.in
blob: 3f8787d07f5a626d21b19f3fc684a9c58472d977 (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
60
61
62
63
64
#
# spec file for package smenu
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           smenu
Version:        @VERSION@
Release:        0
Summary:        A standard input word picker
License:        GPL-2.0
Group:          Productivity/Text/Utilities
Url:            http://repo.or.cz/smenu.git
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  ncurses-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

After having unsuccessfully searched the NET for what I wanted, I
decided to try to write my own.

I have tried hard to made its usage as simple as possible. It should
work, even when using an old "vt100" terminal and is "UTF-8" aware.

Author: Pierre Gentile <p.gen.progs@gmail.com>

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
install -d %{buildroot}%{_defaultdocdir}/%{name}
for FILE in COPYRIGHT *.rst examples; do
  mv ${FILE} %{buildroot}%{_defaultdocdir}/%{name}
done

%files
%defattr(-,root,root,-)
%attr(0755,root,root) %{_bindir}/*
%dir %{_defaultdocdir}/%{name}
%doc %{_defaultdocdir}/%{name}/*
%{_mandir}/man1/*

%changelog