# # spec file for package joe # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: joe BuildRequires: ncurses-devel License: GPL-2.0+ Group: Productivity/Editors/Other AutoReqProv: on Version: 3.7 Release: 15 Summary: A Text Editor Url: http://sourceforge.net/projects/joe-editor Source0: http://downloads.sourceforge.net/joe-editor/%{name}-%{version}.tar.gz Source2: de.po Patch0: joe-3.1-terminate_buffer.patch Patch2: joe-3.1-fix_isblanck_argument.patch Patch3: joe-3.3-warnings.patch Patch5: joe-activate_po.patch.bz2 Patch6: joe-fr_trans.patch Patch7: joe-3.7-additional_key_mappings.patch Patch8: joe-3.7-spec_association.patch Patch9: joe-codecleanup.patch Patch10: joe-sigiot.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description JOE (Joe's Own Editor) is a freeware ASCII editor for UNIX. Joe is similar to most IBM PC text editors. The keyboard combinations are similar to WordStar[tm] and Turbo C. Some of Joe's features include: -full support of termcap and terminfo (useful for device-independent descriptions to control screen output) -optimized screen refresh like GNU Emacs (Joe can even be used at 2400 baud) -easy installation with all features for UNIX integration with vi: a marked block of text can be filtered through a UNIX command and wherever JOE accepts a filename parameter, the following can also be substituted: !command\t\t:to redirect from or to another command >>filename\t\t:to append onto an existing file filename,start,size\t:to edit a part of a file or device -\t\t\t:to use standard input/output When JOE has several files opened at the same time, each file is displayed in its own window. Additionally, JOE allows for shell windows from which the output of the executed commands are saved in a buffer, automatic filename completion (via TAB), help windows, undo and redo, and search and replace using regular expressions. Authors: -------- Joseph H. Allen Marek 'Marx' Grac %prep %setup -q %patch0 %patch2 %patch3 %patch5 %patch6 %patch7 %patch8 %patch9 %patch10 cp %{S:2} po # Convert Russian docs and locale from KOI8-R to UTF-8. for ru in man/ru/joe.1.in po/ru.po rc/jicerc.ru.in ; do iconv -f KOI8-R -t UTF-8 -o "${ru}.tmp" "${ru}" && \ mv -f "${ru}.tmp" "${ru}" done sed -i 's/charset=koi8-r/charset=UTF-8/' po/ru.po # Convert Ukrainian locale from KOI8-U to UTF-8. iconv -f KOI8-U -t UTF-8 po/uk.po | \ sed 's/charset=koi8-u/charset=UTF-8/' > po/uk.po.tmp && \ mv -f po/uk.po.tmp po/uk.po %build autoreconf -fi export CFLAGS="%{optflags} -W -Wno-unused" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --sysconfdir=%{_sysconfdir} \ --docdir=%{_defaultdocdir}/%name cd po make update-po make %install %makeinstall for i in jmacs jpico jstar rjoe; do ln -s joe.1.gz %{buildroot}%{_mandir}/man1/$i.1.gz done %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc %{_defaultdocdir}/%{name} %doc %{_mandir}/man1/* %doc %{_mandir}/*/man1/* %config %{_sysconfdir}/joe/* %dir %{_sysconfdir}/joe %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/lang %dir %{_mandir}/ru %dir %{_mandir}/ru/man1 %{_bindir}/* %{_datadir}/%{name}/charmaps %dir %{_datadir}/%{name}/syntax %config(noreplace) %{_datadir}/%{name}/syntax/* %lang(de) %{_datadir}/%{name}/lang/de.mo %lang(en) %{_datadir}/%{name}/lang/en@*.mo %lang(fr) %{_datadir}/%{name}/lang/fr.mo %lang(ru) %{_datadir}/%{name}/lang/ru.mo %lang(uk) %{_datadir}/%{name}/lang/uk.mo %changelog