File python3-ly.spec of Package python3-ly
#
# spec file for package python-ly
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: python3-ly
Version: 0.9.4
Release: 0
License: GPL-2.0
Summary: Python library to parse LilyPond files
Url: https://pypi.python.org/pypi/python-ly
Group: Productivity/Multimedia/Sound/Editors and Converters
Source: python-ly-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python3-devel
BuildRequires: python3-distribute
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
This package provides a Python library ly containing various Python modules
to parse, manipulate or create documents in LilyPond format. A command line
program ly is also provided that can be used to do various manipulations
with LilyPond files.
%prep
%setup -q -n python-ly-%{version}
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes %{buildroot}%{_prefix}
%files
%defattr(-,root,root)
%doc ChangeLog README.rst
%{_bindir}/ly
%{_bindir}/ly-server
%{python3_sitelib}/*
%changelog