X-Git-Url: http://git.pld-linux.org/?p=packages%2FGXedit.git;a=blobdiff_plain;f=GXedit.spec;h=7b2bc08615a86e06cddf6f956d8fbfe2e7080e07;hp=58078d83e6377122d6be3480dfaaa8aff0c5ecbd;hb=03f530821b1d874ea119a59bf3c4c99b9c887766;hpb=4fc95932c5a50443f492b32375543e7efb44e6c9 diff --git a/GXedit.spec b/GXedit.spec index 58078d8..7b2bc08 100644 --- a/GXedit.spec +++ b/GXedit.spec @@ -1,78 +1,77 @@ -%define name GXedit -%define version 1.23 -%define release 1 -%define prefix /usr +Summary: A multi-function text editor using GTK+ +Summary(es): Editor de textos multifunciones que usa GTK+ +Summary(pl): Wielofunkcyjny edytor tekstu wykorzystuj±cy GTK+ +Summary(pt): Editor de textos multifunção que usa o GTK+ +Name: GXedit +Version: 1.23 +Release: 11 +License: GPL +Group: X11/Applications/Editors +# working: ftp://ibiblio.org/pub/Linux/apps/editors/X/%{name}-%{version}.tar.gz +Source0: %{name}%{version}.tar.gz +Source1: %{name}.desktop +Patch0: %{name}-config.patch +Patch1: %{name}-makefile.patch +Patch2: %{name}-nobash.patch +Patch3: %{name}-time.patch +BuildRequires: gtk+-devel >= 1.2.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -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. +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. + +%description -l es +Editor de textos multifunciones que usa GTK+. + +%description -l pl +Oto szybki, ³atwy w obs³udze edytor, który jest nastawiony na pracê w +sieci, a przy tym bardzo bezpieczny. GXedit jest graficznym edytorem +tekstu, który dostarcza takich funkcji jak pasek narzêdzi, sprawdzanie +pisowni, mo¿liwo¶æ wysy³ania tekstu poczt± elektroniczn±, makra i +wiele innych. GXedit zosta³ zaprojektowany tak, aby obecno¶æ tych i +wielu innych funkcji nie wp³ywa³a zbytnio na objêto¶æ samego programu. + +%description -l pt_BR +O GXedit é um editor de textos gráficos com múltiplas funções que +utiliza o GTK+. %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 +%setup -n %{name}%{version} -q +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build -make gxe +sed s^/usr/doc/GXedit/^%{_defaultdocdir}/%{name}-%{version}/^g gxedit.c > gxedit.c.new +mv -f gxedit.c.new gxedit.c + +%{__make} OPTFLAGS="%{rpmcflags} -Wall" 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 +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_applnkdir}/Editors} -mkdir -p $RPM_BUILD_ROOT%{prefix}/share/gnome/apps/Applications -install -c -m 664 %{SOURCE1} $RPM_BUILD_ROOT%{prefix}/share/gnome/apps/Applications +%{__make} install \ + SHARE=$RPM_BUILD_ROOT%{_datadir}/ \ + INSTALL_DIR=$RPM_BUILD_ROOT%{_bindir}/ -# strip binaries -strip `file $RPM_BUILD_ROOT/%{prefix}/bin/* | awk -F':' '/executable/ { print $1 }'` +install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Editors +%clean +rm -r $RPM_BUILD_ROOT %files +%defattr(644,root,root,755) %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 +%doc README CHANGELOG docs/DEPENDENCIES example.gxeditrc -%clean -rm -r $RPM_BUILD_ROOT +%attr(755,root,root) %{_bindir}/* + +%{_applnkdir}/Editors/GXedit.desktop +%{_datadir}/GXedit