Can't convert deb to rpm due to illegal character
I'm trying to convert a deb (docky in particular) into an rpm. I'm attempting to do this with alien, but it keeps spitting back an error about an illegal character (~). Here's the output:
Code:
alien -r -v docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb
Warning: alien is not running as root!
Warning: Ownerships of files in the generated packages will probably be wrong.
dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb control 2>/dev/null
dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb control 2>/dev/null
dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb conffiles 2>/dev/null
dpkg-deb --fsys-tarfile docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb | tar tf -
dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb postinst 2>/dev/null
dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb postrm 2>/dev/null
dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb preinst 2>/dev/null
dpkg-deb --info docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb prerm 2>/dev/null
mkdir docky-2.0~bzr1002
chmod 755 docky-2.0~bzr1002
dpkg-deb -x docky_2.0_bzr1002-0karmic1~dockycore1_amd64.deb docky-2.0~bzr1002
rpm --showrc
cd docky-2.0~bzr1002; rpmbuild --buildroot=/home/isaac/Source/docky-2.0~bzr1002 -bb --target x86_64 docky-2.0~bzr1002-1.spec 2>&1
Package build failed. Here's the log of the command (cd docky-2.0~bzr1002; rpmbuild --buildroot=/home/isaac/Source/docky-2.0~bzr1002 -bb --target x86_64 docky-2.0~bzr1002-1.spec):
error: line 3: Illegal char '~' in: Version: 2.0~bzr1002
Building target platforms: x86_64
Building for target x86_64
find docky-2.0~bzr1002 -type d -exec chmod 755 {} ;
rm -rf docky-2.0~bzr1002
What should I do about this?
Laptop: [AMD Vision A4-3300M | 8GB RAM | ATI Radeon 6480G | Ubuntu 12.04 64-bit]
Studio Box: [AMD Athlon 64 X2 5000+ | 4GB RAM | Nvidia 210 | M-Audio FastTrackPro | KXStudio 11.04 64-bit | 2.6.31-rt14-custom | KDE 4.6.5]
Bookmarks