]> git.pld-linux.org Git - packages/elvis.git/blobdiff - elvis.spec
- massive attack s/pld.org.pl/pld-linux.org/
[packages/elvis.git] / elvis.spec
index e427910225a64131450139b75fb157ab2b4039ec..c96bc1d0379096363e265ef5e0d7a49130586c18 100644 (file)
@@ -1,23 +1,23 @@
 Summary:       Elvis is a clone of vi/ex
 Summary(pl):   Elvis jest klonem edytora vi
 Name:          elvis
-Version:       2.2c
+Version:       2.2h
 Release:       1
-Copyright:     Artistic License
+License:       Artistic (see LICENSE)
 Group:         Applications/Editors
-Group(pt):     X11/Aplicações/Editores
-Group(pl):     Aplikacje/Edytory
 Source0:       ftp://ftp.cs.pdx.edu/pub/elvis/unreleased/%{name}-%{version}.tar.gz
+BuildRequires: ORBit-devel
+BuildRequires: XFree86-devel
 BuildRequires: ncurses-devel >= 5.0
 BuildRequires: ncurses-static
-BuildRequires: XFree86-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     elvis-X11
 
-%define                _libdir %{_datadir}
+%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,
@@ -27,13 +27,13 @@ posiada bogate mo
 Summary:       Static elvis
 Summary(pl):   elvis skompilowany statycznie
 Group:         Applications/Editors
-Group(pt):     X11/Aplicações/Editores
-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
+The classic unix /bin/vi - small, statically linked editor which is
 useful as a rescue tool.
 
 %description static -l pl
@@ -44,18 +44,18 @@ kt
 %setup -q
 
 %build
-CC="cc $RPM_OPT_FLAGS"; export CC
-LDFLAGS="-static -s"; export LDFLAGS
+CC="%{__cc} %{rpmcflags}"; export CC
+LDFLAGS="-static %{rpmldflags}"
 %configure \
        --without-x \
        --datadir=%{_datadir}/elvis
        
 %{__make} LIBS="-ltinfo"
-mv elvis elvis.static
+mv -f elvis elvis.static
 
 %{__make} clean
 
-LDFLAGS="-s";export LDFLAGS
+LDFLAGS="%{rpmldflags}"
 %configure \
        --with-x \
        --datadir=%{_datadir}/elvis
@@ -64,25 +64,23 @@ LDFLAGS="-s";export LDFLAGS
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{bin,%{_bindir},%{_mandir}/man1,%{_datadir}/elvis}
+install -d $RPM_BUILD_ROOT/{bin,%{_bindir},%{_mandir}/man1,%{_datadir}/elvis/themes}
 
-install -s elvis ref $RPM_BUILD_ROOT%{_bindir}
-install -s elvis.static $RPM_BUILD_ROOT/bin/vi
+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}/man1/* \
-       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/*
This page took 0.07065 seconds and 4 git commands to generate.