LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-15-2003, 03:45 AM   #1
sooaai
LQ Newbie
 
Registered: Apr 2003
Location: Czech Republic
Distribution: Mandrake 9.1
Posts: 7

Rep: Reputation: 0
~/.rpmmacros problem


Hi all,
I'm trying to build RPM package for Mandrake from kdevelop-3.0a5.tar.bz2.
I've got everything prepared, but command:
rpm -bi kdevelop-3.0a5.spec return
error: /home/sooaai/kdevelop-3.0a5.spec: No such file or directory

I seems the rpm doesn't see ~/.rpmmacros (don't know %_topdir)
Where is problem?
Pleas help me.
sooaai



$ rpm -q rpm
rpm-4.0.4-28mdk
$ rpm -q rpm-build
rpm-build-4.0.4-28mdk
$ rpm -q spec-helper
spec-helper-0.8-1mdk
$ rpm -q libtool
libtool-1.4.3-7mdk

$ cd ~/rpm
$ ls -F *
BUILD:
RPMS:
i386/ i586/ i686/ noarch/
SOURCES:
kdevelop-3.0a5.tar.bz2*
SPECS:
kdevelop-3.0a5.spec
SRPMS:
tmp:

$ cat ~/.rpmrc
buildarchtranslate: i386: i686
buildarchtranslate: i486: i686
buildarchtranslate: i586: i686
buildarchtranslate: i686: i686

$ cat ~/.rpmmacros
%_topdir /home/sooaai/rpm
%_tmppath /home/sooaai/rpm/tmp
%_specdir %{_topdir}/SPECS
%_builddir %{_topdir}/BUILD
%_sourcedir %{_topdir}/SOURCES
%_srcrpmdir %{_topdir}/SRPMS
%_rpmdir %{_topdir}/RPMS
%_signature gpg
%_gpg_name Mandrake Linux
%_gpg_path ~/.gnupg
%distribution Mandrake Linux
%vendor MandrakeSoft

$ cat ~/rpm/SPECS/kdevelop-3.0a5.spec
%define name kdevelop
%define version 3.0a5
%define release 1mdk
Name: %{name}
Summary:
Version: %{version}
Release: %{release}
Source: http://kde.oregonstate.edu/pub/kde/u...0-alpha5/src/%{name}-%{version}.tar.bz2
URL: http://www.kdevelop.org
Group: Development
BuildRoot: %{_tmppath}/%{name}-buildroot
License: GNU
%description
%prep
rm -rf $RPM_BUILD_ROOT
%setup -a 1
%build
%configure
%make
%install
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%doc README NEWS COPYING AUTHORS
...
 
  


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
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:00 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration