[devel] sisyphus_check / file on RPM spec
Mikhail Yakshin
greycat на altlinux.ru
Пн Май 16 12:41:17 MSD 2005
Dmitry V. Levin пишет:
> On Sun, May 15, 2005 at 06:21:54PM +0400, Mikhail Yakshin wrote:
>
>>Расскажите, что я делаю не так: есть некий спек, на который file
>>говорит, что он:
>>
>>$ file python-module-musicbrainz.spec
>>python-module-musicbrainz.spec: UTF-8 Unicode English text
>>
>>В результате чего sisyphus_check ругается на этот тип файла, потому как
>>оно умеет принимать из UTF-8 файлов только, например, такие:
>>
>>$ file python-module-ctypes.spec
>>python-module-ctypes.spec: UTF-8 Unicode text
>>
>>Чем отличается этот Unicode English text от Unicode text и что сделать,
>>чтобы он прошел sisyphus_check? Спек на всякий случай прилагаю...
>
>
> http://www.google.ru/search?hl=ru&ie=koi8-r&q="первые 256" site:lists.altlinux.ru
> - не оно?
Нет, не принципиально. Сделал так, чтобы в первых 256 не было
non-usascii. Прикладываю файл.
Вот что получается:
$ head -c256 python-module-musicbrainz.spec
# -*- coding: utf-8 -*-
%define version 1.0b3
%define release alt1
%setup_python_module musicbrainz
Summary: Python binding for libmusicbrainz
Name: %packagename
Version: %version
Release: %release
Source: python-%modulename-%version-picard.tar.gz
Licens
$ file python-module-musicbrainz.spec
python-module-musicbrainz.spec: UTF-8 Unicode English text
Может все-таки запатчить что-нибудь?
--
WBR, Mikhail Yakshin AKA GreyCat
ALT Linux [http://www.altlinux.ru] [xmpp:greycat на altlinux.org]
----------- следущая часть -----------
# -*- coding: utf-8 -*-
%define version 1.0b3
%define release alt1
%setup_python_module musicbrainz
Summary: Python binding for libmusicbrainz
Name: %packagename
Version: %version
Release: %release
Source: python-%modulename-%version-picard.tar.gz
License: GPL
Group: Development/Python
Prefix: %_prefix
Url: http://musicbrainz.org/
Summary(ru_RU.UTF-8): п·п╠п╣я─я┌п╨п╟ п╫п╟ Python п╢п╩я▐ п╢п╬я│я┌я┐п©п╟ п╨ libmusicbrainz
Requires: python-module-ctypes
BuildRequires: python-module-ctypes
%description
This is a straight python to c binding for libmusicbrainz. It uses
ctypes to avoid having to write c code. This module is used primarily
within Picard - the next generation MusicBrainz tagger.
This module is built for python %__python_version
%description -l ru_RU.UTF-8
п╜я┌п╬я┌ п╪п╬п╢я┐п╩я▄ п©я─п╣п╢п╬я│я┌п╟п╡п╩я▐п╣я┌ п╢п╬я│я┌п╟я┌п╬я┤п╫п╬ п©я─п╬я│я┌я┐я▌ п╦ п©я─я▐п╪я┐я▌ п╬п╠п╣я─я┌п╨я┐ п╫п╟
Python п╢п╩я▐ п╠п╦п╠п╩п╦п╬я┌п╣п╨п╦ libmusicbrainz п╫п╟ C. п·п╫ п╦я│п©п╬п╩я▄п╥я┐п╣я┌ ctypes, я┤я┌п╬п╠я▀
п╫п╣ п©п╦я│п╟я┌я▄ п╫п╦п╨п╟п╨п╬пЁп╬ п╢п╬п©п╬п╩п╫п╦я┌п╣п╩я▄п╫п╬пЁп╬ п╨п╬п╢п╟ п╫п╟ C. п╜я┌п╬я┌ п╪п╬п╢я┐п╩я▄ п╡ п╬я│п╫п╬п╡п╫п╬п╪
п©я─п╣п╢п╫п╟п╥п╫п╟я┤п╣п╫ п╢п╩я▐ п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╫п╦я▐ п╡ Picard - я┌я█пЁпЁп╣я─п╣ MusicBrainz п╫п╬п╡п╬пЁп╬
п©п╬п╨п╬п╩п╣п╫п╦я▐.
п╜я┌п╬я┌ п╪п╬п╢я┐п╩я▄ я│п╬п╠я─п╟п╫ п╢п╩я▐ Python п╡п╣я─я│п╦п╦ %__python_version
%package -n python-%modulename-doc
Summary: %modulename example programs
Summary(ru_RU.UTF-8): п÷я─п╦п╪п╣я─я▀ п©я─п╬пЁя─п╟п╪п╪ п╢п╩я▐ %modulename
Group: Development/Python
Prefix: %_prefix
Requires: python-%modulename = %version
%description -n python-%modulename-doc
%modulename provides Python to C binding for libmusicbrainz. Install
python-%modulename-doc if you need examples for this module.
%description -n python-%modulename-doc -l ru_RU.UTF-8
%modulename п©я─п╣п╢п╬я│я┌п╟п╡п╩я▐п╣я┌ п╬п╠п╬п╩п╬я┤п╨я┐ Python п╢п╩я▐ п╠п╦п╠п╩п╦п╬я┌п╣п╨п╦
libmusicbrainz п╫п╟ C. пёя│я┌п╟п╫п╬п╡п╦я┌п╣ python-%modulename-doc, п╣я│п╩п╦ п▓п╟п╪
я┌я─п╣п╠я┐я▌я┌я│я▐ п©я─п╦п╪п╣я─я▀ п©я─п╬пЁя─п╟п╪п╪ я│ п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╫п╦п╣п╪ п╢п╟п╫п╫п╬пЁп╬ п╪п╬п╢я┐п╩я▐.
%prep
%setup -q -n python-%modulename-%version-picard
%build
mkdir -p buildroot
CFLAGS="%optflags" %__python setup.py \
install --optimize=2 \
--root=`pwd`/buildroot \
--record=INSTALLED_FILES
%install
%__mkdir_p %buildroot
cp -pr buildroot/* %buildroot
unset RPM_PYTHON
%files -f INSTALLED_FILES
%doc README COPYING
%files -n python-%modulename-doc
%doc examples
%changelog
* Sun May 15 2005 Mikhail Yakshin <greycat на altlinux.ru> 1.0b3-alt1
- Initial build for ALT Linux
Подробная информация о списке рассылки Devel