Skip to content
Permalink
Browse files

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 143c4bf677d082b6b95a2aa0dcaa62a87d6a4b9e
Showing with 181 additions and 713 deletions.
  1. +4 −1 rpm/buildrpms.sh
  2. +4 −4 rpm/default.cfg
  3. +154 −694 rpm/qgis.spec.template
  4. +13 −0 rpm/sources/qgis-lib64.patch
  5. +2 −0 rpm/sources/qgis-mime.xml
  6. +4 −14 rpm/sources/qgis-server-httpd.conf
@@ -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" ]
@@ -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
@@ -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

0 comments on commit 143c4bf

Please sign in to comment.
You can’t perform that action at this time.