This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
rpm_tools [2015/05/07 18:25] stephdl |
rpm_tools [2015/05/07 18:27] stephdl [contrib_migration] |
||
---|---|---|---|
Line 91: | Line 91: | ||
The result of build can be find in the ' | The result of build can be find in the ' | ||
- | * usage<br /> | + | * usage |
in the git directory of your rpm (you need to install git & mock installed) | in the git directory of your rpm (you need to install git & mock installed) | ||
Line 105: | Line 105: | ||
# parameters are optional | # parameters are optional | ||
ME=$(whoami) | ME=$(whoami) | ||
- | | + | |
# What is the package name | # What is the package name | ||
# The package name is given by the name of the main folder | # The package name is given by the name of the main folder | ||
Line 117: | Line 117: | ||
# Which git branch we are talking | # Which git branch we are talking | ||
BRANCH=$(git branch | grep ' | BRANCH=$(git branch | grep ' | ||
- | + | | |
# Find the centos version | # Find the centos version | ||
DIST=$2 | DIST=$2 | ||
Line 191: | Line 191: | ||
fi; | fi; | ||
fi | fi | ||
- | + | | |
- | + | ||
if ! [ -z " | if ! [ -z " | ||
if [ $1 = " | if [ $1 = " | ||
Line 217: | Line 217: | ||
echo "" | echo "" | ||
mock -r $MOCKCONF --rebuild ~/ | mock -r $MOCKCONF --rebuild ~/ | ||
- | + | | |
# a bit of clean | # a bit of clean | ||
- | + | | |
rm -f ~/ | rm -f ~/ | ||
rm -rf $TMPDIR | rm -rf $TMPDIR | ||
- | + | | |
# we give the path where are files | # we give the path where are files | ||
echo "" | echo "" | ||
Line 229: | Line 229: | ||
echo "" | echo "" | ||
ls -1 ~/ | ls -1 ~/ | ||
- | echo " | + | |
| | ||
# and we sign rpm if needed, if not simply do ' | # and we sign rpm if needed, if not simply do ' | ||
Line 277: | Line 277: | ||
curl -u ' | curl -u ' | ||
mkdir -p ~/ | mkdir -p ~/ | ||
- | + | | |
cp -R smeserver-*/ | cp -R smeserver-*/ | ||
cp $1*.spec ~/ | cp $1*.spec ~/ | ||
cd ~/ | cd ~/ | ||
- | + | | |
if [ -e root/ | if [ -e root/ | ||
mkdir -p root/ | mkdir -p root/ | ||
Line 292: | Line 292: | ||
mv -f $1.ter.spec $1.spec | mv -f $1.ter.spec $1.spec | ||
rm -f $1.bis.spec | rm -f $1.bis.spec | ||
- | + | | |
- | + | ||
###git work | ###git work | ||
- | + | | |
if [ ! -e README.md ]; then | if [ ! -e README.md ]; then | ||
touch README.md | touch README.md | ||
echo "$1 is a contrib for SME Server, a Linux distro oriented server. see http:// | echo "$1 is a contrib for SME Server, a Linux distro oriented server. see http:// | ||
fi | fi | ||
- | + | | |
## | ## | ||
find * -type d -empty -exec touch {}/ | find * -type d -empty -exec touch {}/ | ||
- | + | | |
git init | git init | ||
git add . | git add . | ||
Line 310: | Line 310: | ||
git remote add origin git@github.com: | git remote add origin git@github.com: | ||
git push -u -f origin sme9 | git push -u -f origin sme9 | ||
- | + | | |
##find the apache authentication | ##find the apache authentication | ||
echo "" | echo "" | ||
Line 323: | Line 323: | ||
echo "no apache authentication" | echo "no apache authentication" | ||
fi | fi | ||
- | + | | |
## help to write the changelog | ## help to write the changelog | ||
myDate=$(LC_ALL=C date +"%a %b %d %Y") | myDate=$(LC_ALL=C date +"%a %b %d %Y") | ||
Line 329: | Line 329: | ||
echo "* $myDate stephane de Labrusse < | echo "* $myDate stephane de Labrusse < | ||
echo "- Initial release to sme9" | echo "- Initial release to sme9" | ||
- | + | | |
else | else | ||
echo"" | echo"" |