2 |
|
|
3 |
Name: %{pypi_name} |
Name: %{pypi_name} |
4 |
Version: 0.9.5 |
Version: 0.9.5 |
5 |
Release: %mkrel 6 |
Release: %mkrel 7 |
6 |
Group: Development/Python |
Group: Development/Python |
7 |
Summary: Tool and library for manipulating LilyPond files |
Summary: Tool and library for manipulating LilyPond files |
8 |
License: GPLv2+ |
License: GPLv2+ |
9 |
URL: https://github.com/wbsoft/python-ly |
URL: https://github.com/wbsoft/python-ly |
10 |
Source0: https://pypi.io/packages/source/p/%{name}/%{name}-%{version}.tar.gz |
Source0: https://pypi.io/packages/source/p/%{name}/%{name}-%{version}.tar.gz |
11 |
BuildArch: noarch |
BuildArch: noarch |
|
BuildRequires: pkgconfig(python2) |
|
|
BuildRequires: python2dist(setuptools) |
|
12 |
|
|
13 |
%description |
%description |
14 |
This package provides a Python library ly containing various Python |
This package provides a Python library ly containing various Python |
16 |
A command line program ly is also provided that can be used to do |
A command line program ly is also provided that can be used to do |
17 |
various manipulations with LilyPond files. |
various manipulations with LilyPond files. |
18 |
|
|
|
%package -n python2-ly |
|
|
Summary: Tool and library for manipulating LilyPond files |
|
|
%{?python_provide:%python_provide python2-ly} |
|
|
|
|
|
%description -n python2-ly |
|
|
This package provides a Python 2 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. |
|
|
|
|
19 |
%package -n python3-ly |
%package -n python3-ly |
20 |
Summary: Tool and library for manipulating LilyPond files |
Summary: Tool and library for manipulating LilyPond files |
21 |
BuildRequires: pkgconfig(python3) |
BuildRequires: pkgconfig(python3) |
31 |
%prep |
%prep |
32 |
%autosetup -p1 -n %{pypi_name}-%{version} |
%autosetup -p1 -n %{pypi_name}-%{version} |
33 |
|
|
|
cp -a . %{py3dir} |
|
|
|
|
34 |
%build |
%build |
|
%py2_build |
|
|
pushd %{py3dir} |
|
35 |
%py3_build |
%py3_build |
|
popd |
|
36 |
|
|
37 |
%install |
%install |
|
%py2_install |
|
|
mv %{buildroot}%{_bindir}/ly %{buildroot}%{_bindir}/python2-ly |
|
|
mv %{buildroot}%{_bindir}/ly-server %{buildroot}%{_bindir}/python2-ly-server |
|
|
|
|
|
pushd %{py3dir} |
|
38 |
%py3_install |
%py3_install |
|
popd |
|
|
|
|
|
%files -n python2-ly |
|
|
%{_bindir}/python2-ly |
|
|
%{_bindir}/python2-ly-server |
|
|
%{python2_sitelib}/* |
|
39 |
|
|
40 |
%files -n python3-ly |
%files -n python3-ly |
41 |
%{_bindir}/ly |
%{_bindir}/ly |