Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37038358
en ru br
ALT Linux repositórios
S:5.7-alt1
5.0: 5.5-alt2.1
4.1: 5.5-alt2
4.0: 5.5-alt2
3.0: 5.5-alt1

Group :: Editores
RPM: nedit

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: nedit
Version: 5.5
#%%define rc_ver RC2
Release: alt2.1
%define srcname %name-%version%{?rc_ver:%rc_ver}%{?!rc_ver:-src}

Summary: A text editor for the X Window System
License: GPL
Group: Editors
Url: http://www.nedit.org/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# ftp://ftp.nedit.org/pub/NEdit/v5_5/ or ftp://ftp.nedit.org/pub/NEdit/beta/

Source: ftp.nedit.org:/pub/NEdit/v5_5/%srcname.tar
Source1: %name.menu
Source2: %name-16x16.png
Source3: %name-32x32.png
Source4: %name-48x48.png

Patch1: %name-5.4rc1-alt-makefile.patch
Patch2: %name-5.5-alt-fonts.patch
Patch3: %name-5.5-alt-tmp.patch

# Automatically added by buildreq on Tue May 23 2006

BuildRequires: libX11-devel libXext-devel libXmu-devel libXp-devel openmotif-devel

%description
NEdit is a multi-purpose text editor for the X Window System, which combines a
standard, easy to use, graphical user interface with the thorough functionality
and stability required by users who edit text eighthours a day.  It provides
intensive support for development in a wide variety of languages, text processors,
and other tools, but at the same time can be used productively by just about anyone
who needs to edit text.

%prep
%setup -q %{?rc_ver:-n %srcname}
%patch1 -p1
%patch2 -p1
%patch3 -p1

# Change nedit.shell default from /bin/csh to /bin/sh.

find doc -type f -print0 |
xargs -r0 grep -FZl /bin/csh |
xargs -r0 subst -p s,/bin/csh,/bin/sh,g --
find -type f -name \*.h -print0 |
xargs -r0 grep -FZl /bin/csh |
xargs -r0 subst -p s,/bin/csh,/bin/sh,g --
find -type f -name \*.c -print0 |
xargs -r0 grep -FZl /bin/csh |
xargs -r0 subst -p 's,"/bin/csh","/bin/sh",g' --

%build
%add_optflags -DBUILD_UNTESTED_NEDIT -DBUILD_BROKEN_NEDIT
%make_build linux YACC='bison -y'
cp -p doc/nedit.{doc,txt}
bzip2 -9f doc/{faq,nedit}.txt

%install
install -pD -m755 source/%name %buildroot%_bindir/%name
install -pD -m755 source/nc %buildroot%_bindir/nc
install -pD -m644 doc/%name.man %buildroot%_man1dir/%name.1
install -pD -m644 doc/nc.man %buildroot%_man1dir/nc.1
install -pD -m644 %SOURCE1 %buildroot%_menudir/%name
install -pD -m644 %SOURCE2 %buildroot%_miconsdir/%name.png
install -pD -m644 %SOURCE3 %buildroot%_niconsdir/%name.png
install -pD -m644 %SOURCE4 %buildroot%_liconsdir/%name.png

%post
%update_menus

%postun
%clean_menus

%files
%_x11bindir/*
%_x11mandir/man?/*
%_menudir/*
%_miconsdir/*.png
%_niconsdir/*.png
%_liconsdir/*.png
%doc README ReleaseNotes doc/NEdit.ad doc/*.txt.bz2

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009