Index: /trunk/debbuild
===================================================================
--- /trunk/debbuild	(revision 98)
+++ /trunk/debbuild	(revision 99)
@@ -206,5 +206,5 @@
   # zcat $tarball |tar -t |grep .spec
   # collect some info about the tarball
-  $specfile = "$topdir/BUILD/". qx { zcat $tarball |tar -t |grep .spec\$ };
+  $specfile = "$topdir/BUILD/". qx { zcat $tarball |tar -t |grep -e '[\.]spec\$' };
   chomp $specfile;
   my ($fileonly, $dirname) = ($tarball =~ /(([a-zA-Z0-9._-]+)\.tar\.(?:gz|bz2))$/);
