diff --git a/gmrun-gmrunrc.patch b/gmrun-gmrunrc.patch new file mode 100644 index 0000000..0281033 --- /dev/null +++ b/gmrun-gmrunrc.patch @@ -0,0 +1,37 @@ +--- gmrun-0.9.2/config/gmrunrc.old 2003-11-16 12:43:41.000000000 +0200 ++++ gmrun-0.9.2/config/gmrunrc 2007-01-18 16:05:47.000000000 +0200 +@@ -3,7 +3,7 @@ + # GPL v2.0 applies + + # Set terminal +-Terminal = gnome-terminal --start-factory-server --use-factory ++Terminal = xterm + TermExec = ${Terminal} -e + AlwaysInTerm = ssh telnet ftp lynx mc vi vim pine centericq perldoc man + +@@ -32,18 +32,13 @@ + # - %u gets replaced with the whole URL ("http://www.google.com") + # - %s gets replaced with "//www.google.com". This is useful for URL-s + # like "man:printf" --> %s will get replaced with "printf" +-URL_http = mozilla -remote "openURL(%u, new-window)" +-URL_mailto = mozilla -remote "mailto(%s)" ++URL_http = htmlview %u ++URL_mailto = htmlview %u ++URL_file = xdg-open %s + URL_man = ${TermExec} 'man %s' + URL_info = ${TermExec} 'info %s' +-URL_pd = ${TermExec} 'perldoc %s' +-URL_file = nautilus %s +-URL_readme = ${TermExec} 'less /usr/doc/%s/README' +-URL_info = ${TermExec} 'info %s' +-URL_sh = sh -c '%s' ++URL_search = htmlview 'http://www.google.co.il/search?q=%s' + + # extension handlers +-EXT:doc,rtf = AbiWord %s +-EXT:txt,cc,cpp,h,java,html,htm,epl,tex,latex,js,css,xml,xsl,am = emacs %s +-EXT:ps = gv %s +-EXT:pdf = xpdf %s ++# Customize your own extension handler. ++EXT:doc,rtf,txt,cc,cpp,h,java,html,htm,epl,tex,latex,js,css,xml,xsl,am,ps,pdf = xdg-open %s ++ diff --git a/gmrun.spec b/gmrun.spec new file mode 100644 index 0000000..d40b82c --- /dev/null +++ b/gmrun.spec @@ -0,0 +1,89 @@ +Name: gmrun +Version: 0.9.2 +Release: 7%{?dist} +Summary: Lightweight "Run program" dialog box with search history and tab completion + +Group: User Interface/Desktops +License: GPL +URL: http://sourceforge.net/projects/gmrun +Source0: http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz +Patch0: gmrun-gmrunrc.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gtk2-devel +BuildRequires: popt +Requires: htmlview +Requires: xterm +Requires: man +Requires: info +Requires: xdg-utils + + +%description +A simple GTK program which provides a "run program" window. +It features a bash-like TAB completion, Ctrl-R/Ctrl-S for +searching through the history and URL handlers for any user defined +prefix. + + +%prep +%setup -q +%patch0 -p1 -b .gmrunrc + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc ChangeLog AUTHORS COPYING README NEWS +%{_datadir}/gmrun/ +%{_bindir}/gmrun + + +%changelog +* Sat Feb 10 2007 - 0.9.2-7 +- Preserve the source time-stamp. + +* Sun Feb 04 2007 - 0.9.2-6 +- Fixed summery. +- Remove redundant fileattr. + +* Sun Jan 28 2007 - 0.9.2-5 +- Missing REQ: man. +- Missing REQ: info. +- Missing REQ: xdg-open. +- Use xdg-open to handle files. + +* Sat Jan 20 2007 - 0.9.2-4 +- Add missing NEWS to %%doc. + +* Thu Jan 18 2007 - 0.9.2-3 +- Fix wrong group and project URLs. +- Fix summery, description. +- Remove BR: glib2-devel. (REQ by gtk2-devel). +- Add BR: popt +- Remove gmrunrc from %%config section. +- Set gmrunrc to 0644 (by default it's 0600) +- Configure gmrunrc to better handle Fedora URI's. +- Add REQ: htmlview. (gmrunrc) +- Add REQ: xterm. (gmrunrc) + +* Sat Jan 13 2007 - 0.9.2-2 +- Fix Source0 URL. +- Remove redundant %%doc files. + +* Sat Jan 13 2007 - 0.9.2-1 +- Initial release. + diff --git a/sources b/sources index e69de29..0393247 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6cef37a968006d9496fc56a7099c603c gmrun-0.9.2.tar.gz