Alexei_VM , перестаньте. Я уже видел профессиональные пакеты, которые собираются профессионалами, не тестируются и потом не устанавливаются, но называются профессиональными и в них буквы alt присутствуют. Много таких пакетов. Я же собираю пакет и проверяю его работоспособность вручную. Так что не перегибайте палки. Я подумаю насчёт убрать буквы альт. А рядом расположу с буквами альт, не мною, профессионалами Альта собранные kompozer, checkinstall, qjackctl, lmms... поищу ещё, не переживайте...Я не выложу свои пакеты, пока не проверю, что они работоспособные, в отличие от некоторых товарищей, которые потом баги ждут, жалуются на недостаток времени исправить и, короче...
Drool, благодаря вашей подсказке, насчёт утилиты rpm-utils, я очень далеко продвинулся, спасибо вам огромное!!! Но, я понял, что с её помощью смогу и cgkit правильно собрать, но что-то не получается у меня. С командой buildreq -bi python-module-cgkit.spec у меня вот что показывает терминал:
Выполняется(%install): /bin/sh -e /home/lanuhum/tmp/rpm-tmp.98089
+ umask 022
+ /bin/mkdir -p /home/lanuhum/RPM/BUILD
+ cd /home/lanuhum/RPM/BUILD
+ /bin/chmod -Rf u+rwX -- /home/lanuhum/tmp/python-module-cgkit-buildroot
+ :
+ /bin/rm -rf -- /home/lanuhum/tmp/python-module-cgkit-buildroot
+ cd cgkit-2.0.0alpha8
+ /usr/bin/python2.5 setup.py install --prefix=/usr
Updating version in the cgkitinfo module...
Version: 2.0.0alpha8 (Jan 06 2009, 19:06)
======================================================================
3DS importer: disabled
VRML/X3D importer: disabled
OpenSceneGraph: disabled
OGRE: disabled
3DXWare: disabled
Wintab: disabled
Glove module: disabled
======================================================================
Include paths (INC_DIRS):
supportlib/include
Library paths (LIB_DIRS):
supportlib/lib
Libraries to link with (LIBS):
boost_python, core, GL, GLU
======================================================================
running install
running build
running build_py
copying cgkit/cgkitinfo.py -> build/lib.linux-x86_64-2.5/cgkit
running build_ext
running build_scripts
running install_lib
creating /usr/lib64/python2.5/site-packages/cgkit
error: could not create '/usr/lib64/python2.5/site-packages/cgkit': Permission denied
ошибка: Неверный код возврата из /home/lanuhum/tmp/rpm-tmp.98089 (%install)
Ошибки сборки пакетов:
Неверный код возврата из /home/lanuhum/tmp/rpm-tmp.98089 (%install)
[lanuhum@localhost spec]$
Я так понимаю, что снова build проходит в /local. Я посмотрел в --help, и так и не сообразил, что нужно, чтобы корректно происходило всё:
[lanuhum@localhost ~]$ cd /home/lanuhum/tools/build/sources/cgkit-2.0.0alpha8/
[lanuhum@localhost cgkit-2.0.0alpha8]$ python setup.py build --help
----------------------------------------------------------------------
Warning: No config file available (config.cfg)
----------------------------------------------------------------------
Updating version in the cgkitinfo module...
Version: 2.0.0alpha8 (Jan 06 2009, 19:05)
======================================================================
3DS importer: disabled
VRML/X3D importer: disabled
OpenSceneGraph: disabled
OGRE: disabled
3DXWare: disabled
Wintab: disabled
Glove module: disabled
======================================================================
Include paths (INC_DIRS):
supportlib/include
Library paths (LIB_DIRS):
supportlib/lib
Libraries to link with (LIBS):
boost_python, core, GL, GLU
======================================================================
Common commands: (see '--help-commands' for more)
setup.py build will build the package underneath 'build/'
setup.py install will install the package
Global options:
--verbose (-v) run verbosely (default)
--quiet (-q) run quietly (turns verbosity off)
--dry-run (-n) don't actually do anything
--help (-h) show detailed help message
Options for 'build' command:
--build-base (-b) base directory for build library
--build-purelib build directory for platform-neutral distributions
--build-platlib build directory for platform-specific distributions
--build-lib build directory for all distribution (defaults to either
build-purelib or build-platlib
--build-scripts build directory for scripts
--build-temp (-t) temporary build directory
--compiler (-c) specify the compiler type
--debug (-g) compile extensions and libraries with debugging
information
--force (-f) forcibly build everything (ignore file timestamps)
--executable (-e) specify final destination interpreter path (build.py)
--help-compiler list available compilers
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
... finished setup
[lanuhum@localhost cgkit-2.0.0alpha8]$
Спек мой вот:
# test new macroses
%define python_build %__python setup.py build
%define python_install %__python setup.py install --prefix=/usr
Name: python-module-cgkit
Version: 2.0.0
Release: alt1
Summary: The Python Computer Graphics Kit
Group: Development/Python
License: LGPL
Url: http://cgkit.sourceforge.net/index.html
Packager: LanuHum <LanuHum@yandex.ru>
Source: http://cgkit.sourceforge.net/cgkit-2.0.0alpha8.tar.gz
%setup_python_module cgkit
%define python_includedir %_includedir/python%__python_version
%description
The Python Computer Graphics Kit is an Open Source software package containing a collection of Python modules, plugins and utilities that are meant to be useful for any domain where you have to deal with 3D data of any kind, be it for visualization, creating photorealistic images, Virtual Reality or even games.
%prep
%setup -q -n %modulename-%{version}alpha8
cd supportlib
scons
%build
%python_build
%install
%python_install
%files
%_bindir/*.py
%python_sitelibdir/%modulename/
%changelog