Репозитории ALT
Группа :: Редакторы
Пакет: nedit
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: nedit
Version: 5.5
#%%define rc_ver RC2
Release: alt1
%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/
# 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.bz2
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 Thu Oct 31 2002
BuildRequires: XFree86-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 $RPM_BUILD_ROOT%_x11bindir/%name
%__install -pD -m755 source/nc $RPM_BUILD_ROOT%_x11bindir/nc
%__install -pD -m644 doc/%name.man $RPM_BUILD_ROOT%_x11mandir/man1/%name.1
%__install -pD -m644 doc/nc.man $RPM_BUILD_ROOT%_x11mandir/man1/nc.1
%__install -pD -m644 %SOURCE1 $RPM_BUILD_ROOT%_menudir/%name
%__install -pD -m644 %SOURCE2 $RPM_BUILD_ROOT%_miconsdir/%name.png
%__install -pD -m644 %SOURCE3 $RPM_BUILD_ROOT%_iconsdir/%name.png
%__install -pD -m644 %SOURCE4 $RPM_BUILD_ROOT%_liconsdir/%name.png
%post
%update_menus
%postun
%clean_menus
%files
%_x11bindir/*
%_x11mandir/man?/*
%_menudir/*
%_iconsdir/*.png
%_iconsdir/*/*.png
%doc README ReleaseNotes doc/NEdit.ad doc/*.txt.bz2
%changelog
…
Полный changelog можно просмотреть здесь
Version: 5.5
#%%define rc_ver RC2
Release: alt1
%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/
# 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.bz2
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 Thu Oct 31 2002
BuildRequires: XFree86-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 $RPM_BUILD_ROOT%_x11bindir/%name
%__install -pD -m755 source/nc $RPM_BUILD_ROOT%_x11bindir/nc
%__install -pD -m644 doc/%name.man $RPM_BUILD_ROOT%_x11mandir/man1/%name.1
%__install -pD -m644 doc/nc.man $RPM_BUILD_ROOT%_x11mandir/man1/nc.1
%__install -pD -m644 %SOURCE1 $RPM_BUILD_ROOT%_menudir/%name
%__install -pD -m644 %SOURCE2 $RPM_BUILD_ROOT%_miconsdir/%name.png
%__install -pD -m644 %SOURCE3 $RPM_BUILD_ROOT%_iconsdir/%name.png
%__install -pD -m644 %SOURCE4 $RPM_BUILD_ROOT%_liconsdir/%name.png
%post
%update_menus
%postun
%clean_menus
%files
%_x11bindir/*
%_x11mandir/man?/*
%_menudir/*
%_iconsdir/*.png
%_iconsdir/*/*.png
%doc README ReleaseNotes doc/NEdit.ad doc/*.txt.bz2
%changelog
…
Полный changelog можно просмотреть здесь