From 3b595554f4a5a631f18ab6292f2afca00d5b9336 Mon Sep 17 00:00:00 2001 From: agibert Date: Wed, 16 Jul 2003 23:18:09 +0000 Subject: [PATCH] Add %{libnode_name} variable. --- libnode.spec | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/libnode.spec b/libnode.spec index 63c0eb0..a050a49 100644 --- a/libnode.spec +++ b/libnode.spec @@ -2,6 +2,9 @@ Name: libnode Version: 2.0.5 Release: 1 +%define libnode_name %{name}-%{version}-%{release} +%define source %{libnode_name}.src.tgz + Summary: Manages generic list and/or tree node structures Copyright: GPL Group: Application/Utilitaires @@ -9,9 +12,9 @@ Distribution: Rx3 OpenSource Vendor: Rx3 Packager: arnaud.gibert@rx3.net -Source: ftp://ftp.rx3.org/pub/%{name}-%{version}-%{release}.tgz +Source: ftp://ftp.rx3.org/pub/%{source} Url: http://www.rx3.org/dvp/libnode/download/ -BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot +BuildRoot: %{_tmppath}/%{libnode_name}-buildroot AutoReqProv: no %description @@ -19,32 +22,28 @@ Manages generic list and/or tree node structures -%define source %{name}-%{version}-%{release}.tgz - - - %files /usr %build -rm -rf libnode-2.0.4-1 +rm -rf %{libnode_name} tar -xzvvf /usr/src/RPM/SOURCES/%{source} -cd libnode-2.0.4-1 +cd %{libnode_name} make clean make all %install -cd libnode-2.0.4-1 +cd %{libnode_name} make install ROOT=$RPM_BUILD_ROOT %clean -rm -rf libnode-2.0.4-1 +rm -rf %{libnode_name} rm -rf $RPM_BUILD_ROOT