RPM package bundle problem.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

exit 0

 

%preun

%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 -q log4c-1.2.1-1 &>/dev/null && rpm -e log4c-1.2.1-1 &>/dev/null

rpm -q abc-1.0-1 &>/dev/null && rpm -e abc-1.0-1 &>/dev/null

 

exit 0

%files

%defattr(-,root,root,-)

%config(missingok)             %{bundledir}/log4c-1.2.1-1.i386.rpm

%config(missingok)             %{bundledir}/abc-1.0-1.i386.rpm

 

NGO THI HONG NGA (Ms.)
Developer G17 D1

FPT Software JSC - Da Nang Branch
5th floor, Vinh Trung plaza, 255-257 Hung Vuong, Danang, Vietnam 
Mobile: +84 935 176 133


IMPORTANT NOTICE

The information in this e-mail and any attached files is CONFIDENTIAL and may be legally privileged or prohibited from disclosure and unauthorized use. The views of the author may not necessarily reflect those of the Company. It is intended solely for the addressee, or the employee or agent responsible for delivering such materials to the addressee. If you have received this message in error please return it to the sender then delete the email and destroy any copies of it. If you are not the intended recipient, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication or any action taken or omitted to be taken in reliance upon this message or its attachments is prohibited and may be unlawful. At present the integrity of e-mail across the Internet cannot be guaranteed and messages sent via this medium are potentially at risk. All liability is excluded to the extent permitted by law for any claims arising as a result of the use of this medium to transmit information by or to the FPT Software JSC.

 

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux