File the.spec of Package the
#
# spec file for package the (Version 3.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: the
BuildRequires: flex ncurses-devel regina
Url: http://hessling-editor.sourceforge.net/
Version: 3.1
Release: 333
Summary: The Hessling Editor (VM/CMS xedit clone)
License: GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later
Group: Productivity/Editors/Other
#Autoreqprov: off
Source0: THE-3.1.tar.bz2
Source1: THE-3.1-a4.pdf
Patch0: THE-3.1-DESTDIR.diff
Patch1: THE-3.1-nostrictaliasing.diff
Patch2: THE-3.1-same-variable-used-twice.patch
Patch3: THE-3.1-open.diff
Patch64: THE-3.1-lib64.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
THE is a text editor that uses both command line commands and key
bindings to operate. It is intended to be similar to the VM/CMS System
Product Editor, XEDIT, and to Mansfield Software's, KEDIT.
Authors:
--------
Mark Hessling <M.Hessling@qut.edu.au>
%prep
%setup -q -n THE-3.1
%{suse_update_config}
%patch0 -p 1
if [ %_lib == lib64 ]; then
%patch64 -p1 -b .lib64
fi
%patch1 -p1
%patch2 -p1
%patch3 -p0
%build
./configure \
--prefix=/usr \
--mandir=%{_mandir} \
--with-ncurses \
--with-rexx=regina
make CFLAGS="$RPM_OPT_FLAGS"
%install
test -z "$RPM_BUILD_ROOT" || rm -rf $RPM_BUILD_ROOT
make install DESTDIR=${RPM_BUILD_ROOT}
cp -a %{S:1} .
%files
%defattr(-,root,root)
%doc FAQ INSTALL README THE_Help.txt
%doc TODO COPYING HISTORY the.man THE-3.1-a4.pdf
%doc app*.htm*
%doc appendix.*
%doc doc/*
/usr/bin/the
/usr/share/THE/
%{_mandir}/man1/the.1.gz
%changelog
* Sat Jan 12 2008 - coolo@suse.de
- fix build with glibc 2.7
* Thu Mar 29 2007 - meissner@suse.de
- added buildrequires ncurses-devel
* Thu Jan 18 2007 - ssommer@suse.de
- fix same variable used twice error
- renamed the-3.1.spec -> the.spec
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue May 10 2005 - meissner@suse.de
- use RPM_OPT_FLAGS. Fixed the bug the strict-aliasing
code exposed (now using short instead of short*).
* Fri May 21 2004 - ro@suse.de
- add -fno-strict-aliasing
* Mon Jan 12 2004 - adrian@suse.de
- added %%defattr
* Tue Aug 05 2003 - mge@suse.de
- fixed lib64 patch
* Tue Aug 05 2003 - mge@suse.de
- added pdf-documentation
* Tue May 27 2003 - ro@suse.de
- fix man-page installation and add man-page to filelist
* Tue Sep 17 2002 - ro@suse.de
- removed bogus self-provides
* Fri Aug 16 2002 - mge@suse.de
- fix building on 64bit
* Thu Aug 15 2002 - mge@suse.de
- update to 3.1
* Mon May 27 2002 - meissner@suse.de
- %%_lib fixes again. (coolos stuff did not work).
* Tue May 21 2002 - coolo@suse.de
- update config and add lib64 patch
* Thu May 10 2001 - mfabian@suse.de
- bzip2 sources
* Thu Jul 06 2000 - mge@suse.de
- patch for regina 2.0.0
* Sun Feb 13 2000 - mge@suse.de
- update to 3.0
- group tag
* Tue Dec 14 1999 - uli@suse.de
- added "#undef PPC" to the.h to avoid conflicts with PPC identifier
* Tue Oct 26 1999 - mge@suse.de
- moved /usr/THE to /usr/share/THE,
- removed useless "requires"
* Tue Oct 26 1999 - mge@suse.de
- initial SuSE-RPM