mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
Prevent having several spec files in source file tarball so that rpmbuild is happy.
This commit is contained in:
parent
5108be8459
commit
2107ddfff0
3 changed files with 5 additions and 3 deletions
|
|
@ -20,7 +20,7 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
if (NOT CPACK_PACKAGE_NAME)
|
||||
if(NOT CPACK_PACKAGE_NAME)
|
||||
set(CPACK_PACKAGE_NAME "linphone")
|
||||
endif ()
|
||||
|
||||
|
|
@ -41,10 +41,12 @@ set(CPACK_SOURCE_IGNORE_FILES
|
|||
"WORK"
|
||||
"cmake_builder"
|
||||
"submodules"
|
||||
"qt5.spec"
|
||||
"libmng.spec"
|
||||
)
|
||||
|
||||
bc_project_build_version(${PROJECT_VERSION} PROJECT_VERSION_BUILD)
|
||||
if (PROJECT_VERSION_BUILD)
|
||||
if(PROJECT_VERSION_BUILD)
|
||||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${PROJECT_VERSION_BUILD}")
|
||||
endif ()
|
||||
|
||||
|
|
|
|||
|
|
@ -74,5 +74,5 @@ cd ..
|
|||
mkdir -p ${RPM_FOLDER}/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
||||
tar --transform "s/^${REPO_FOLDER}/${RPM_NAME}/" -czvf ${RPM_FOLDER}/rpmbuild/SOURCES/${RPM_NAME}.tar.gz ${REPO_FOLDER}/
|
||||
|
||||
rpmbuild -bb --define "_topdir $PWD/${RPM_FOLDER}/rpmbuild" build/rpm/qt5.spec.in
|
||||
rpmbuild -bb --define "_topdir $PWD/${RPM_FOLDER}/rpmbuild" build/rpm/qt5.spec
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue