Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-03-2005, 08:19 AM   #1
LQ Newbie
Registered: Jun 2005
Location: Belgium
Distribution: Novell Linux Desktop
Posts: 4

Rep: Reputation: 0
Unhappy Create Rpm

I want to create a RPM that will create a directory on my system place a file in that directory, adds a lib and run ldconfig

in my SOURCES if have the 2 files

In my SPEC i have the specfile
%define name liab
%define version 1.0.0
%define release 1

Name: %{name}
Summary: E-Voucher Libs Intersolve /H@nd
Version: %{version}
Release: %release
Group: System Environment/Libraries
License: Intersolve/H@and
SOURCE1: liab.db
Requires: /sbin/ldconfig
BuildRoot: /tmp/%{name}-%{version}

The liberary and program that connects to the Intersolve network to handle
the E-Vouchers.
RPM Created By Sven Jacobs

mkdir -p $RPM_BUILD_ROOT/var/lib/liab/
cp %{SOURCE1} $RPM_BUILD_ROOT/var/lib/liab
mkdir -p $RPM_BUILD_ROOT/usr/lib/
cp %{SOURCE2} $RPM_BUILD_ROOT/usr/lib



When i run rpmbuild -ba specfile
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.1048
+ umask 022
+ cd /usr/src/packages/BUILD
+ mkdir -p /tmp/liab-1.0.0/var/lib/liab/
+ cp /usr/src/packages/SOURCES/liab.db /tmp/liab-1.0.0/var/lib/liab
+ mkdir -p /tmp/liab-1.0.0/usr/lib/
+ cp /usr/src/packages/SOURCES/ /tmp/liab-1.0.0/usr/lib
+ RPM_BUILD_ROOT=/tmp/liab-1.0.0
+ test -x /usr/sbin/Check -a 0 = 0 -o -x /usr/sbin/Check -a '!' -z /tmp/liab-1.0.0
+ echo 'I call /usr/sbin/Check...'
I call /usr/sbin/Check...
+ /usr/sbin/Check
+ /usr/lib/rpm/brp-compress
Processing files: liab-1.0.0-1
Finding Provides: /usr/lib/rpm/find-provides
Finding Requires: /usr/lib/rpm/find-requires
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(post): /bin/sh
Requires: /sbin/ldconfig
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/liab-1.0.0
Wrote: /usr/src/packages/SRPMS/liab-1.0.0-1.src.rpm
Wrote: /usr/src/packages/RPMS/i586/liab-1.0.0-1.i586.rpm

Why does rpmbuild puts all the requirements?
Can anybody help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm error: cannot create %sourcedir ticro Red Hat 13 04-01-2013 09:27 AM
how to create .rpm package shalin Programming 1 07-13-2004 11:12 AM
Create a RPM of webpages. sachinnshah Linux - General 3 06-03-2004 09:40 AM
how to create RPM Package shalin Programming 0 03-10-2004 12:04 AM
How can I create an RPM file mayankjohri Linux - Software 1 04-16-2002 09:13 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration