Commit 2107ddff authored by Ghislain MARY's avatar Ghislain MARY

Prevent having several spec files in source file tarball so that rpmbuild is happy.

parent 5108be84
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
# #
############################################################################ ############################################################################
if (NOT CPACK_PACKAGE_NAME) if(NOT CPACK_PACKAGE_NAME)
set(CPACK_PACKAGE_NAME "linphone") set(CPACK_PACKAGE_NAME "linphone")
endif () endif ()
...@@ -41,10 +41,12 @@ set(CPACK_SOURCE_IGNORE_FILES ...@@ -41,10 +41,12 @@ set(CPACK_SOURCE_IGNORE_FILES
"WORK" "WORK"
"cmake_builder" "cmake_builder"
"submodules" "submodules"
"qt5.spec"
"libmng.spec"
) )
bc_project_build_version(${PROJECT_VERSION} PROJECT_VERSION_BUILD) 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}") set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${PROJECT_VERSION_BUILD}")
endif () endif ()
......
...@@ -74,5 +74,5 @@ cd .. ...@@ -74,5 +74,5 @@ cd ..
mkdir -p ${RPM_FOLDER}/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} 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}/ 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment