File abcMIDI.spec of Package abcMIDI

#
# spec file for package abcMIDI
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2022 by Edgar Aichinger
#
# 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:           abcMIDI
Version:        2022.12.30
Release:        0
Summary:        ABC <-> Midi conversion utilities
Summary(de):    ABC <-> Midi Konverter
License:        GPL-2.0-or-later
Group:          Productivity/Multimedia/Sound/Editors and Convertors
URL:            https://ifdo.ca/~seymour/runabc/top.html
Source:         %{name}-%{version}.zip
BuildRequires:  unzip
Provides:       abcmidi
%if 0%{?suse_version}
BuildRequires:  xorg-x11-libXext-devel
%endif

%description
The abcMIDI package contains four programs: abc2midi to convert ABC music
notation to midi, midi2abc to convert midi files to (a first approximation
to) the corresponding ABC, abc2abc to reformat and/or transpose ABC files,
and yaps to typeset ABC files as PostScript.

For a description of the abc syntax, please see the abc userguide
which is a part of the abc2mtex package written by Chris Walshaw.

%prep
%setup -q -n abcmidi

%build
export CFLAGS="%{optflags} -DANSILIBS"
%{_configure}
%make_build -e all

%install
make install prefix=%{buildroot}%{_prefix}

%files
%license doc/gpl.txt
%docdir %{_datadir}/doc/abcmidi
%doc %{_datadir}/doc/abcmidi
%{_mandir}/man1/*
%attr(755,root,root) %{_bindir}/*

%changelog
openSUSE Build Service is sponsored by