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