3

当我在 centos 上运行命令 rpmbuild -bb mypackage.spec 时,出现错误

error: Package already exists: %package debuginfo

以下是规范文件的一部分:

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
BuildRequires: gcc = 4.1.2
BuildRequires: make >= 3.81
BuildRequires: postgresql84-devel = 8.4.9

%description
ElementalCORE 

%prep
%setup -qn pcore

%build
%{__make}

%install
mkdir -p %{_tmppath}/%{name}-%{version}-%{release}
mkdir -p %{name}
mkdir -p %{_bindir}
install -d %{name}
#This is to ensure that the BuildRoot will be created fresh during the %install section. 
#mkdir -p %{buildroot}
#install -p -m 0755 $RPM_BUILD_ROOT/%{name}/obj/ggsnc/ggsnc %{_bindir}

%clean

%files
%defattr(-,root,root)
%doc NEWS
4

1 回答 1

3

问题出%install在评论里。将其替换为%_install

于 2012-06-15T09:58:42.170 回答