File abctab2ps.spec of Package abctab2ps

# spec file for package abctab2ps
#
# Copyright (c) 2007 by Edgar Aichinger
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to edogawa@aon.at
#
#
# norootforbuild
%if 0%{?fedora_version}
%global debug_package %{nil}
%endif

BuildRequires:  gcc-c++
Summary:      A program to output abc music and tabulature as Postscript
Summary(de):  Ein Programm um ABC Musik und Tabulatur als Postscript auszugeben
Name:         abctab2ps
Version:      1.9.0
Release:      0.1
Source:       %{name}-%{version}.tar.xz
Patch0:       %{name}-stringconversion.patch
# Patch1:       %%{name}-nonvoid.patch
Group:        Productivity/Publishing/Other
License:      GPL-2.0+
URL:          http://www.lautengesellschaft.de/cdmm/

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
abctab2ps is a music and tablature typesetting program which translates an input file 
in the abc language into postscript. It is based on Michael Methfessel's program abc2ps. 
While abc2ps can only typeset music, abctab2ps is an extension by Christoph Dalitz that 
can also handle lute tablature.

Authors:
--------
    Christoph Dalitz <christoph (dot) dalitz (at) hs-niederrhein (dot) de>

%prep
%autosetup -p1

%build
cd src/
%__make %{?jobs:-j%{jobs}}

%install
%__rm -rf %{buildroot}
#                       /usr/bin/
cd src/
mkdir -p %{buildroot}/usr/bin
make PREFIX=%{buildroot}/usr \
%if 0%{?suse_version}
    DOCDIR=%{buildroot}/usr/share/doc/packages/%{name} \
%endif
    MANDIR=%{buildroot}/usr/share/man/man1 \
    install

# remove installed documentation, handled by %doc in %files
%if %{defined fedora}
rm -rf %{buildroot}/usr/share/doc/%{name}
%else
rm -rf %{buildroot}/usr/share/doc/packages/%{name}

%endif

%clean
%__rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%doc CHANGES LICENSE README.md
%doc doc/*.html doc/manpages/*.html
%doc doc/userguide/html/* doc/examples/*.abc doc/examples/Readme
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/%{name}*

%changelog
openSUSE Build Service is sponsored by