Group :: System/Libraries
RPM: libfaudio
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define build_type RelWithDebInfo
%define _cmake %cmake -DCMAKE_BUILD_TYPE=%build_type -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
%define git %nil
%define sovers 0
%def_disable static
Name: libfaudio
Version: 23.03
Release: alt1
Summary: Accuracy-focused XAudio reimplementation for open platforms
License: Zlib
Group: System/Libraries
Url: https://github.com/FNA-XNA/FAudio
Source: %name-%version.tar
Patch: %name-%version-%release.patch
BuildRequires(pre): cmake pkgconfig
BuildRequires: libSDL2-devel
BuildRequires: gcc-c++ chrpath
Packager: L.A. Kostis <lakostis at altlinux.ru>
%package -n %name%{sovers}
Summary: Accuracy-focused XAudio reimplementation for open platforms
Group: System/Libraries
%package -n %name-devel
Summary: %name development environment
Group: Development/C++
Requires: %name%{sovers} = %EVR
%package -n %name-devel-static
Summary: %name static development environment
Group: Development/C++
Requires: %name-devel = %EVR
%description
This is FAudio, an XAudio reimplementation that focuses solely on developing
fully accurate DirectX Audio runtime libraries for the FNA project, including
XAudio2, X3DAudio, XAPO, and XACT3.
%description -n %name%{sovers}
This is FAudio, an XAudio reimplementation that focuses solely on developing
fully accurate DirectX Audio runtime libraries for the FNA project, including
XAudio2, X3DAudio, XAPO, and XACT3.
%description -n %name-devel
This package contains all files which are needs to compile programs using
the %name library.
%description -n %name-devel-static
This package contains libraries which are needs to compile programs statically
linked against %name library.
%prep
%setup
%patch -p1
%build
%_cmake
%cmake_build
%install
%cmakeinstall_std
chrpath -d %buildroot%{_libdir}/*.so.*.*
%files -n %name%{sovers}
%_libdir/*.so.*
%doc README* LICENSE
%files -n %name-devel
%_includedir/*
%_libdir/*.so
%_datadir/cmake/FAudio
%_pkgconfigdir/*.pc
%if_enabled static
%files -n %name-devel-static
%_libdir/*.a
%endif
%changelog
…
Full changelog you can see here
%define _cmake %cmake -DCMAKE_BUILD_TYPE=%build_type -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
%define git %nil
%define sovers 0
%def_disable static
Name: libfaudio
Version: 23.03
Release: alt1
Summary: Accuracy-focused XAudio reimplementation for open platforms
License: Zlib
Group: System/Libraries
Url: https://github.com/FNA-XNA/FAudio
Source: %name-%version.tar
Patch: %name-%version-%release.patch
BuildRequires(pre): cmake pkgconfig
BuildRequires: libSDL2-devel
BuildRequires: gcc-c++ chrpath
Packager: L.A. Kostis <lakostis at altlinux.ru>
%package -n %name%{sovers}
Summary: Accuracy-focused XAudio reimplementation for open platforms
Group: System/Libraries
%package -n %name-devel
Summary: %name development environment
Group: Development/C++
Requires: %name%{sovers} = %EVR
%package -n %name-devel-static
Summary: %name static development environment
Group: Development/C++
Requires: %name-devel = %EVR
%description
This is FAudio, an XAudio reimplementation that focuses solely on developing
fully accurate DirectX Audio runtime libraries for the FNA project, including
XAudio2, X3DAudio, XAPO, and XACT3.
%description -n %name%{sovers}
This is FAudio, an XAudio reimplementation that focuses solely on developing
fully accurate DirectX Audio runtime libraries for the FNA project, including
XAudio2, X3DAudio, XAPO, and XACT3.
%description -n %name-devel
This package contains all files which are needs to compile programs using
the %name library.
%description -n %name-devel-static
This package contains libraries which are needs to compile programs statically
linked against %name library.
%prep
%setup
%patch -p1
%build
%_cmake
%cmake_build
%install
%cmakeinstall_std
chrpath -d %buildroot%{_libdir}/*.so.*.*
%files -n %name%{sovers}
%_libdir/*.so.*
%doc README* LICENSE
%files -n %name-devel
%_includedir/*
%_libdir/*.so
%_datadir/cmake/FAudio
%_pkgconfigdir/*.pc
%if_enabled static
%files -n %name-devel-static
%_libdir/*.a
%endif
%changelog
…
Full changelog you can see here