File flabc.spec of Package flabc

#
# spec file for package flabc
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2007 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:           flabc
Version:        1.3.0
Release:        0
Summary:        An editor that can be used for writing abc files
Summary(de):    Ein Editor um ABC Notation zu schreiben
License:        GPL-2.0
Group:          Productivity/Publishing/Other
URL:            http://www.lautengesellschaft.de/cdmm/
Source:         %{name}-%{version}.tar.bz2
Patch0:         flabc-gccflags.patch
Patch1:         flabc-fltk.patch
BuildRequires:  fltk-devel
BuildRequires:  gcc-c++
BuildRequires:  libX11-devel
BuildRequires:  libXext-devel
Requires:       fltk

%description
flabc is an editor that can be used for writing abc files. The prefix "fl" is an
allusion to the FLTK programming library which is used by flabc.

%prep
%autosetup -p1

%build
cd src/
export CFLAGS="%{optflags}"
export LDFLAGS="-lX11 -lXext"
make %{?_smp_mflags}

%install
cd src/
mkdir -p %{buildroot}%{_bindir}
make PREFIX=%{buildroot}%{_prefix} \
    DOCDIR=%{buildroot}%{_docdir}/%{name} \
    install
# remove from installed docs
rm %{buildroot}%{_docdir}/%{name}/LICENSE

%files
%license LICENSE
%doc CHANGES README.md doc/*
%{_bindir}/*
%{_datadir}/%{name}

%changelog
openSUSE Build Service is sponsored by