mirror of
https://github.com/OpenCMT/uLib.git
synced 2025-12-06 07:21:31 +01:00
Restored Root lib
This commit is contained in:
@@ -7,7 +7,11 @@ Vendor: INFN
|
|||||||
URL: https://github.com/OpenCMT/uLib
|
URL: https://github.com/OpenCMT/uLib
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
BuildArch: %{_arch}
|
BuildArch: %{_arch}
|
||||||
|
%if %{?rhel}%{!?rhel:0} >= 8
|
||||||
|
BuildRequires: cmake
|
||||||
|
%else
|
||||||
BuildRequires: cmake3
|
BuildRequires: cmake3
|
||||||
|
%endif
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
BuildRequires: eigen3-devel
|
BuildRequires: eigen3-devel
|
||||||
BuildRequires: vtk-devel
|
BuildRequires: vtk-devel
|
||||||
@@ -33,11 +37,12 @@ mkdir -p %{buildroot}
|
|||||||
%build
|
%build
|
||||||
mkdir %{_builddir}/%{name}-%{version}/build
|
mkdir %{_builddir}/%{name}-%{version}/build
|
||||||
cd %{_builddir}/%{name}-%{version}/build
|
cd %{_builddir}/%{name}-%{version}/build
|
||||||
cmake3 -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr \
|
%cmake -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr \
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DPACKAGE_INSTALL_LIB_DIR=%{buildroot}/usr/lib64 \
|
-DPACKAGE_INSTALL_LIB_DIR=%{buildroot}/usr/lib64 \
|
||||||
-DNODOXYGEN=ON \
|
-DNODOXYGEN=ON \
|
||||||
%{_builddir}/%{name}-%{version}
|
%{_builddir}/%{name}-%{version}
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd %{_builddir}/%{name}-%{version}/build
|
cd %{_builddir}/%{name}-%{version}/build
|
||||||
@@ -55,9 +60,7 @@ rm -rf %{buildroot}
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/lib64/libmutom*.so.0.2
|
/usr/lib64/libmutom*.so.0.2
|
||||||
|
/usr/lib64/uLibRootDict_rdict.pcm
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Cosmic Muon Tomography core libraries, development files
|
Summary: Cosmic Muon Tomography core libraries, development files
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ set(ULIB_SELECTED_MODULES
|
|||||||
Core
|
Core
|
||||||
Math
|
Math
|
||||||
Detectors
|
Detectors
|
||||||
|
Root
|
||||||
)
|
)
|
||||||
|
|
||||||
## uLib_add_shared_library puts names there
|
## uLib_add_shared_library puts names there
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ set_source_files_properties(uLibRootDict.cxx PROPERTIES GENERATED TRUE)
|
|||||||
set_source_files_properties(uLibRootDict.h PROPERTIES GENERATED TRUE)
|
set_source_files_properties(uLibRootDict.h PROPERTIES GENERATED TRUE)
|
||||||
list(APPEND SOURCES uLibRootDict.cxx)
|
list(APPEND SOURCES uLibRootDict.cxx)
|
||||||
|
|
||||||
|
# TODO use a custom target linked to root_generate_dictionary
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/uLibRootDict_rdict.pcm
|
||||||
|
DESTINATION ${PACKAGE_INSTALL_LIB_DIR})
|
||||||
|
|
||||||
uLib_add_shared_library(${uLib-module})
|
uLib_add_shared_library(${uLib-module})
|
||||||
add_subdirectory(testing)
|
add_subdirectory(testing)
|
||||||
|
|||||||
Reference in New Issue
Block a user