70afc02
Summary: A GUI text editor for systems with X
9749a67
Name: nedit
9749a67
Version: 5.5
70afc02
Release: 16%{?dist}
9749a67
Source: http://nedit.org/ftp/v5_5/nedit-%{version}-src.tar.bz2
9749a67
Source1: nedit.desktop
9749a67
Source2: nedit-icon.png
9749a67
Patch0: nedit-5.4-security.patch
9749a67
Patch1: nedit-5.4-makefiles.patch
9749a67
Patch2: nedit-5.5-utf8.patch
9749a67
Patch3: nedit-5.5-motif223.patch
9749a67
Patch4: nedit-5.5-varfix.patch
dab5638
Patch5: nedit-5.5-nc-manfix.patch
8594d09
Patch6: nedit-5.5-visfix.patch
70afc02
Patch7: nedit-5.5-nocsh.patch
70afc02
Patch8: nedit-5.5-scroll.patch
9749a67
URL: http://nedit.org
70afc02
License: GPLv2
9749a67
Group: Applications/Editors
82c7eec
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
70afc02
BuildRequires: openmotif-devel, libXau-devel, libXpm-devel, libXmu-devel
70afc02
BuildRequires: desktop-file-utils
9749a67
9749a67
%description
70afc02
NEdit is a GUI text editor for the X Window System. NEdit is
9749a67
very easy to use, especially if you are familiar with the
9749a67
Macintosh(TM) or Microsoft(TM) Windows(TM) style of interface.
9749a67
9749a67
%prep
9749a67
%setup -q
9749a67
%patch0 -p1 -b .security
9749a67
%patch1 -p1 -b .makefiles
9749a67
%patch2 -p1 -b .utf8
9749a67
%patch3 -p1 -b .motif223
9749a67
%patch4 -p1 -b .varfix
dab5638
%patch5 -p1 -b .nc-manfix
8594d09
%patch6 -p1 -b .visfix
70afc02
%patch7 -p1 -b .nocsh
70afc02
%patch8 -p1 -b .scroll
70afc02
for file in README doc/nedit.doc; do
70afc02
  iconv -f latin1 -t utf8 < $file > $file.utf8
70afc02
  touch -r $file $file.utf8
70afc02
  mv $file.utf8 $file
70afc02
done
9749a67
9749a67
%build
70afc02
make linux C_OPT_FLAGS="$RPM_OPT_FLAGS"
9749a67
9749a67
%install
9749a67
rm -rf $RPM_BUILD_ROOT
9749a67
dab5638
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
dab5638
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
dab5638
mv source/nc source/nedit-client
ccdab84
install -m 755 source/nedit source/nedit-client $RPM_BUILD_ROOT%{_bindir}
70afc02
install -p -m 644 doc/nedit.man $RPM_BUILD_ROOT%{_mandir}/man1/nedit.1x
dab5638
mv doc/nc.man doc/nedit-client.man
70afc02
install -p -m 644 doc/nedit-client.man $RPM_BUILD_ROOT%{_mandir}/man1/nedit-client.1x
70afc02
70afc02
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
70afc02
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/nedit.png
70afc02
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
70afc02
desktop-file-install --vendor fedora \
70afc02
        --dir $RPM_BUILD_ROOT%{_datadir}/applications \
70afc02
        --add-category "Development;" \
70afc02
        %{SOURCE1}
9749a67
9749a67
%clean
9749a67
rm -rf $RPM_BUILD_ROOT
9749a67
70afc02
%post
70afc02
touch --no-create %{_datadir}/icons/hicolor || :
70afc02
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
70afc02
70afc02
%postun
70afc02
touch --no-create %{_datadir}/icons/hicolor || :
70afc02
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
70afc02
9749a67
%files
9749a67
%defattr(-,root,root)
9749a67
%doc doc/nedit.doc README ReleaseNotes
dab5638
%{_mandir}/*/*
dab5638
%{_bindir}/*
9749a67
%{_prefix}/share/applications/*
70afc02
%{_datadir}/icons/hicolor/
9749a67
9749a67
%changelog
70afc02
* Sun Jan  6 2008 Patrice Dumas <pertusus@free.fr> 5.5-16
70afc02
- minor cleanups
70afc02
70afc02
* Tue Oct 30 2007 Jindrich Novy <jnovy@redhat.com> 5.5-15
70afc02
- make mouse wheel scrolling compatible with lesstif (#354591)
70afc02
70afc02
* Mon Oct 29 2007 Jindrich Novy <jnovy@redhat.com> 5.5-14
70afc02
- don't use /bin/csh but /bin/sh as default shell (#355441)
70afc02
70afc02
* Fri Oct 26 2007 Jindrich Novy <jnovy@redhat.com> 5.5-13
70afc02
- spec cleanup
70afc02
70afc02
* Thu Aug 23 2007 Jindrich Novy <jnovy@redhat.com> 5.5-12
70afc02
- update License
70afc02
- rebuild for BuildID
70afc02
70afc02
* Mon Jan  8 2007 Jindrich Novy <jnovy@redhat.com> 5.5-11
82c7eec
- explicitly depend on lesstif to avoid nedit crashes
82c7eec
  (binary lesstif/openmotif incompatibilities) (#221535)
82c7eec
- fix buildroot
82c7eec
494783e
* Sat Sep  2 2006 Jindrich Novy <jnovy@redhat.com> 5.5-10.fc6
494783e
- remove dependency on openmotif and build against lesstif
494783e
- add missing libXmu-devel dependency
494783e
8594d09
* Wed Aug 30 2006 Jindrich Novy <jnovy@redhat.com> 5.5-9
8594d09
- don't use the autodetected, but default visual to avoid
8594d09
  crashes (#199770)
8594d09
ccdab84
* Wed May 24 2006 Jindrich Novy <jnovy@redhat.com> 5.5-8
ccdab84
- don't strip binaries so that we have usable debuginfo
ccdab84
  nedit package (#192607)
ccdab84
643e4d7
* Sun Mar  5 2006 Jindrich Novy <jnovy@redhat.com> 5.5-7
643e4d7
- rebuild
643e4d7
c39d7c6
* Thu Dec 16 2005 Jindrich Novy <jnovy@redhat.com> 5.5-6
c39d7c6
- fix openmotif dependencies
c39d7c6
- build with modular X
382b28a
dab5638
* Mon Oct 10 2005 Jindrich Novy <jnovy@redhat.com> 5.5-5
dab5638
- update nedit file locations to new xorg standards (#167208, #170937)
dab5638
- rename nc to nedit-client to avoid conflict with netcat and
dab5638
  modify its manpage to reflect this
dab5638
- fix License to GPL
dab5638
fc05d46
* Wed Jul 27 2005 Jindrich Novy <jnovy@redhat.com> 5.5-4
fc05d46
- initial Extras built
fc05d46
9749a67
* Mon Jan 20 2005 Jindrich Novy <jnovy@redhat.com> 5.5-3
9749a67
- prepare the spec and desktop file for Extras inclusion
9749a67
9749a67
* Wed Jan 12 2005 Jindrich Novy <jnovy@redhat.com> 5.5-2
9749a67
- fix usage of uninitialized variable (#144790)
9749a67
9749a67
* Mon Dec 27 2004 Jindrich Novy <jnovy@redhat.com> 5.5-1
9749a67
- new version 5.5
9749a67
9749a67
* Mon Sep 20 2004 Jindrich Novy <jnovy@redhat.com>
9749a67
- added nedit icon to be present in menus #131601
9749a67
- updated spec to put it to the right place
9749a67
- icon made by Joor Loohuis (joor@users.sourceforge.net)
9749a67
- the icon processed by Peter Vrabec (pvrabec@usu.cz)
9749a67
9749a67
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
9749a67
- rebuilt
9749a67
9749a67
* Wed Mar 17 2004 Thomas Woerner <twoerner@redhat.com> 5.4-1
9749a67
- new version 5.4
9749a67
9749a67
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
9749a67
- rebuilt
9749a67
9749a67
* Fri Dec  5 2003 Tim Waugh <twaugh@redhat.com>
9749a67
- Don't explicitly require openmotif, since rpm does library dependencies
9749a67
  automatically.
9749a67
- Binary package doesn't require desktop-file-install.
9749a67
9749a67
* Fri Dec  5 2003 Tim Waugh <twaugh@redhat.com> 5.3-6
9749a67
- Add ugly hack to work around openmotif's lack of UTF-8 support (bug #75189).
9749a67
- Back-port 5.4RC2 fix for uninitialized variable (bug #110898).
9749a67
9749a67
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
9749a67
- rebuilt
9749a67
9749a67
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
9749a67
- rebuilt
9749a67
9749a67
* Fri Nov  8 2002 Tim Waugh <twaugh@redhat.com> 5.3-3
9749a67
- Handle X11 libdir issue.
9749a67
9749a67
* Tue Oct 22 2002 Tim Waugh <twaugh@redhat.com> 5.3-2
9749a67
- Remove original desktop file when installing.
9749a67
- Fix desktop file icon (bug #61677).
9749a67
9749a67
* Wed Jul 24 2002 Karsten Hopp <karsten@redhat.de>
9749a67
- 5.3
9749a67
- use desktop-file-utils (#69461)
9749a67
- redo all patches
9749a67
9749a67
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
9749a67
- automated rebuild
9749a67
9749a67
* Thu May 23 2002 Tim Powers <timp@redhat.com>
9749a67
- automated rebuild
9749a67
9749a67
* Fri Mar 22 2002 Tim Powers <timp@redhat.com>
9749a67
- rebuilt against openmotif-2.2.2
9749a67
9749a67
* Fri Mar  1 2002 Than Ngo <than@redhat.com> 1.2-1
9749a67
- update to 1.2
9749a67
- cleanup patch files
9749a67
9749a67
* Thu Jan 17 2002 Than Ngo <than@redhat.com> 5.1.1-13
9749a67
- rebuild against openmotif
9749a67
9749a67
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
9749a67
- automated rebuild
9749a67
9749a67
* Thu Oct 25 2001 Bill Nottingham <notting@redhat.com>
9749a67
- 0 != NULL. lather, rinse, repeat. (#54943)
9749a67
9749a67
* Mon Aug 20 2001 Bernhard Rosenkraenzer <bero@redhat.com>
9749a67
- Fix crash while printing (#45149)
9749a67
  I still think removing the package would be the better fix, though.
9749a67
9749a67
* Sun Jun 10 2001 Than Ngo <than@redhat.com>
9749a67
- requires lesstif-devel
9749a67
9749a67
* Tue May 22 2001 Tim Powers <timp@redhat.com>
9749a67
- patched to use lesstif
9749a67
9749a67
* Fri Apr 27 2001 Bernhard Rosenkraenzer <bero@redhat.com>
9749a67
- Fix security bug, use mkstemp()
9749a67
9749a67
* Fri Oct 13 2000 Preston Brown <pbrown@redhat.com>
9749a67
- .desktop file added
9749a67
9749a67
* Mon Jul 24 2000 Prospector <prospector@redhat.com>
9749a67
- rebuilt
9749a67
9749a67
* Mon Jul 10 2000 Tim Powers <timp@redhat.com>
9749a67
- rebuilt
9749a67
9749a67
* Sat Jun 17 2000 Than Ngo <than@redhat.de>
9749a67
- rebuilt against openmotif-2.1.30
9749a67
- use PRM macros
9749a67
9749a67
* Tue May 16 2000 Tim Powers <timp@redhat.com>
9749a67
- updated to 5.1.1
9749a67
- updated URL and source location
9749a67
9749a67
* Wed Aug 18 1999 Tim Powers <timp@redhat.com>
9749a67
- excludearch alpha
9749a67
9749a67
* Mon Jul 19 1999 Tim Powers <timp@redhat.com>
9749a67
- rebuilt for 6.1
9749a67
9749a67
* Thu Apr 15 1999 Michael Maher <mike@redhat.com>
9749a67
- built package for 6.0
9749a67
9749a67
* Wed Oct 14 1998 Michael Maher <mike@redhat.com>
9749a67
- built package for 5.2
9749a67
9749a67
* Thu May 21 1998 Cristian Gafton <gafton@redhat.com>
9749a67
- upgraded to 5.0.2
9749a67
9749a67
* Thu Nov 20 1997 Otto Hammersmith <otto@redhat.com>
9749a67
- added wmconfig
9749a67
9749a67
* Mon Nov 17 1997 Otto Hammersmith <otto@redhat.com>
9749a67
- added changelog
9749a67
- fixed src url
9749a67
- added URL tag