File opuscomment.spec of Package opuscomment

#
# spec file for package opuscomment
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2024 Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net>
#
# 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:           opuscomment
Version:        1.5.12
Release:        0
Summary:        Utility to edit Ogg Opus
License:        MIT
Group:          Productivity/Multimedia/Sound/Editors and Convertors
URL:            https://github.com/hcmiya/opuscomment
Source0:        %{name}-%{version}.tar.gz
# undefined references if -l flags are not at the end
Patch0:         Makefile.patch
BuildRequires:  pkgconfig
BuildRequires:  posix_cc
BuildRequires:  pkgconfig(ogg)

%description
opuscomment is a utility for editing output gain and tags of Ogg Opus.

%prep
%autosetup -p1

%build
%make_build

%install
install -d %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
install src/%{name} %{buildroot}%{_bindir}
install -m0644 doc/man/man1/%{name}.1 %{buildroot}%{_mandir}/man1

%files
%license LICENSE
%doc README.md README.ja.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by