%global debug_package %{nil} %global source_date_epoch_from_changelog %{nil} Name: ndmspc Version: 0.20240422.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 devel Summary: Development files and static library for the ndmspc Group: Development/Libraries Requires: %{name} = %{version}-%{release}, pkgconfig %description devel This package contains ndmspc related development libraries and header files. %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}/* %files devel %defattr(-,root,root,-) %{_includedir}/* %files doc %doc /usr/share/doc/%{name}/ %changelog