Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #5275 from daniviga/qgis3-rpm
Initial RPM sources update for QGIS3
  • Loading branch information
m-kuhn committed Oct 2, 2017
2 parents 2fa6811 + 524c791 commit 143c4bf
Show file tree
Hide file tree
Showing 6 changed files with 181 additions and 713 deletions.
5 changes: 4 additions & 1 deletion rpm/buildrpms.sh
Expand Up @@ -91,6 +91,8 @@ patch=$(grep -e 'SET(CPACK_PACKAGE_VERSION_PATCH' ../CMakeLists.txt |

version=$(echo $major.$minor.$patch)

timestamp=$(date +'%s')

print_info "Building version $version-$RELVER"

if [ "$build_only" -ne "1" ]
Expand All @@ -101,12 +103,13 @@ then

print_info "Creating source tarball"
# Create source tarball
git -C .. archive --format=tar --prefix=qgis-$version/ $BRANCH | bzip2 > sources/qgis-$version.tar.gz
git -C .. archive --format=tar --prefix=qgis-$version/ $BRANCH | bzip2 > sources/qgis-$version.tar.bz2

print_info "Creating source package"
# Create spec file
cat qgis.spec.template | sed -e s/%{_version}/$version/g \
| sed -e s/%{_relver}/$RELVER/g \
| sed -e s/%{_timestamp}/$timestamp/g \
| tee qgis.spec 1>/dev/null
# Build source package
mock --buildsrpm --spec qgis.spec --sources ./sources --define "_relver $RELVER" --define "_version $version" --resultdir=$OUTDIR
Expand Down
8 changes: 4 additions & 4 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-21-i386"
"fedora-21-x86_64"
"fedora-22-i386"
"fedora-22-x86_64"
"fedora-26-i386"
"fedora-26-x86_64"
"fedora-27-i386"
"fedora-27-x86_64"
)

# Which git branch to export. Normally take the current
Expand Down

0 comments on commit 143c4bf

Please sign in to comment.