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
352e4985
Commit
352e4985
authored
Mar 16, 2018
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(build): add a rpm build support (in progress)
parent
61a846e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
130 additions
and
14 deletions
+130
-14
.gitignore
.gitignore
+1
-1
CMakeLists.txt
CMakeLists.txt
+2
-13
CMakeLists.txt
build/CMakeLists.txt
+57
-0
linphone.spec.cmake
build/rpm/linphone.spec.cmake
+70
-0
No files found.
.gitignore
View file @
352e4985
...
...
@@ -8,7 +8,6 @@
# Project configuration --------------------------------------------------------
*.pro.user
build*
Project.sln.lnk
WORK
OUTPUT
...
...
@@ -35,3 +34,4 @@ GTAGS
# OTHER ------------------------------------------------------------------------
vgcore.*
linphone.spec
CMakeLists.txt
View file @
352e4985
...
...
@@ -448,21 +448,10 @@ install(FILES "${ASSETS_ASSISTANT_DIR}/use-linphone-sip-account.rc"
)
# ------------------------------------------------------------------------------
# CPack settings.
# CPack settings
& RPM
.
# ------------------------------------------------------------------------------
set
(
CPACK_SOURCE_GENERATOR
"TGZ"
)
set
(
CPACK_SOURCE_PACKAGE_FILE_NAME
"
${
PROJECT_NAME
}
-
${
PROJECT_VERSION
}
"
)
set
(
CPACK_SOURCE_IGNORE_FILES
"^
${
CMAKE_BINARY_DIR
}
"
"/
\\\\
..+"
"OUTPUT"
"WORK"
"cmake_builder"
"submodules"
)
include
(
CPack
)
add_subdirectory
(
build
)
# ------------------------------------------------------------------------------
# To start better integration into IDE.
...
...
build/CMakeLists.txt
0 → 100644
View file @
352e4985
############################################################################
# CMakeLists.txt
# Copyright (C) 2018 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
############################################################################
if
(
NOT CPACK_PACKAGE_NAME
)
set
(
CPACK_PACKAGE_NAME
"linphone"
)
endif
()
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../LICENSE"
)
set
(
CPACK_PACKAGE_VERSION_MAJOR
${
PROJECT_VERSION_MAJOR
}
)
set
(
CPACK_PACKAGE_VERSION_MINOR
${
PROJECT_VERSION_MINOR
}
)
set
(
CPACK_PACKAGE_VERSION_PATCH
${
PROJECT_VERSION_PATCH
}
)
set
(
CPACK_PACKAGE_FILE_NAME
${
CPACK_PACKAGE_NAME
}
-
${
PROJECT_VERSION
}
)
set
(
CPACK_SOURCE_GENERATOR
"TGZ"
)
set
(
CPACK_SOURCE_IGNORE_FILES
"^
${
PROJECT_SOURCE_DIR
}
/.git*"
"^
${
CMAKE_BINARY_DIR
}
"
"/
\\\\
..+"
"OUTPUT"
"WORK"
"cmake_builder"
"submodules"
)
bc_project_build_version
(
${
PROJECT_VERSION
}
PROJECT_VERSION_BUILD
)
if
(
PROJECT_VERSION_BUILD
)
set
(
CPACK_PACKAGE_FILE_NAME
"
${
CPACK_PACKAGE_FILE_NAME
}
-
${
PROJECT_VERSION_BUILD
}
"
)
endif
()
message
(
"-- Package file name is
${
CPACK_PACKAGE_FILE_NAME
}
"
)
set
(
CPACK_SOURCE_PACKAGE_FILE_NAME
${
CPACK_PACKAGE_FILE_NAME
}
)
bc_generate_rpm_specfile
(
"rpm/linphone.spec.cmake"
"
${
PROJECT_SOURCE_DIR
}
/linphone.spec"
)
include
(
CPack
)
build/rpm/linphone.spec.cmake
0 → 100644
View file @
352e4985
# -*- rpm-spec -*-
%define _prefix @CMAKE_INSTALL_PREFIX@
%define pkg_prefix @BC_PACKAGE_NAME_PREFIX@
%define _datarootdir %{_prefix}/share
%define _datadir %{_datarootdir}
%define _docdir %{_datadir}/doc
%define build_number @PROJECT_VERSION_BUILD@
%if %{build_number}
%define build_number_ext -%{build_number}
%endif
Name: @CPACK_PACKAGE_NAME@
Version: @PROJECT_VERSION@
Release: %{build_number}%{?dist}
Summary: A
free
(
libre
)
SIP video-phone.
Group: Communications/Telephony
License: GPL
URL: https://www.linphone.org
Source0: %{name}-%{version}%{?build_number_ext}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: %{pkg_prefix}bctoolbox
Requires: %{pkg_prefix}belcard
Requires: %{pkg_prefix}liblinphone
Requires: %{pkg_prefix}mediastreamer
Requires: %{pkg_prefix}minizip
%description
A
free
(
libre
)
SIP video-phone.
%if 0%{?rhel} && 0%{?rhel} <= 7
%global cmake_name cmake3
%define ctest_name ctest3
%else
%global cmake_name cmake
%define ctest_name ctest
%endif
%define custom_debug_package %{!?_enable_debug_packages:%debug_package}%{?_enable_debug_package:%{nil}}
%custom_debug_package
%prep
%setup -n %{name}-%{version}%{?build_number_ext}
%build
%{expand:%%%cmake_name} . -DCMAKE_BUILD_TYPE=@CMAKE_BUILD_TYPE@ -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} -DCMAKE_PREFIX_PATH:PATH=%{_prefix} @RPM_ALL_CMAKE_OPTIONS@
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%
defattr
(
-,root,root,-
)
%doc LICENSE CHANGELOG.md README.md
%{_bindir}/
%{_datadir}/
%changelog
* Thu Mar 15 2018 ronan.abhamon <ronan.abhamon@belledonne-communications.com>
- Initial RPM release.
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