11621c6
Summary: A GUI text editor for systems with X
9749a67
Name: nedit
cb40d89
Version: 5.7
96b5717
Release: 17%{?dist}
cb40d89
Source: http://sourceforge.net/projects/nedit/files/nedit-source/nedit-%{version}-src.tar.gz
9749a67
Source1: nedit.desktop
9749a67
Source2: nedit-icon.png
68701e4
Patch0: nedit-5.5-security.patch
cb40d89
# https://sourceforge.net/p/nedit/git/ci/838292fe4034fc4ab4567f1d87193a4e6a57eca0/
cb40d89
Patch1: 0001-Force-C89-on-gcc-linux-to-prevent-accidental-changes.patch
cb40d89
# Append to Fedora's C_OPT_FLAGS and LD_OPT_FLAGS rather than overriding them.
cb40d89
Patch2: nedit-5.7-makefiles.patch
cb40d89
Patch3: nedit-5.6-utf8.patch
cb40d89
Patch5: nedit-5.7-nc-manfix.patch
8594d09
Patch6: nedit-5.5-visfix.patch
ec4ec69
Patch8: nedit-5.5-scroll.patch
eb2e871
URL: http://sourceforge.net/projects/nedit/
5877476
License: GPLv2
bed6cc0
Requires: xorg-x11-fonts-ISO8859-1-75dpi
82d9ef6
BuildRequires: make
503be0d
BuildRequires:  gcc
bed6cc0
BuildRequires: motif-devel, libXau-devel, libXpm-devel, libXmu-devel
11621c6
BuildRequires: desktop-file-utils
cb40d89
# Needed for generating manpages; see doc/Makefile
cb40d89
BuildRequires: perl(Pod::Man)
9749a67
9749a67
%description
11621c6
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
3b9fd92
Macintosh or Microsoft Windows style of interface.
9749a67
9749a67
%prep
9749a67
%setup -q
Software Management Team 3a51d57
%patch -P0 -p1 -b .security
Software Management Team 3a51d57
%patch -P1 -p1 -b .c89
Software Management Team 3a51d57
%patch -P2 -p1 -b .makefiles
Software Management Team 3a51d57
%patch -P3 -p1 -b .utf8
Software Management Team 3a51d57
%patch -P5 -p1 -b .nc-manfix
Software Management Team 3a51d57
%patch -P6 -p1 -b .visfix
Software Management Team 3a51d57
%patch -P8 -p1 -b .scroll
9749a67
9749a67
%build
cb40d89
pushd doc
cb40d89
# Upstream really doesn't want you generating the manpages, but they forgot to
cb40d89
# include the manpages in 5.7. So generate them.
cb40d89
make VERSION='NEdit 5.7' man
cb40d89
popd
cfe2a0d
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}
cfe2a0d
install -p -m 644 doc/nedit.man $RPM_BUILD_ROOT%{_mandir}/man1/nedit.1x
dab5638
mv doc/nc.man doc/nedit-client.man
cfe2a0d
install -p -m 644 doc/nedit-client.man $RPM_BUILD_ROOT%{_mandir}/man1/nedit-client.1x
11621c6
cfe2a0d
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
cfe2a0d
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/nedit.png
cfe2a0d
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
f958d11
desktop-file-install \
cfe2a0d
        --dir $RPM_BUILD_ROOT%{_datadir}/applications \
cfe2a0d
        --add-category "Development;" \
cfe2a0d
        %{SOURCE1}
9749a67
9749a67
%files
Jindrich Novy ad7f727
%doc README ReleaseNotes
dab5638
%{_mandir}/*/*
dab5638
%{_bindir}/*
9749a67
%{_prefix}/share/applications/*
cfe2a0d
%{_datadir}/icons/hicolor/
9749a67
9749a67
%changelog
96b5717
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-17
96b5717
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
96b5717
9880cdc
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-16
9880cdc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
9880cdc
8010043
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-15
8010043
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
8010043
26164f9
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-14
26164f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
26164f9
e59f808
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-13
e59f808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
e59f808
f834790
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-12
f834790
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f834790
8f0556f
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-11
8f0556f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8f0556f
5c508ec
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-10
5c508ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5c508ec
fbbf899
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-9
fbbf899
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
fbbf899
6b03ef0
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-8
6b03ef0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6b03ef0
e316ba7
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-7
e316ba7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e316ba7
ba7afc1
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-6
ba7afc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ba7afc1
d56c9a8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-5
d56c9a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d56c9a8
438f075
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-4
438f075
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
438f075
ba44082
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-3
ba44082
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ba44082
41cd1f4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-2
41cd1f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
41cd1f4
cb40d89
* Sun Mar 12 2017 Mike DePaulo <mikedep333@gmail.com> - 5.7-1
cb40d89
- Update to 5.7
cb40d89
- Backport upstream commit to force C89 "to prevent accidental changes to C90/GNU dialect"
cb40d89
08b96fa
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.6-4
08b96fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
08b96fa
61ef101
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6-3
61ef101
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
61ef101
bed6cc0
* Fri Oct 02 2015 Jon Ciesla <limburgher@gmail.com> - 5.6-2
bed6cc0
- Move from lesstif to motif
bed6cc0
Jindrich Novy ad7f727
* Wed Jun 17 2015 Jindrich Novy <novyjindrich@gmail.com> - 5.6
Jindrich Novy ad7f727
- update to 5.6
Jindrich Novy ad7f727
dfd91e1
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-33
dfd91e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
dfd91e1
8035dee
* Mon Jun 09 2014 Jindrich Novy <jnovy@redhat.com> 5.5-32
8035dee
- fix broken build because of missing format string (#1106275)
8035dee
902a753
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-31
902a753
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
902a753
dbb9033
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-30
dbb9033
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
dbb9033
f958d11
* Mon Apr 29 2013 Jon Ciesla <limburgher@gmail.com> - 5.5-29
f958d11
- Drop desktop vendor tag.
f958d11
1d455ab
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-28
1d455ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1d455ab
f7c8863
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-27
f7c8863
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f7c8863
496c8d3
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-26
496c8d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
496c8d3
c9f799f
* Wed Feb  9 2011 Jindrich Novy <jnovy@redhat.com> 5.5-25
c9f799f
- regenerate makefiles patch
c9f799f
ed300c4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-24
ed300c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ed300c4
3b9fd92
* Fri Mar 19 2010 Jindrich Novy <jnovy@redhat.com> 5.5-23
3b9fd92
- remove (TM) from package description (#542473)
3b9fd92
1c74b08
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-22
1c74b08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1c74b08
3a1f268
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-21
3a1f268
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3a1f268
85685ae
* Mon Oct 13 2008 Jindrich Novy <jnovy@redhat.com> 5.5-20
85685ae
- BR: xorg-x11-fonts-ISO8859-1 to avoid incorrect font
85685ae
  substitutions (#464945)
85685ae
68701e4
* Fri Sep 26 2008 Jindrich Novy <jnovy@redhat.com> 5.5-19
68701e4
- rediff security patch to be applicable with zero fuzz
68701e4
2178f70
* Mon Feb 25 2008 Jindrich Novy <jnovy@redhat.com> 5.5-18
2178f70
- manual rebuild because of gcc-4.3 (#434192)
2178f70
b75cb09
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.5-17
b75cb09
- Autorebuild for GCC 4.3
b75cb09
cfe2a0d
* Sun Jan  6 2008 Patrice Dumas <pertusus@free.fr> 5.5-16
cfe2a0d
- minor cleanups
cfe2a0d
ec4ec69
* Tue Oct 30 2007 Jindrich Novy <jnovy@redhat.com> 5.5-15
ec4ec69
- make mouse wheel scrolling compatible with lesstif (#354591)
ec4ec69
58f618a
* Mon Oct 29 2007 Jindrich Novy <jnovy@redhat.com> 5.5-14
58f618a
- don't use /bin/csh but /bin/sh as default shell (#355441)
58f618a
11621c6
* Fri Oct 26 2007 Jindrich Novy <jnovy@redhat.com> 5.5-13
11621c6
- spec cleanup
11621c6
11621c6
* Thu Aug 23 2007 Jindrich Novy <jnovy@redhat.com> 5.5-12
5877476
- update License
5877476
- rebuild for BuildID
5877476
11621c6
* Mon Jan  8 2007 Jindrich Novy <jnovy@redhat.com> 5.5-11
1915eef
- explicitly depend on lesstif to avoid nedit crashes
1915eef
  (binary lesstif/openmotif incompatibilities) (#221535)
1915eef
- fix buildroot
1915eef
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
Jindrich Novy ad7f727
* Fri 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
Jindrich Novy ad7f727
* Thu 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