File taginfo.spec of Package taginfo

#
# spec file for package taginfo
#
# Copyright (c) 2024 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:           taginfo
Version:        1.4
Release:        0
Summary:        Simple audio file meta-data viewer
License:        MIT
Group:          Productivity/Multimedia/Other
URL:            https://github.com/marec2000/%{name}
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  gcc-c++
BuildRequires:  taglib-devel >= 1.10

%description
TagInfo is a tiny little program printing out meta-data from an audio file's tag attachments.

%prep
%setup -q

%build
export CXXFLAGS="%{optflags}"
%make_build
%{__strip} -s %{name}

%install
%{__mkdir_p} -p %{buildroot}%{_bindir}
%{__install} -m 0755 -p -t %{buildroot}%{_bindir} %{name}

%check

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%doc README.md
%license LICENSE

%changelog
openSUSE Build Service is sponsored by