Add %{libnode_name} variable.

This commit is contained in:
agibert 2003-07-16 23:18:09 +00:00
parent 352f592518
commit 3b595554f4

View File

@ -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