LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-03-2005, 07:19 AM   #1
sjacobs
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
liab.db
libliab.so.1.1.1

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
SOURCE2: libliab.so.1.1.1
Requires: /sbin/ldconfig
BuildRoot: /tmp/%{name}-%{version}

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

%install
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

%post

%files
/var/lib/liab/liab.db
/usr/lib/libliab.so.1.1.1

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/libliab.so.1.1.1 /tmp/liab-1.0.0/usr/lib
+ RPM_BUILD_ROOT=/tmp/liab-1.0.0
+ export RPM_BUILD_ROOT
+ 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
Provides: libliab.so
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(post): /bin/sh
Requires: /sbin/ldconfig libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.2) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.3) libcrypt.so.1 libcrypt.so.1(GLIBC_2.0) libdb_cxx-4.3.so libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libm.so.6 libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4) libstdc++.so.6(GLIBCXX_3.4.4)
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
 
  


Reply


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 08:27 AM
how to create .rpm package shalin Programming 1 07-13-2004 10:12 AM
Create a RPM of webpages. sachinnshah Linux - General 3 06-03-2004 08:40 AM
how to create RPM Package shalin Programming 0 03-09-2004 11:04 PM
How can I create an RPM file mayankjohri Linux - Software 1 04-16-2002 08:13 AM


All times are GMT -5. The time now is 10:30 PM.

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