Subject: | |
From: | |
Reply To: | |
Date: | Tue, 9 Oct 2007 09:09:12 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Kresnik Igor wrote:
> Why i cant create rpm file? Im create tar file and put her in SOURCES
> forder. Program its writen with QT 4.3
>
> if i run comand rpmbuild -bb calc.spec like ordinary user i get ansver
> [igor@localhost SPECS]$ rpmbuild -bb calc.spec
> Izvajanje(%prep): /bin/sh -e /var/tmp/rpm-tmp.32150
> + umask 022
> + cd /usr/src/redhat/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + cd /usr/src/redhat/BUILD
> + rm -rf racunalo-1
> + tar -xf /usr/src/redhat/SOURCES/calculator.tar.gz
> tar: calculator/button.cpp: Cannot open: File exists
>
> although in tar file this file exist? Next question its about %file
> section. In spec file i have writen
> path for this file i get with command ldd program_name and i that path i
> write in spec file
> /usr/local/Trolltech/Qt-4.3.0/lib/libQtGui.so.4
> command rpmbuild -bl calc.spec get me ansver
> error: File not found: /tmp/calc/linux-gate.so.1
> or i must get this file in folder /tmp/calc ?
>
> spec files for creating rpm
>
> Summary: Racunalo!
> Name: racunalo
> %define version 1.0
> Version: 1
> Release: 1
> License: GLP
> Group: Applications/Editors
> Source0: /calculator.tar.gz
> Provides: IGOR
> Prefix: /usr/calc
> Buildroot: /tmp/calc
>
> %description
> Program for calculating number
>
> %prep
>
> %setup -q
>
> %build
>
> ./configure CXXFLAGS=-O3 --prefix=$RPM_BUILD_ROOT/usr
> make
>
> %install
>
> rm -fr $RPM_BUILD_ROOT
> make install
>
> %clean
>
> rm -rf $RPM_BUILD_ROOT
>
> %files
> /linux-gate.so.1
>
> Wher its error? Why i cant create rpm file?
> Regards igor
Hi Igor,
My first guess is because you are trying to build the rpm files as a regular
user, but your rpm build enviroment is the area that root uses.
Here is a quick set of commands that you can cut and paste, wich will create a
build directory called rpmbuild in your home area, and setup your rpm
enviroment so that you use it.
mkdir -p rpmbuild/{SOURCES,SPECS,BUILD,SRPMS,RPMS}
mkdir rpmbuild/RPMS/{i386,i586,i686,noarch}
echo "%_topdir $HOME/rpmbuild" >> .rpmmacros
echo "%debug_package %{nil}" >> .rpmmacros
Troy
--
__________________________________________________
Troy Dawson [log in to unmask] (630)840-6468
Fermilab ComputingDivision/LCSI/CSI DSS Group
__________________________________________________
|
|
|