%define name GXedit %define version 1.23 %define release 1 %define prefix /usr Summary: A multi-function text editor using GTK+ Name: %{name} Version: %{version} Release: %{release} Group: Applications/Editors Copyright: Freely distributable Url: http://devplanet.fastethernet.net/gxedit.html Source: %{name}%{version}.tar.gz Source1: GXedit.desktop Source2: gxedit-config.h Patch: gxedit-1.23-makefile.patch Buildroot: /var/tmp/%{name}-%{version}-%{release}-root %changelog * Thu Apr 01 1999 Michael Fulbright - version 1.23 * Fri Mar 19 1999 Michael Fulbright - strip binaries * Sun Mar 06 1999 Michael Fulbright - version 1.22 * Wed Jan 27 1998 Michael Fulbright - first attempt at spec file %description Here is a fast, easy-to-use editor which is both network- oriented and very secure. GXedit is a graphical text editor which features a toolbar, network bar and tooltips, spell checking, inline help, the ability to send text as e-mail, macros and more. GXedit was designed to balance these and many other features without becoming too bloated. You'll need GTK+ to use GXedit. %prep %setup -n GXedit%{version} -q %patch -p1 cd ${RPM_BUILD_DIR}/%{name}%{version} cp %{SOURCE2} ./config.h sed s^/usr/doc/GXedit/^/usr/doc/GXedit-%{version}/^g gxedit.c > gxedit.c.new mv gxedit.c.new gxedit.c %build make gxe %install if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi mkdir -p $RPM_BUILD_ROOT%{prefix}/bin make SHARE=$RPM_BUILD_ROOT%{prefix}/share INSTALL_DIR=$RPM_BUILD_ROOT%{prefix}/bin/ install mkdir -p $RPM_BUILD_ROOT%{prefix}/share/gnome/apps/Applications install -c -m 664 %{SOURCE1} $RPM_BUILD_ROOT%{prefix}/share/gnome/apps/Applications # strip binaries strip `file $RPM_BUILD_ROOT/%{prefix}/bin/* | awk -F':' '/executable/ { print $1 }'` %files %doc docs/manual.txt docs/manual.ps docs/quickref.txt docs/quickref.ps %doc docs/COPYING README CHANGELOG %attr(755,root,root) %{prefix}/bin/ %{prefix}/share/gnome/apps/Applications/GXedit.desktop %{prefix}/share/GXedit %clean rm -r $RPM_BUILD_ROOT