%global debug_package %{nil} %global source_date_epoch_from_changelog %{nil} Name: ndmspc Version: 1.0.0 Release: 0.1.rc1%{?dist} Summary: NDMSPC Group: System Environment/Libraries License: LGPL v3+ Source0: %{name}-%{version}.tar.gz BuildRequires: systemd-rpm-macros BuildRequires: gcc-c++, cmake BuildRequires: doxygen BuildRequires: openssl-devel, libcurl-devel, libuv-devel, libwebsockets-devel BuildRequires: opentelemetry-cpp-devel, json-devel, protobuf-devel # BuildRequires: parquet-libs-devel BuildRequires: root, root-net-http, root-net-httpsniff Requires: root, root-netx, root-net-http, root-net-httpsniff, xrootd-client %description NDMSPC %package doc Summary: Documentation Group: Documentation Requires: %{name} = %{version}-%{release}, pkgconfig %description doc This package contains ndmspc documentation. %prep %setup -q %build mkdir build cd build cmake ../ -DWITH_PARQUET=OFF -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCUMENTATION=on make %{?_smp_mflags} cd ../ %install rm -rf %{buildroot} cd build make install DESTDIR=%{buildroot} %post %systemd_post ndmspc-http@*.service %preun %systemd_preun ndmspc-http@*.service %postun %systemd_postun ndmspc-http@*.service %files %{_bindir}/* %{_libdir}/* %{_datadir}/%{name}/* %{_sysconfdir}/* %{_includedir}/* %{_unitdir}/ndmspc-http@.service %files doc %doc /usr/share/doc/%{name}/ %changelog