%global debug_package %{nil} Name: ndm Version: 0.2.0 Release: 0.1.rc1%{?dist} Summary: N Dimensional High Energy Physics tool Group: System Environment/Libraries License: LGPL v3+ Source0: %{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake, doxygen BuildRequires: fmt-devel BuildRequires: spdlog-devel BuildRequires: yaml-cpp-devel BuildRequires: gtest-devel %if 0%{?rhel} == 7 || 0%{?el7} == 1 BuildRequires: protobuf3-devel %else BuildRequires: protobuf-devel %endif %description N Dimensional High Energy Physics tool %package devel Summary: Development files and static library for the ndm Group: Development/Libraries Requires: %{name} = %{version}-%{release}, pkgconfig %description devel This package contains ndm related development libraries and header files. %package doc Summary: Documentation Group: Documentation Requires: %{name} = %{version}-%{release}, pkgconfig %description doc This package contains ndm 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} cd ../ %check cd build make test %files %{_bindir}/* %{_libdir}/*.so %files devel %defattr(-,root,root,-) %{_includedir}/* %files doc %doc /usr/share/doc/%{name}/ %changelog