title: "rpmbuild -bb package.spec" produces error: Package already exists: %package debuginfo
body: <p>When i run the command rpmbuild -bb mypackage.spec,  on centos, i get an error</p>
  
  <pre><code>error: Package already exists: %package debuginfo
  </code></pre>
  
  <p>following is part of the spec file:</p>
  
  <pre><code>BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
  BuildRequires: gcc = 4.1.2
  BuildRequires: make &gt;= 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
  </code></pre>