%define name GXedit %define version 1.23 %define release 8mdk Summary: A multi-function text editor using GTK+ Name: %{name} Version: %{version} Release: %{release} Group: Editors BuildRequires: gtk+-devel Requires: gtk+ License: GPL Url: http://www.linsupport.com/sw/gxedit.html Source: %{name}%{version}.tar.bz2 Source1: GXedit.desktop Source2: gxedit-config.h Patch: gxedit-1.23-makefile.patch.bz2 Patch1: gxedit-1.23-time_h.patch.bz2 Buildroot: %{_tmppath}/%{name}-%{version}-root %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 %patch1 -p1 cd ${RPM_BUILD_DIR}/%{name}%{version} cp %{SOURCE2} ./config.h sed s^/usr/doc/GXedit/^/usr/share/doc/GXedit-%{version}/^g gxedit.c > gxedit.c.new mv gxedit.c.new gxedit.c %build make CFLAGS="`gtk-config --cflags` -I/usr/local/include -I. $RPM_OPT_FLAGS -Wall -DVERSION=\\\"1.23\\\"" gxe chmod a+r docs/* %install if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi mkdir -p $RPM_BUILD_ROOT%{_bindir} %makeinstall SHARE=$RPM_BUILD_ROOT%{_datadir} INSTALL_DIR=$RPM_BUILD_ROOT%{_bindir}/ mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Applications install -c -m 664 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Applications %files %defattr(-, root,root) %doc docs/manual.txt docs/manual.ps docs/quickref.txt docs/quickref.ps %doc docs/COPYING README CHANGELOG %{_bindir}/* %{_datadir}/gnome/apps/Applications/GXedit.desktop %{_datadir}/GXedit %clean rm -r $RPM_BUILD_ROOT %changelog * Wed Oct 3 2001 DindinX <odin@mandrakesoft.com> 1.23-8mdk - rebuild (rpmlint fixes) * Wed Mar 14 2001 DindinX <odin@mandrakesoft.com> 1.23-7mdk - added a patch to build with new glic * Mon Jan 22 2001 DindinX <odin@mandrakesoft.com> 1.23-6mdk - fix url - s/Copyright/License/ - BM - fix License (GPL) - some other fixes * Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.23-5mdk - automatically added BuildRequires * Mon Jul 17 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.23-4mdk - let spec-helper do the binaries striping job - %makeinstall (Stefan van der Eijk <s.vandereijk@chello.nl>) * Sat Mar 25 2000 Daouda Lo <daouda@mandrakesoft.com> 1.23-3mdk - change group * Tue May 04 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com> - Mandrake adaptions - handle RPM_OPT_FLAGS * Thu Apr 01 1999 Michael Fulbright <drmike@redhat.com> - version 1.23 * Fri Mar 19 1999 Michael Fulbright <drmike@redhat.com> - strip binaries * Sun Mar 06 1999 Michael Fulbright <drmike@redhat.com> - version 1.22 * Wed Jan 27 1998 Michael Fulbright <drmike@redhat.com> - first attempt at spec file