File mingw64-iir.spec of Package mingw64-iir
#
# spec file for package mingw64-iir
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define realname iir
Name: mingw64-%{realname}
Version: 1.10.0
Release: 0
Summary: DSP infinite impulse response realtime C++ filter library
License: MIT
URL: https://github.com/berndporr/iir1
Source0: https://github.com/berndporr/iir1/archive/%{version}.tar.gz#/iir1-%{version}.tar.gz
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
%_mingw64_package_header_debug
BuildArch: noarch
%description
An infinite impulse response (IIR) filter library which implements Butterworth,
RBJ, Chebychev filters and can easily import coefficients generated by Python
(scipy).
The filter processes the data sample by sample for realtime processing.
It uses templates to allocate the required memory so that it can run without
any malloc / new commands. Memory is allocated at compile time so that there
is never the risk of memory leaks.
All realtime filter code is in the header files which guarantees efficient
integration into the main program and the compiler can optimise both filter
code and main program at the same time.
%package -n mingw64-libiir
Summary: DSP infinite impulse response realtime filter library
Group: System/Libraries
%description -n mingw64-libiir
DSP infinite impulse response realtime filter library.
%package -n mingw64-%{realname}-devel
Summary: Development and Header Files for libiir
Group: Development/Libraries/C and C++
Requires: mingw64-libiir = %{version}
%description -n mingw64-%{realname}-devel
Development and header files for the DSP infinite impulse response realtime
filter library.
%_mingw64_debug_package
%prep
%autosetup -p1 -n iir1-%{version}
%build
%{_mingw64_cmake} -DIIR1_INSTALL_STATIC=OFF
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
%files -n mingw64-libiir
%{_mingw64_bindir}/libiir.dll
%files -n mingw64-%{realname}-devel
%license COPYING
%doc README.md
%{_mingw64_includedir}/Iir.h
%{_mingw64_includedir}/iir
%{_mingw64_libdir}/libiir.dll.a
%{_mingw64_libdir}/pkgconfig/iir.pc
%{_mingw64_libdir}/cmake/iir
%changelog