Skip to content

Commit

Permalink
Initial RPM sources update for QGIS3
Browse files Browse the repository at this point in the history
  • Loading branch information
daniviga committed Oct 1, 2017
1 parent df71901 commit 15e5419
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 739 deletions.
3 changes: 3 additions & 0 deletions rpm/buildrpms.sh
Original file line number Diff line number Diff line change
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 @@ -107,6 +109,7 @@ then
# 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
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit 15e5419

Please sign in to comment.