X-Git-Url: http://git.pld-linux.org/?p=packages%2Felvis.git;a=blobdiff_plain;f=elvis.spec;h=602dc2c0915e7af1e11ab03d6666fd11f1ff8ca9;hp=567e92962f5c8d9ef07ec439f3152fbfcdaebc35;hb=69642a89ddaf79ce424e04429526658b4a970189;hpb=5e30d3375f59e9468e9db11fc704b54c601a9b99 diff --git a/elvis.spec b/elvis.spec index 567e929..602dc2c 100644 --- a/elvis.spec +++ b/elvis.spec @@ -1,98 +1,92 @@ Summary: Elvis is a clone of vi/ex Summary(pl): Elvis jest klonem edytora vi Name: elvis -Version: 2.1 +Version: 2.2h Release: 1 -Copyright: Artistic License +License: Artistic (see LICENSE) Group: Applications/Editors -Group(pl): Aplikacje/Edytory -Source: ftp://ftp.cs.pdx.edu/pub/elvis/%{name}-%{version}.tar.gz -BuildPrereq: ncurses-devel -BuildPrereq: XFree86-devel -BuildRoot: /tmp/%{name}-%{version}-root +Source0: ftp://ftp.cs.pdx.edu/pub/elvis/unreleased/%{name}-%{version}.tar.gz +# Source0-md5: bb2720fe0b51c72336ff6fcf9920d71c +BuildRequires: ORBit-devel +BuildRequires: XFree86-devel +BuildRequires: ncurses-devel >= 5.0 +BuildRequires: ncurses-static +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: elvis-X11 +%define _libdir %{_datadir} + %description -Vi clone. +Elvis is one of the most popular Vi clones. Its swift, well +documented and has many features. %description -l pl -Elvis to jeden z popularniejszych klonów edytora vi. Jest szybki, posiada -bogate mo¿liwo¶ci i bardzo dobr± dokumentacjê. +Elvis to jeden z popularniejszych klonów edytora vi. Jest szybki, +posiada bogate mo¿liwo¶ci i bardzo dobr± dokumentacjê. %package static Summary: Static elvis Summary(pl): elvis skompilowany statycznie Group: Applications/Editors -Group(pl): Aplikacje/Edytory Provides: vi Obsoletes: vi +Obsoletes: vim-static +Obsoletes: nvi %description static -The classic unix /bin/vi - small, static compiled editor which is useful -as a rescue tool. +The classic unix /bin/vi - small, statically linked editor which is +useful as a rescue tool. %description static -l pl -Klasyczny unixowy /bin/vi - ma³y, skompilowany statycznie edytor, który -przydaje siê przy awarii systemu. +Klasyczny unixowy /bin/vi - ma³y, skompilowany statycznie edytor, +który przydaje siê przy awarii systemu. %prep %setup -q %build -CC="cc $RPM_OPT_FLAGS" LDFLAGS="-static -s" \ -./configure \ - --prefix=/usr \ +CC="%{__cc} %{rpmcflags}"; export CC +LDFLAGS="-static %{rpmldflags}" +%configure \ --without-x \ - %{_target} - -make LIBS="-lncurses" -mv elvis elvis.static + --datadir=%{_datadir}/elvis + +%{__make} LIBS="-ltinfo" +mv -f elvis elvis.static -make clean +%{__make} clean -CC="cc $RPM_OPT_FLAGS" LDFLAGS="-s" \ -./configure \ - --prefix=/usr \ +LDFLAGS="%{rpmldflags}" +%configure \ --with-x \ - %{_target} - -make LIBS="-lncurses -lX11 -L/usr/X11R6/lib" + --datadir=%{_datadir}/elvis + +%{__make} LIBS="-ltinfo -lX11 -L/usr/X11R6/lib" %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/{bin,usr/{bin,man/man1,lib/elvis}} +install -d $RPM_BUILD_ROOT/{bin,%{_bindir},%{_mandir}/man1,%{_datadir}/elvis/themes} -install -s elvis $RPM_BUILD_ROOT%{_bindir} -install -s elvis.static $RPM_BUILD_ROOT/bin/vi -install -s ref $RPM_BUILD_ROOT%{_bindir}/ -install lib/ref.man $RPM_BUILD_ROOT%{_mandir}/man1 +install elvis ref $RPM_BUILD_ROOT%{_bindir} +install elvis.static $RPM_BUILD_ROOT/bin/vi +install lib/*.man $RPM_BUILD_ROOT%{_mandir}/man1 rm -f lib/*.man -mv lib/license . -install lib/* $RPM_BUILD_ROOT%{_libdir}/elvis - -gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \ - license BUGS +mv -f lib/license LICENSE +install lib/*.* $RPM_BUILD_ROOT%{_libdir}/elvis +install lib/themes/* $RPM_BUILD_ROOT%{_libdir}/elvis/themes %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc {license,BUGS}.gz README.html +%doc LICENSE BUGS README.html %attr(755,root,root) %{_bindir}/elvis %attr(755,root,root) %{_bindir}/ref %{_mandir}/man1/* %{_libdir}/elvis %files static +%defattr(644,root,root,755) %attr(755,root,root) /bin/vi - -%changelog -* Wed Apr 28 1999 Tomasz K³oczko - [2.1-1] -- added BuildPrereq rules, -- added "Obsoletes: elvis-X11" (on contrib is avalaible this package). - -* Tue Apr 27 1999 Micha³ Kuratczyk -- built for PLD