Sisyphus
: 19 2019 | : 17691 | : 14355991
en ru br
ALT
S:2.0.2-alt1
5.1: 0.9.28-alt5
4.1: 0.9.24-alt3
4.0: 0.9.24-alt0.M40.2.3.1
+backports:0.9.24-alt2.3
www.altlinux.org/Changes

:: /
: lazarus

             Sources      Gear   Bugs and FR  Repocop 

Name: lazarus
Version: 0.9.28
Release: alt5

Summary: Lazarus Component Library and IDE
License: GPL and modified LGPL
Group: Development/Other
Url: http://www.lazarus.freepascal.org/

Packager: Alexey Shentzev <ashen at altlinux.ru>

Source: %name-%version.tar
Patch1: %name-%version-alt-changes.patch
Patch0: %name-0.9.22-alt-relax-onwine.patch
Patch3: %name-0.9.24-alt-fix-idebar-windowtype.patch

Requires: fpc fpc-src gdb
Requires: glibc-devel glib-devel gdk-pixbuf-devel gtk+-devel libXi-devel libXext-devel libgtk+2-devel
Requires: fonts-bitmap-terminus
Requires: %name-docs = %version
BuildRequires: fpc >= 2.2.4 fpc-utils glibc-devel gdk-pixbuf-devel gtk+-devel libgtk+2-devel libXi-devel desktop-file-utils libXext-devel libXtst-devel

%add_findreq_skiplist %_libdir/%name/examples/*

%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.

%description -l ru_RU.UTF8
Lazarus - свободно-распространяемая, с открытым исходным кодом,
среда для быстрой разработки прикладных программ (Rapid Application
Development tool) на FreePascal, использующая библиотеки компонет LCL
(Lazarus component library).  LCL входят в состав данного пакета.

%package docs
Summary: Lazarus docs
Group: Development/Other
Requires: fpc-docs >= 2.2.4

%description docs
Lazarus docs

%description docs -l ru_RU.UTF8
Документация по Lazarus

%package examples
Summary: Lazarus examples
Group: Development/Other

%description examples
Lazarus examples

%description examples -l ru_RU.UTF8
Примеры программ, созданных с помощью Lazarus

%prep
%setup -n %name
%patch0 -p1
%patch1 -p1
%patch3 -p1
sed -i -e 's,/usr/lib/lazarus/,%_libdir/%name/,g' tools/install/linux/environmentoptions.xml
sed -i -e 's, at version at ,%version,g' tools/install/linux/helpoptions.xml docs/index.ru.html

%build
if [ -n "$FPCCfg" ]; then
 MAKEOPTS=" -n  at $FPCCfg"
fi
export LCL_PLATFORM=gtk2
export FPCDIR=%_libdir/fpc
fpcmake -pwr
make bigide tools lazbuilder lcl ideintf packager/registration OPT="$MAKEOPTS"
./lazbuild --ws="$LCL_PLATFORM" tools/lazdatadesktop/lazdatadesktop.lpr
./lazbuild --ws="$LCL_PLATFORM" tools/explorateur_lrs/LRS_Explorer.lpr
./lazbuild --ws="$LCL_PLATFORM" docs/html/build_lcl_docs.lpr
pushd docs/html
./build_lcl_docs --outfmt html
popd

%install
mkdir -p %buildroot{%_bindir,%_libdir/%name,%_datadir/gnome/apps/Development}

cp -aRf * %buildroot%_libdir/%name/

install -pDm644 images/ide_icon48x48.png %buildroot%_pixmapsdir/lazarus.png
install -pDm644 install/lazarus.desktop %buildroot%_desktopdir/lazarus.desktop
install -D -p -m 0644 tools/install/linux/editoroptions.xml %buildroot%_sysconfdir/%name/editoroptions.xml
install -D -p -m 0644 tools/install/linux/environmentoptions.xml %buildroot%_sysconfdir/%name/environmentoptions.xml
install -D -p -m 0644 tools/install/linux/helpoptions.xml %buildroot%_sysconfdir/%name/helpoptions.xml
mkdir -p %buildroot%_man1dir
install -pDm644 install/man/man1/* %buildroot%_man1dir/

ln -sf ../%_lib/%name/lazarus %buildroot%_bindir/lazarus
ln -sf ../%_lib/%name/startlazarus %buildroot%_bindir/startlazarus
ln -sf ../%_lib/%name/lazbuild %buildroot%_bindir/lazbuild
ln -sf ../%_lib/%name/tools/lazdatadesktop/lazdatadesktop %buildroot%_bindir/lazdatadesktop
ln -sf ../%_lib/%name/tools/explorateur_lrs/LRS_Explorer %buildroot%_bindir/LRS_Explorer
ln -sf ../%_lib/%name/tools/apiwizz/apiwizz %buildroot%_bindir/apiwizz
ln -sf ../%_lib/%name/tools/lazres %buildroot%_bindir/lazres
ln -sf ../%_lib/%name/tools/lrstolfm %buildroot%_bindir/lrstolfm
ln -sf ../%_lib/%name/tools/svn2revisioninc %buildroot%_bindir/svn2revisioninc
ln -sf ../%_lib/%name/tools/updatepofiles %buildroot%_bindir/updatepofiles

# fix bug 13256

mkdir -p %buildroot%_datadir/fpcsrc/packages/fcl-base
mkdir -p %buildroot%_datadir/fpcsrc/rtl/inc

#Docs

mv docs/index.html docs/index.en.html
mv docs/index.ru.html docs/index.html

%files
%_sysconfdir/%name/
%_libdir/%name/
%_bindir/*
%_pixmapsdir/lazarus.png
%_desktopdir/lazarus.desktop
#_man1dir/*
%exclude %_libdir/%name/docs
%exclude %_libdir/%name/examples
%exclude %_libdir/%name/debian
%_libdir/%name/tools
%exclude %_libdir/%name/tools/install
# fix bug 13256
%dir %_datadir/fpcsrc/rtl/inc
%dir %_datadir/fpcsrc/packages/fcl-base
%_man1dir/lazarus-ide.*
%_man1dir/lazbuild.*
%_man1dir/startlazarus.*
%_man1dir/lazres.*
%_man1dir/lrstolfm.*
%_man1dir/svn2revisioninc.*
%_man1dir/svn2revisioninc.*
%_man1dir/updatepofiles.*

%files docs
%doc docs/html/lcl/ docs/images/ docs/*.txt docs/*.html docs/*.pdf

%files examples
%_libdir/%name/examples

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin