File lingot.spec of Package lingot
#
# spec file for package lingot
#
# Copyright (c) 2022 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: lingot
Version: 1.1.1
Release: 3.1
Summary: Is Not a Guitar-Only Tuner
License: GPL-2.0-only
Group: Productivity/Multimedia/Sound/Utilities
URL: https://www.nongnu.org/lingot/
Source: %{name}-%{version}.tar.gz
Patch0: lingot-1.1.1_fix_desktop_file.patch
BuildRequires: alsa-devel
BuildRequires: gcc-c++
BuildRequires: gtk3-devel
BuildRequires: intltool
BuildRequires: libjson-c-devel
BuildRequires: libjack-devel
BuildRequires: libpulse-devel
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
%description
LINGOT is a musical instrument tuner. It's accurate, easy to use,
and highly configurable. Originally conceived to tune electric
guitars, its configurability gives it a more general character.
(Tuning another instruments has not been tested).
It looks like an analogic tuner, with a gauge indicating the
relative shift to a certain note --found automatically as the
closest note to the estimated frequency--, indicating that note
and its frequency.
The note will be found automatically, since the program hasn't
any manual function mode (indicating the note to tune manually),
for mantaining its general purpose.
We recommend using the tuner in conjunction with a sound mixer
for selecting the desired recording source and the signal
recording levels.
%package devel
Summary: %{summary}
Group: Development/Tools/Other
Requires: %{name}
%description devel
This package contains the headers and shared libraries for %{name}.
NOTE: The library is currently experimental and its interface is subject to
change.
%lang_package
%prep
%autosetup
%build
%configure
%make_build
%install
%make_install
#remove unused doc dir
rm -r %{buildroot}%{_datadir}/doc/%{name}
# Delete static libraries
find %{buildroot}/%{_libdir}/ -name "liblingot.*a" -delete
%find_lang %{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files lang -f %{name}.lang
%files
%license COPYING
%doc AUTHORS README
%{_bindir}/%{name}
%{_datadir}/applications/org.nongnu.lingot.desktop
%{_datadir}/icons/hicolor/scalable/apps/org.nongnu.%{name}.svg
%{_mandir}/man1/lingot.1%{?ext_man}
%{_datadir}/metainfo/org.nongnu.lingot.appdata.xml
%{_libdir}/liblingot.so.0
%{_libdir}/liblingot.so.0.0.0
%files devel
%{_includedir}/%{name}
%{_libdir}/liblingot.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog