File magnum-opus.spec of Package magnum-opus
#
# spec file for package magnum-opus
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: magnum-opus
Version: 1684549265.5cd2bf9
Release: 0
Summary: Safe Rust bindings for libopus
License: Apache-2.0 or MIT
URL: https://github.com/rustdesk-org/magnum-opus
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo
BuildRequires: cargo-packaging
BuildRequires: pkgconfig(opus)
BuildRequires: clang-devel
%description
Safe Rust bindings for libopus. The rustdoc (available through cargo doc)
includes brief descriptions for methods, and detailed API information can be
found at the libopus documentation.
https://opus-codec.org/docs/opus_api-1.1.2/
%prep
%autosetup -a 1 -p 1
%build
%{cargo_build} --features linux-pkg-config
%install
install -D -d -m 0755 %{buildroot}%{_bindir}
# install -m 0755 %{_builddir}/%{name}-%{version}/target/release/%{name} %{buildroot}%{_bindir}/%{name}
ls -lh %{_builddir}/%{name}-%{version}/target/release
ls -lh %{_builddir}/%{name}-%{version}/target/release/%{name}
exit 99
%files
%doc README.md
%license LICENSE-MIT LICENSE-APACHE
%changelog