File sover.diff of Package HepMC

From: Jan Engelhardt <jengelh@inai.de>
Date: 2017-08-09 20:31:06.319101869 +0200

build: force shared library versioning

openSUSE packages are to contain versioned shared libraries.
Use the inter-distro naming scheme to make this happen.

---
 CMakeLists.txt |    1 +
 1 file changed, 1 insertion(+)

Index: hepmc3.0.0/CMakeLists.txt
===================================================================
--- hepmc3.0.0.orig/CMakeLists.txt
+++ hepmc3.0.0/CMakeLists.txt
@@ -253,6 +253,7 @@ set(CPACK_PACKAGE_VERSION_PATCH 0)
 set(CPACK_PACKAGE_RELEASE 0)
 set(CPACK_PACKAGE_FILE_NAME "HepMC")
 set(CPACK_PACKAGE_DESCRIPTION "Event record library for high energy physics Monte Carlo")
+set_target_properties(HepMC PROPERTIES LIBRARY_OUTPUT_NAME HepMC-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
 
 set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
 SET(CPACK_INSTALL_PREFIX "/usr")
openSUSE Build Service is sponsored by