File pdmenu.spec of Package pdmenu
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: pdmenu
Version: 1.3.2
Release: 1
License: GPLv2
Summary: A simple menu program
Url: http://ftp.de.debian.org/debian/pool/main/p/pdmenu/%{name}_%{version}.tar.gz
Group: System/Shells
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE pdmenu-nobangpath.patch -- Removes unwanted bang-path from configs
Patch0: %{name}-nobangpath.patch
BuildRequires: slang-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Pdmenu is a menuing system for Unix. It is designed to be easy to
use, and is suitable for a login shell for inexperienced users, or
it can just be ran at the command line as a handy menu.
Pdmenu features color support and GPM mouse support at the linux
console. It compiles on most varieties of Unix.
See Pdmenu's man pages for information about the format of the
pdmenurc file, and how to use the program.
I was prompted to write Pdmenu when I took a look at a shell script
that used dialog to generate similar menus. The shell script was
huge, complicated, and ugly, and had to be modified manually to add
anything to the menu. I hope that Pdmenu is better. :-)
%prep
%setup -q
%patch0 -p1
%build
%configure
make %{?_smp_mflags}
%install
make install INSTALL_PREFIX=%{buildroot}
chmod 0755 %{buildroot}%{_bindir}/pdmenu
%find_lang %{name}
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/pdmenu
%config(noreplace) %{_sysconfdir}/pdmenurc
%dir %{_datadir}/pdmenu
%{_datadir}/pdmenu/editdir.pl
%{_datadir}/pdmenu/showdir.pl
%doc %{_mandir}/man1/pdmenu.1.gz
%doc %{_mandir}/man5/pdmenurc.5.gz
%changelog