%global debug_package %{nil} %global source_date_epoch_from_changelog %{nil} Name: ndmspc Version: 0.20240624.0 Release: 1%{?dist} Summary: NDMSPC Group: System Environment/Libraries License: LGPL v3+ Source0: %{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake, doxygen BuildRequires: root Requires: root, root-netx, 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 ../ -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} %files %{_bindir}/* %{_libdir}/* %{_datadir}/%{name}/* %{_sysconfdir}/* %{_includedir}/* %files doc %doc /usr/share/doc/%{name}/ %changelog