Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > b56c80c13a5293f9fc74b4f10a9b89f3 > files > 3

nedit-5.2-2mdk.src.rpm

%define name	nedit
%define release 2mdk
%define version	5.2

Summary:	A text editor for the X Window System
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Url:		http://www.nedit.org/
Group:		Editors

Source:		http://www.Nedit.org/ftp/v5_1_1/%{name}-%{version}.tar.bz2
Patch0:		nedit-5.2-Makefile.patch.bz2

BuildRequires:	byacc, lesstif-devel >= 0.93, XFree86-devel, libxpm4-devel
Buildroot:	%{_tmppath}/%{name}-root

%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 -n %{name}-%{version}
%patch0 -p1 -b .Makefile

%build
%make linux

%install
rm -rf $RPM_BUILD_ROOT

(cd doc;
  mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  install -m 644 nedit.man $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
  install -m 644 nc.man $RPM_BUILD_ROOT%{_mandir}/man1/ncl.1
)
(cd source;
  mkdir -p $RPM_BUILD_ROOT%{_bindir}
  install -m 755 nedit $RPM_BUILD_ROOT%{_bindir}/nedit
  install -m 755 nc $RPM_BUILD_ROOT%{_bindir}/ncl
)

# Mandrake menu entries
install -d -m 0755 %buildroot/%_menudir
cat > %buildroot/%_menudir/%name << EOF
?package(%{name}): command="nedit" \
icon="editors_section.png" \
needs="x11" \
title="Nedit" \
longtitle="A text editor based on lestif" \
section="Applications/Editors"
EOF


%post
%update_menus

%postun
%clean_menus

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README ReleaseNotes doc/nedit.doc
%{_bindir}/%{name}
%{_bindir}/ncl
%{_menudir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/ncl.1*

%changelog
* Wed Jan 09 2002 David BAUDENS <baudens@mandrakesoft.com> 5.2-2mdk
- Use stardard editors_section.png icon

* Sat Nov 17 2001 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 5.2-1mdk
- Release 5.2
- [Build]Requires: lesstif[-devel] >= 0.93
- Update Patch0 to enable more warnings, optimizations and Motif 2.1
- Remove Patch1, Patch2 (merged upstream)

* Sun Sep 09 2001 Stefan van der Eijk <stefan@eijk.nu> 5.1.1-15mdk
- BuildRequires: byacc

* Tue Aug  7 2001 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 5.1.1-14mdk
- Fix E:description-line-too-long
- Fix W:invalid-distribution Linux-Mandrake
- Patch0: regenerate and use correct LessTif includes and libs
- Patch2: use mkstemp() instead of dangerouns tmpnam()

* Mon Apr  9 2001 Yves Duret <yduret@mandrakesoft.com> 5.1.1-13mdk
- macros : %%make
- s/Copyright/License/
- rename nc to ncl according to http://www.nedit.org/faq/sect_bugs.shtml#N1140

* Wed Mar 28 2001 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 5.1.1-12mdk
- Added manpage for the client (nc)
- Cleaned up specfile

* Tue Feb 20 2001 Matthias Badaire <mbadaire@mandrakesoft.com> 5.1.1-11mdk
- specfile cleanup
- move binaries to standard /usr/bin

* Sat Dec 23 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 5.1.1-10mdk
- patched preferences.c so that it won't fail on missing the stdio.h include.

* Mon Oct 02 2000 Daouda Lo <daouda@mandrakesoft.com> 5.1.1-9mdk
- icons should be transparents
- provide large icon
- more macrozif..

* Mon Oct 02 2000 Jeff Garzik <jgarzik@mandrakesoft.com> 5.1.1-8mdk
- Include docs.
- Install man page.
- Include RPM_OPT_FLAGS in CFLAGS.

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 5.1.1-7mdk
- automatically added BuildRequires

* Fri Aug 04 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 5.1.1-6mdk
- rebuild it with macros

* Wed May 24 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 5.1.1-5mdk
- BuildRequires: lesstif-devel
- Use tmppath macros.

* Tue May 09 2000 Daouda Lo <daouda@mandrakesoft.com> 5.1.1-4mdk
- 32x32 icon 
- menu entry was messed up in %files section 

* Tue Apr 11 2000 Daouda Lo <daouda@mandrakesoft.com> 5.1.1-3mdk
- add icon.

* Thu Apr 06 2000 Daouda Lo <daouda@mandrasoft.com> 5.1.1-1mdk
- first release for Linux Mandrake
- located in Office group