Name: salsa Version: 0.3.0 Release: 1%{?dist} Summary: SALSA - Scalable Adaptive Large Structures Analysis Group: System Environment/Libraries License: LGPL v3+ Source0: %{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: redhat-lsb-core, cmake, doxygen BuildRequires: spdlog-devel BuildRequires: zyre-devel BuildRequires: ncurses-devel BuildRequires: jsoncpp-devel, yaml-cpp-devel %if 0%{?rhel} == 7 || 0%{?el7} == 1 BuildRequires: protobuf3-devel %else BuildRequires: protobuf-devel %endif # Fix for fedora 27 %global debug_package %{nil} %description SALSA - Scalable Adaptive Large Structures Analysis %package devel Summary: Development files and static library for the SALSA Group: Development/Libraries Requires: %{name} = %{version}-%{release}, pkgconfig %description devel This package contains SALSA related development libraries and header files. %package doc Summary: Documentation Group: Documentation Requires: %{name} = %{version}-%{release}, pkgconfig %description doc This package contains SALSA 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 ../ %post %systemd_post %{name}@*.service %preun %systemd_preun %{name}@*.service # Restarting %{name}.service (maybe we don't want it) %postun %systemd_postun_with_restart %{name}@*.service %files %{_bindir}/* %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %config(noreplace) %{_sysconfdir}/%{name}/udp.yaml %config(noreplace) %{_sysconfdir}/%{name}/gossip.yaml %config(noreplace) %{_sysconfdir}/%{name}/default.yaml %{_unitdir}/%{name}@.service %files devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/*.a %files doc %doc /usr/share/doc/%{name}/ %changelog