diff --git a/README.md b/README.md index 1f45f42..5224d33 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ # xmessage +The xmessage program displays a window containing a message from the command line, a file, or standard input. +Along the lower edge of the message is row of buttons; clicking the left mouse button on any of these buttons will cause xmessage to exit. +Which button was pressed is returned in the exit status and, optionally, by writing the label of the button to standard output. + +The program is typically used by shell scripts to display information to the user or to ask the user to make a choice. + +Unless a size is specified, xmessage sizes itself to fit the message, up to a maximum size. +If the message is too big for the window, xmessage will display scroll bars. + diff --git a/xmessage.spec b/xmessage.spec new file mode 100644 index 0000000..fedef50 --- /dev/null +++ b/xmessage.spec @@ -0,0 +1,56 @@ +Name: xmessage +Version: 1.0.4 +Release: 1mamba +Summary: xmessage - display a message or query in a window (X-based /bin/echo) +Group: Graphical Desktop/Applications/Utilities +Vendor: openmamba +Distribution: openmamba +Packager: Tiziana Ferro +URL: http://xorg.freedesktop.org/ +Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libX11-devel +BuildRequires: libXaw-devel +BuildRequires: libXt-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The xmessage program displays a window containing a message from the command line, a file, or standard input. +Along the lower edge of the message is row of buttons; clicking the left mouse button on any of these buttons will cause xmessage to exit. +Which button was pressed is returned in the exit status and, optionally, by writing the label of the button to standard output. + +The program is typically used by shell scripts to display information to the user or to ask the user to make a choice. + +Unless a size is specified, xmessage sizes itself to fit the message, up to a maximum size. +If the message is too big for the window, xmessage will display scroll bars. + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/%{name} +%{_datadir}/X11/app-defaults/Xmessage* +%{_mandir}/man?/* +%doc COPYING ChangeLog README + +%changelog +* Sat Jan 19 2013 Automatic Build System 1.0.4-1mamba +- automatic version update by autodist + +* Mon Apr 25 2011 Tiziana Ferro 1.0.3-1mamba +- package created by autospec \ No newline at end of file