Репозиторий Sisyphus
Последнее обновление: 21 октября 2019 | Пакетов: 17510 | Посещений: 15374504
en ru br
Репозитории ALT
S:1.36-alt1.1
5.1: 1.12-alt1.1
4.1: 1.12-alt1.1
4.0: 1.10.1-alt1
www.altlinux.org/Changes

Группа :: Разработка/Python
Пакет: python-module-mutagen

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_with python3
%def_with test
#%%def_with docs
%define modulename mutagen

Name: python-module-%modulename
Version: 1.36
Release: alt1.1
Summary: Helpers for better testing

License: GPLv2
Group: Development/Python
Url: https://github.com/quodlibet/mutagen.git
Packager: Python Development Team <python at packages.altlinux.org>

Source: %name-%version.tar
BuildArch: noarch
BuildRequires: python-devel python-module-setuptools
BuildRequires: python-module-pytest
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
BuildRequires: python3-module-pytest
%endif
%if_with docs
BuildRequires: /usr/bin/sphinx-build
%endif
%py_provides %modulename

%description
Mutagen is a Python module to handle audio metadata. It supports FLAC,
M4A, Musepack, MP3, Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True
Audio, and WavPack audio files. All versions of ID3v2 are supported, and
all standard ID3v2.4 frames are parsed. It can read Xing headers to
accurately calculate the bitrate and length of MP3s. ID3 and APEv2 tags
can be edited regardless of audio format. It can also manipulate Ogg
streams on an individual packet/page level.

%package -n python3-module-%modulename
Summary: Helpers for better testing
Group: Development/Python3
%py3_provides %modulename

%description -n python3-module-%modulename
Mutagen is a Python module to handle audio metadata. It supports FLAC,
M4A, Musepack, MP3, Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True
Audio, and WavPack audio files. All versions of ID3v2 are supported, and
all standard ID3v2.4 frames are parsed. It can read Xing headers to
accurately calculate the bitrate and length of MP3s. ID3 and APEv2 tags
can be edited regardless of audio format. It can also manipulate Ogg
streams on an individual packet/page level.

%package -n %modulename
Summary: Various mutagen (python module to handle audio metadata) binary tools
Group: Sound
Obsoletes: %modulename-py3
Provides: %modulename-py3

%description -n %modulename
%summary

%package docs
Summary: Documentation for mutagen
Group: Development/Documentation
BuildArch: noarch

%description docs
%summary

%prep
%setup
%if_with python3
cp -fR . ../python3-module-%modulename
%endif

%build
%python_build

%if_with python3
pushd ../python3-module-%modulename
%python3_build
popd
%endif

%if_with docs
%make -C docs
%endif

%install
%python_install

%if_with python3
pushd ../python3-module-%modulename
%python3_install
popd
%endif

%if_with test
%check
export LC_ALL=en_US.UTF-8
python setup.py test

%if_with python3
pushd ../python3-module-%modulename
python3 setup.py test
popd
%endif
%endif

%files
%doc COPYING NEWS README.rst
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%modulename
%doc COPYING NEWS README.rst
%python3_sitelibdir/*
%endif

%files -n %modulename
%_bindir/*
%_man1dir/*

%if_with docs
%files docs
%doc docs/_build/*
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin