File python-ly.spec of Package python-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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ly
Version: 0.9.5
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: %{name}-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: fdupes
BuildRequires: python-devel
%if 0%{?suse_version} >= 1320
BuildRequires: python-distribute
BuildRequires: python3
%else
BuildRequires: %{python_module distribute}
%endif
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
%python_subpackages
%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
%build
%python_build
%install
%python_install --prefix=%{_prefix} --root=%{buildroot}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%defattr(-,root,root)
%doc ChangeLog README.rst
%python3_only %{_bindir}/ly
%python3_only %{_bindir}/ly-server
%{python_sitelib}/*
%changelog