Add %{libnode_name} variable.
This commit is contained in:
parent
352f592518
commit
3b595554f4
19
libnode.spec
19
libnode.spec
@ -2,6 +2,9 @@ Name: libnode
|
|||||||
Version: 2.0.5
|
Version: 2.0.5
|
||||||
Release: 1
|
Release: 1
|
||||||
|
|
||||||
|
%define libnode_name %{name}-%{version}-%{release}
|
||||||
|
%define source %{libnode_name}.src.tgz
|
||||||
|
|
||||||
Summary: Manages generic list and/or tree node structures
|
Summary: Manages generic list and/or tree node structures
|
||||||
Copyright: GPL
|
Copyright: GPL
|
||||||
Group: Application/Utilitaires
|
Group: Application/Utilitaires
|
||||||
@ -9,9 +12,9 @@ Distribution: Rx3 OpenSource
|
|||||||
Vendor: Rx3
|
Vendor: Rx3
|
||||||
Packager: arnaud.gibert@rx3.net
|
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/
|
Url: http://www.rx3.org/dvp/libnode/download/
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
BuildRoot: %{_tmppath}/%{libnode_name}-buildroot
|
||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -19,32 +22,28 @@ Manages generic list and/or tree node structures
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
%define source %{name}-%{version}-%{release}.tgz
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
/usr
|
/usr
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
rm -rf libnode-2.0.4-1
|
rm -rf %{libnode_name}
|
||||||
tar -xzvvf /usr/src/RPM/SOURCES/%{source}
|
tar -xzvvf /usr/src/RPM/SOURCES/%{source}
|
||||||
cd libnode-2.0.4-1
|
cd %{libnode_name}
|
||||||
make clean
|
make clean
|
||||||
make all
|
make all
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd libnode-2.0.4-1
|
cd %{libnode_name}
|
||||||
make install ROOT=$RPM_BUILD_ROOT
|
make install ROOT=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf libnode-2.0.4-1
|
rm -rf %{libnode_name}
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user