From 7ed48ef04e591b47fec447c529334b54331a101c Mon Sep 17 00:00:00 2001 From: undefine Date: Tue, 30 Nov 2004 03:58:06 +0000 Subject: [PATCH 1/1] =?utf8?q?-=20initital=20version=20by=20Przemys=C5=82a?= =?utf8?q?w=20Bia=C5=82ek=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Changed files: eg-gcc34.patch -> 1.1 eg.spec -> 1.1 --- eg-gcc34.patch | 42 ++++++++++++++++++++++++++++++++++++++++++ eg.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 eg-gcc34.patch create mode 100644 eg.spec diff --git a/eg-gcc34.patch b/eg-gcc34.patch new file mode 100644 index 0000000..4bb4e02 --- /dev/null +++ b/eg-gcc34.patch @@ -0,0 +1,42 @@ +diff -ru eg-1.00.orig/eg.c eg-1.00/eg.c +--- eg-1.00.orig/eg.c 2000-07-04 15:18:49.000000000 +0200 ++++ eg-1.00/eg.c 2004-11-29 22:22:15.146705152 +0100 +@@ -174,24 +174,23 @@ + uname( &utsn ); + + printf( "Expert Guide Version " EG_VERSION "\n\n" +- "\ +- Expert Guide - A Text Mode Norton Guide Reader +- Copyright (C) 1997,1998,1999,2000 David A Pearson ++ ++ "Expert Guide - A Text Mode Norton Guide Reader\n" ++ "Copyright (C) 1997,1998,1999,2000 David A Pearson\n\n" + +- This program is free software; you can redistribute it and/or modify +- it under the terms of the GNU General Public License as published by +- the Free Software Foundation; either version 2 of the license, or +- (at your option) any later version. ++ "This program is free software; you can redistribute it and/or modify\n" ++ "it under the terms of the GNU General Public License as published by\n" ++ "the Free Software Foundation; either version 2 of the license, or \n" ++ "(at your option) any later version.\n\n" + +- This program is distributed in the hope that it will be useful, +- but WITHOUT ANY WARRANTY; without even the implied warranty of +- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +- GNU General Public License for more details. ++ "This program is distributed in the hope that it will be useful,\n" ++ "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" ++ "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" ++ "GNU General Public License for more details.\n" + +- You should have received a copy of the GNU General Public License +- along with this program; if not, write to the Free Software +- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +-\n" ); ++ "You should have received a copy of the GNU General Public License\n" ++ "along with this program; if not, write to the Free Software\n" ++ "Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n\n"); + + printf( "System details:\n" + "\tSystem.......: %s %s\n" diff --git a/eg.spec b/eg.spec new file mode 100644 index 0000000..859e195 --- /dev/null +++ b/eg.spec @@ -0,0 +1,45 @@ +Summary: Norton Guide reader for GNU/Linux +Summary(pl): Czytnik plików Norton Guide dla GNU/Linuxa +Name: eg +Version: 1.00 +Release: 1 +License: GPL +Group: Applications +Source0: http://www.davep.org/norton-guides/%{name}-%{version}.tar.gz +# Source0-md5: 8c7a5b75fbc670edd01821e8bcc9297c +Patch0: %{name}-gcc34.patch +BuildRequires: slang-devel +URL: http://www.davep.org/norton-guides/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + + +%description +Expert Guide is a text based Norton Guide reader. + +%description -l pl +Expert Guide jest tekstowym czytnikiem plików w formacie Norton Guide. + +%prep +%setup -q +%patch0 -p1 + +%build +%{__make} CFLAGS="%{rpmcflags}" + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/norton-guides} + +install eg $RPM_BUILD_ROOT%{_bindir} +install eg.1 $RPM_BUILD_ROOT%{_mandir}/man1 +install default-guide/eg.ng $RPM_BUILD_ROOT%{_datadir}/norton-guides/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc BUGS Changes README TODO +%attr(755,root,root) %{_bindir}/eg +%{_mandir}/man1/* +%{_datadir}/norton-guides -- 2.43.0