Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
9eca4572
Commit
9eca4572
authored
Mar 21, 2018
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(build): provide a way to build a qt rpm
parent
2fd25207
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
373 additions
and
23 deletions
+373
-23
.gitignore
.gitignore
+6
-0
qt5.spec
build/rpm/qt5.spec
+345
-0
build_qt_rpm
tools/build_qt_rpm
+19
-0
build_qt_tarball
tools/build_qt_tarball
+3
-23
No files found.
.gitignore
View file @
9eca4572
...
@@ -31,6 +31,12 @@ GTAGS
...
@@ -31,6 +31,12 @@ GTAGS
*.qmlc
*.qmlc
*.jsc
*.jsc
# RPM --------------------------------------------------------------------------
qt-*.tar.gz
qt5/
rpm-qt-*/
# OTHER ------------------------------------------------------------------------
# OTHER ------------------------------------------------------------------------
vgcore.*
vgcore.*
...
...
build/rpm/qt5.spec
0 → 100644
View file @
9eca4572
This diff is collapsed.
Click to expand it.
tools/build_qt_rpm
0 → 100755
View file @
9eca4572
#!/usr/bin/env bash
QT_VERSION
=
'5.10.1'
# ==============================================================================
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
cd
"
${
SCRIPT_DIR
}
/.."
# ==============================================================================
mkdir
-p
rpm-qt-
${
QT_VERSION
}
/rpmbuild/
{
BUILD,RPMS,SOURCES,SPECS,SRPMS
}
cp
qt-
${
QT_VERSION
}
.tar.gz rpm-qt-
${
QT_VERSION
}
/rpmbuild/SOURCES
rpmbuild
-bb
\
--define
'_qt5_dir /opt/com.belledonne-communications/linphone'
\
--define
"_qt5_version
${
QT_VERSION
}
"
\
--define
"_topdir
$PWD
/rpm-qt-
${
QT_VERSION
}
/rpmbuild"
\
build/rpm/qt5.spec
tools/build_qt
→
tools/build_qt
_tarball
View file @
9eca4572
...
@@ -5,12 +5,11 @@
...
@@ -5,12 +5,11 @@
REPO_URL
=
'git://code.qt.io/qt/qt5.git'
REPO_URL
=
'git://code.qt.io/qt/qt5.git'
REPO_FOLDER
=
qt5
REPO_FOLDER
=
qt5
QT_VERSION
=
'5.10'
QT_VERSION
=
'5.10
.1
'
# ==============================================================================
# ==============================================================================
RED
=
'\e[1;31m'
RED
=
'\e[1;31m'
BLUE
=
'\e[1;34m'
NC
=
'\e[0m'
NC
=
'\e[0m'
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
...
@@ -66,24 +65,5 @@ fi
...
@@ -66,24 +65,5 @@ fi
-qtxmlpatterns
\
-qtxmlpatterns
\
-f
-f
./configure
-opensource
-confirm-license
-release
-c
++std c++11
-ccache
-silent
-nomake
examples
-nomake
tests
\
cd
..
-prefix
"/opt/qt-
${
QT_VERSION
}
"
\
tar
--transform
"s/^qt5/qt-
${
QT_VERSION
}
/"
--exclude
.git
-czvf
qt-
${
QT_VERSION
}
.tar.gz qt5/
-qt-freetype
\
-qt-harfbuzz
\
-qt-libjpeg
\
-qt-libpng
\
-qt-pcre
\
-qt-xcb
\
-qt-xkbcommon
\
-system-zlib
if
[[
$?
!=
0
]]
;
then
printf
"
${
RED
}
Unknown configure option.
${
NC
}
\n
"
exit
1
fi
make
-r
-j5
printf
"
${
NC
}
Please export configuration variables like this:
${
NC
}
\n
"
printf
"
${
BLUE
}
export PATH=
\"
/opt/qt-
${
QT_VERSION
}
/bin/:
\$
PATH
\"
${
NC
}
\n
"
printf
"
${
BLUE
}
export Qt5_DIR=
\"
/opt/qt-
${
QT_VERSION
}
/lib/cmake/
\"
${
NC
}
\n
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment