File RLSFilter-devel.spec of Package rlsfilter
Name: RLSFilter-devel
Version: 0.0+git20240329
Release: 1
Summary: C++ web server library
Group: Development/Libraries
License: MIT
BuildArch: noarch
URL: https://github.com/dadep88/RLSFilter
Source0: RLSFilter-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: eigen3-devel
BuildRequires: gtest-devel
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: cmake
BuildRequires: gcc-c++
%description
Header-only C++ template library implementing a Recursive Least
Squares (RLS) filter, managing static and dynamic implementation and
different floating point base type (float, double, long double).
%prep
%setup -q -n RLSFilter-%{version}
%cmake
%build
if [ -d "%{?__cmake_builddir}" ]; then
%cmake_build
make -C "%{?__cmake_builddir}" doxygen-docs/fast
make -C "%{?__cmake_builddir}" test
elif [ -d build ]; then
cd build
make all doxygen-docs/fast
make test
else
make all doxygen-docs/fast
make test
fi
%install
install -d %{buildroot}%{_includedir}
install include/RLSFilter.h %{buildroot}%{_includedir}
#if [ -d "%{?__cmake_builddir}" ]; then
# cd %{?__cmake_builddir}
#elif [ -d build ]; then
# cd build
#fi
# %make_install
%clean
%files
%defattr(-,root,root,-)
%doc README.md LICENSE docs
%{_includedir}/RLSFilter.h
%changelog