- adapterized and made spec %%debug ready or added using %%rpm*flags macros
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 2 May 2001 02:43:04 +0000 (02:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    elvis.spec -> 1.26

elvis.spec

index e427910..9d97807 100644 (file)
@@ -5,8 +5,9 @@ Version:        2.2c
 Release:       1
 Copyright:     Artistic License
 Group:         Applications/Editors
-Group(pt):     X11/Aplicações/Editores
+Group(de):     Applikationen/Editors
 Group(pl):     Aplikacje/Edytory
+Group(pt):     Aplicações/Editores
 Source0:       ftp://ftp.cs.pdx.edu/pub/elvis/unreleased/%{name}-%{version}.tar.gz
 BuildRequires: ncurses-devel >= 5.0
 BuildRequires: ncurses-static
@@ -14,7 +15,7 @@ BuildRequires:        XFree86-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     elvis-X11
 
-%define                _libdir %{_datadir}
+%define                _libdir         %{_datadir}
 
 %description
 Vi clone.
@@ -27,8 +28,9 @@ posiada bogate mo
 Summary:       Static elvis
 Summary(pl):   elvis skompilowany statycznie
 Group:         Applications/Editors
-Group(pt):     X11/Aplicações/Editores
+Group(de):     Applikationen/Editors
 Group(pl):     Aplikacje/Edytory
+Group(pt):     Aplicações/Editores
 Provides:      vi
 Obsoletes:     vi
 
@@ -44,18 +46,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
@@ -66,16 +68,15 @@ LDFLAGS="-s";export LDFLAGS
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/{bin,%{_bindir},%{_mandir}/man1,%{_datadir}/elvis}
 
-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 .
+mv -f lib/license .
 install        lib/* $RPM_BUILD_ROOT%{_libdir}/elvis
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
-       license BUGS
+gzip -9nf license BUGS
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.0487 seconds and 4 git commands to generate.