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
...