Skip to content

Commit

Permalink
Merge pull request #7287 from daniviga/fix-rpm-build
Browse files Browse the repository at this point in the history
Some minor fixes to rpm/buildrpms.sh
  • Loading branch information
m-kuhn committed Jun 21, 2018
2 parents 8609a2f + c280605 commit 17ea4a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
18 changes: 10 additions & 8 deletions rpm/buildrpms.sh
Expand Up @@ -43,6 +43,7 @@ then
mock_args="--old-chroot"
fi

relver=1
compile_spec_only=0
build_only=0
srpm_only=0
Expand Down Expand Up @@ -82,13 +83,14 @@ then
# Get next release version number and increment after
if [ ! -f version.cfg ]
then
echo "relver=1" > version.cfg
fi
source version.cfg
if [ "$build_only" -ne "1" ]
then
(( relver+=1 ))
echo "relver=$relver" > version.cfg
else
source version.cfg
if [ "$build_only" -ne "1" ]
then
(( relver+=1 ))
echo "relver=$relver" > version.cfg
fi
fi
timestamp=0
else
Expand Down Expand Up @@ -139,7 +141,7 @@ then
--define "_relver $relver" \
--define "_version $version" \
--define "_timestamp $timestamp" \
--resultdir=$OUTDIR $mock_args -ne 0;
--resultdir=$OUTDIR $mock_args
then
print_error "Creating source package failed"
exit 1
Expand Down Expand Up @@ -171,7 +173,7 @@ do :
--define "_relver $relver" \
--define "_version $version" \
--define "_timestamp $timestamp" \
--resultdir=$OUTDIR/$arch $mock_args -eq 0;
--resultdir=$OUTDIR/$arch $mock_args
then
# Add to package list
packages="$packages $(ls $OUTDIR/$arch/*-$version-$relver.*.rpm)"
Expand Down
4 changes: 2 additions & 2 deletions rpm/default.cfg
Expand Up @@ -10,10 +10,10 @@ OUTDIR="result/"

# Which arches to build for. Check /etc/mock for possible options
ARCHS=(
"fedora-26-i386"
"fedora-26-x86_64"
"fedora-27-i386"
"fedora-27-x86_64"
"fedora-28-i386"
"fedora-28-x86_64"
)

# Which git branch to export. Normally take the current
Expand Down
4 changes: 0 additions & 4 deletions rpm/qgis.spec.template
Expand Up @@ -18,11 +18,7 @@
%define builddate %(date '+%a %b %d %Y')
%endif

%if 0%{?fedora} >= 27
%define grass grass74
%else
%define grass grass72
%endif

Name: qgis
Version: %{_version}
Expand Down

0 comments on commit 17ea4a9

Please sign in to comment.