mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
62ce28e8d5
(This used to be commit 81b3af71d5
)
17 lines
489 B
Bash
17 lines
489 B
Bash
#!/bin/sh
|
|
# Copyright (C) 1998 John H Terpstra, 1999 K Spoon
|
|
#
|
|
SPECDIR=/usr/src/RPM/SPECS
|
|
SRCDIR=/usr/src/RPM/SOURCES
|
|
USERID=`id -u`
|
|
GRPID=`id -g`
|
|
VERSION='PVERSION'
|
|
|
|
( cd ../../.. ; mv samba samba-$VERSION; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-$VERSION )
|
|
( cd ../../.. ; tar --exclude=CVS -czvf ${SRCDIR}/samba-$VERSION.tar.gz samba-$VERSION )
|
|
( cd ../../.. ; mv samba-$VERSION samba )
|
|
cp -a *.spec $SPECDIR
|
|
cp -a *.patch smb.* samba.log $SRCDIR
|
|
cd $SPECDIR
|
|
rpm -ba -v samba2.spec
|