Hello.
I am building a RPM package bundle base on a spec.
When I run separately abc-1.0-1.i386.rpm, my application file “abc” will appear in /usr/local/bin.
But when I run this bundle rpm, I see no file in /usr/local/bin folder although rpm shows a successful message.
What’s wrong with my spec? Please help me to try out this problem.
Thanks in advance.
MY SPEC HERE:
%define bundledir /tmp
Summary: abc tool
Name: abc
Version: 1.0
Release: 1
License: GPLv2
Group: Development/Tools
Source0: log4c-1.2.1-1.i386.rpm
Source1: abc-1.0-1.i386.rpm
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: i386
%description
abc tool
%prep
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{bundledir}
install -m644 %{S:0} $RPM_BUILD_ROOT%{bundledir}
install -m644 %{S:1} $RPM_BUILD_ROOT%{bundledir}
exit 0
%clean
%post
%if %{?_rpmlock_path:1}0
[ -f "%{_rpmlock_path}" ] && %{__rm} -f %{_rpmlock_path}
%endif
%{__rm} -f /var/lock/rpm/transaction
%{__rm} -f /var/run/yum.pid
rpm -Uvh %{_tmppath}/%{name}-%{version}-%{release}-root%{bundledir}/log4c-1.2.1-1.i386.rpm
rpm -Uvh %{_tmppath}/%{name}-%{version}-%{release}-root%{bundledir}/abc-1.0-1.i386.rpm
rpm -Uvh %{bundledir}/log4c-1.2.1-1.i386.rpm
rpm -Uvh %{bundledir}/abc-1.0-1.i386.rpm
hth
PS
Let me guess: have you perhaps ALSO looked to my yum-pull-update ?
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list