【发布时间】:2012-04-26 05:23:00
【问题描述】:
当我在 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
【问题讨论】:
-
这是 CentOS 5 还是 6?此外,您可能想尝试将 %define debug_package %{nil} 放在规范文件的顶部。