Re: guidance with build service,

Andrea Florio <[email protected]>
Newsgroups gmane.linux.suse.schools.usa
Organization OpenSUSE Member
Message-ID <[email protected]>
James Tremblay aka SLEducator ha scritto:
> I have uploaded new code for the openSIS product.
> This is a stabilized version of the work done by the GSOC student and
> the community at opensis.sourceforge.net
> I am having some issues with modifying the "spec" file for the build
> service.
> Would someone be able to to look at the log and spec files and give me
> some hints. I want to learn to manage this project but could us some
> assistance.
> Thanks
> James
> 
> 


error: Installed (but unpackaged) file(s) found:

that means that you should "uncomment" or write a new %files section.
it's the easiest way.

i saw also lots and lots of .svn folders, they are not supposed to be
there. you should remove them from spec file, or better repack the
source without them. to do that, put the spurce into an empty folder and
run the attached script like "./myRepack tarball.tar.gz"


Andrea

-- 
------------------------------------------
Andrea Florio
QSI International School of Brindisi Sys Admin
openSUSE-Education Administrator
openSUSE Official Member (anubisg1)
Email: [email protected]
Packman Packaging Team
Email: [email protected]
Web: http://packman.links2linux.org/
Cell: +39-328-7365667
------------------------------------------
myRepack (text/plain, 1.2 KB)
#!/bin/bash

#set -x

function usage ()
{
	echo "`basename $0` archiv-file [del]"
	exit 1
}

if [ -z "$1" ]; then
	usage
fi

# full name of archiv
myPackage=$1

# extract
echo "`basename $0` started"
echo "unpacking $myPackage ..."
case $myPackage in
  *.gz)
		tar -xzf $myPackage
		myPackageBaseName=`basename $myPackage .tar.gz`
		;;
  *.tgz)
		tar -xzf $myPackage
		myPackageBaseName=`basename $myPackage .tgz`
		;;
  *.bz2)
		tar -xjf $myPackage
		myPackageBaseName=`basename $myPackage .tar.bz2`
		;;
  *.zip)
		unzip -q $myPackage
		myPackageBaseName=`basename $myPackage .zip`
		;;
  *.rar)
		rar x $myPackage
		myPackageBaseName=`basename $myPackage .rar`
		;;
	*)
		echo "unknown archive type $myPackage"
		exit 1
		;;
esac

# name of directory
myPackageDir="`find -maxdepth 1 -name '[^.]*' -type d`"

# repack without cvs, svn, arch, darcs files as *.tar.bz2
echo "repacking $myPackage as $myPackageBaseName.tar.bz2 ..."
tar cj \
	--exclude CVS \
	--exclude ".cvsignore" \
	--exclude ".svn" \
	--exclude ".osc" \
	--exclude ".arch-ids" \
	--exclude ".arch-inventory" \
	--exclude "{arch}" \
	--exclude "_darcs" \
	-f $myPackageBaseName.tar.bz2 \
	"$myPackageDir"/*

# remove package directory
rm -rf $myPackageDir

# list result
echo ""
ls -al $myPackageBaseName*
signature.asc (application/pgp-signature, 257 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkrFMGoACgkQyCZT87TFPuik5wCeO4t2BQQfy886wK55OTpy/8Eq
afUAoMHik9+p5vb84cBoArZ5P//O1Vjr
=cEAl
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.