summaryrefslogtreecommitdiffstats
path: root/smenu.spec.in
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2015-11-27 21:24:37 +0100
committerpgen <p.gen.progs@gmail.com>2015-11-28 00:29:50 +0100
commitcb76557d32c5bf232f752cbd82ce06f07921c6dc (patch)
tree98bf6ff78ac07b5c96f113812053e16e221f771c /smenu.spec.in
parent2661fa86d60d0cbb13b35f4ce545b72b9967e27e (diff)
Add a RPM spec file template
Diffstat (limited to 'smenu.spec.in')
-rw-r--r--smenu.spec.in64
1 files changed, 64 insertions, 0 deletions
diff --git a/smenu.spec.in b/smenu.spec.in
new file mode 100644
index 0000000..7ed7dc1
--- /dev/null
+++ b/smenu.spec.in
@@ -0,0 +1,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.gz
+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; 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