[devel] И снова lazarus, точнее lazrus & Qt & sisphus

Шенцев Алексей Шенцев Алексей
Сб Июн 9 13:37:02 MSD 2007


Привет всем!

Пытаюсь собрать lazarus по такому спеку:

-(ashen на oasu3)-(~/RPM/SPECS)-> cat lazarus.spec
Name:           lazarus
Version:        0.9.22
Release:        alt2
Summary:        Lazarus Component Library and IDE
Group:          Development/Other
License:        GPL and modified LGPL
URL:            http://www.lazarus.freepascal.org/
Source0:        %name-%version-1.tar.gz
Packager:       Alexey Shentzev <ashen на altlinux.ru>

Requires:       fpc, fpc-src, gdb
# NOTE: without the symlink trick for gtk1, it requires the devel packages.

# Automatically added by buildreq on Sun Jun 03 2007 (-ba)
BuildRequires: fpc >= 2.1.4 gdk-pixbuf-devel gtk+-devel libgtk+2-devel 
libXi-devel libxmlsec1-nss packages-info-i18n-common

%description
Lazarus is a free and open source Rapid Application Development tool for
the FreePascal compiler using the Lazarus component library - LCL. The LCL
is included in this package.

%prep
%setup -q -n %name

%build
export LCL_PLATFORM=qt
if [ -n "$FPCCfg" ]; then
  MAKEOPTS="$MAKEOPTS -n @$FPCCfg"
fi
make bigide OPT="$MAKEOPTS" USESVN2REVISIONINC=0
make tools OPT="$MAKEOPTS"
make lazbuilder OPT="$MAKEOPTS"
make lcl ideintf packager/registration bigide OPT="$MAKEOPTS"

%install
mkdir -p %buildroot%_libdir/%name
mkdir -p %buildroot%_bindir
mkdir -p %buildroot%_datadir/pixmaps
mkdir -p %buildroot%_datadir/gnome/apps/Development
mkdir -p %buildroot%_datadir/applications
mkdir -p %buildroot%_mandir/man1
cp -aRf * %buildroot%_libdir/%name/


images/ide_icon48x48.png %buildroot%_datadir/pixmaps/lazarus.png
install/lazarus.desktop %buildroot%_datadir/applications/lazarus.desktop

install -p docs/lazbuild.1 %buildroot%_man1dir/lazbuild.1
install -p -m 644 
images/ide_icon48x48.png %buildroot%_datadir/pixmaps/lazarus.png
install -p -m 644 
install/lazarus.desktop %buildroot%_datadir/applications/lazarus.desktop

ln -sf ../%_lib/%name/lazarus %buildroot%_bindir/lazarus
ln -sf ../%_lib/%name/startlazarus %buildroot%_bindir/startlazarus
ln -sf ../%_lib/%name/lazbuild %buildroot%_bindir/lazbuild

%post
%update_menus

%postun
%clean_menus

%files
%_libdir/%name/
%_bindir/*
%_datadir/pixmaps/lazarus.png
%_datadir/applications/lazarus.desktop
%_mandir/*/*
%exclude %_libdir/%name/docs
%exclude %_libdir/%name/examples
#%exclude %_libdir/%name/lcl
%exclude %_libdir/%name/tools
%exclude %_libdir/%name/debian

# docs
%package docs
Summary: Lazarus docs
Group: Development/Other
Requires: %name = %version-%release

%description docs
Lazarus docs

%files docs
%_libdir/%name/docs
#end docs

# examples
%package examples
Summary: Lazarus examples
Group: Development/Other
Requires: %name = %version-%release

%description examples
Lazarus examples

%files examples
%_libdir/%name/examples
#end examples

# tools
%package tools
Summary: Lazarus tools
Group: Development/Other
Requires: %name = %version-%release

%description tools
Lazarus tools

%files tools
%_libdir/%name/tools
%exclude %_libdir/%name/tools/install
#end tools

%changelog

При сборке получаю такое:

Linking ../lazarus
/usr/bin/ld: cannot find -lqt4intf
lazarus.pp(119,1) Error: Error while linking
lazarus.pp(119,1) Fatal: There were 1 errors compiling module, stopping                                                      

Библиотека libqt4intf находится в /usr/lib, ldconfig запускал.

Всё что нашёл в инете (может плохо искал):
http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=printview&t=2446&start=0

Что я не так делаю?
-- 
С уважением Шенцев Алексей Владимирович.
E-mail: ashen на nsrz.ru
XMPP: ashen на altlinux.org, AlexShen на jabber.ru
ICQ: 271053845



Подробная информация о списке рассылки Devel