2024-11-30 17:14:05 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
2024-01-06 03:34:04 +01:00
|
|
|
Name: lazarus
|
2025-01-19 19:54:57 +01:00
|
|
|
Version: 3.8
|
2024-01-06 03:34:04 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A Delphi compatible cross-platform IDE for Rapid Application Development
|
|
|
|
Group: Graphical Desktop/Applications/Development
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-11-30 17:14:05 +01:00
|
|
|
URL: https://www.lazarus-ide.org/
|
|
|
|
Source: http://downloads.sourceforge.net/project/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%20%{majver}/lazarus-%{version}-0.tar.gz
|
2024-01-06 03:34:04 +01:00
|
|
|
License: GPL, LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: libperl
|
2024-11-30 17:14:05 +01:00
|
|
|
BuildRequires: libqt6pas-devel
|
2024-01-06 03:34:04 +01:00
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: fpc
|
2024-11-30 17:14:05 +01:00
|
|
|
BuildRequires: fpc-src
|
2024-01-06 03:34:04 +01:00
|
|
|
Requires: fpc
|
|
|
|
|
|
|
|
%description
|
|
|
|
Lazarus is a Delphi compatible cross-platform IDE for Rapid Application Development. It has variety of components ready for use and a graphical form designer to easily create complex graphical user interfaces.
|
|
|
|
|
2024-11-30 17:14:05 +01:00
|
|
|
|
|
|
|
# Instruct fpmake to build in parallel
|
|
|
|
%global fpmakeopt %{?_smp_build_ncpus:FPMAKEOPT='-T %{_smp_build_ncpus}'}
|
|
|
|
|
|
|
|
# Preferred compilation options - enable GDB debuginfo in DWARF format, plus some optimisations
|
|
|
|
%global fpcopt -g -gl -gw -O3
|
|
|
|
|
2024-01-06 03:34:04 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}
|
|
|
|
|
|
|
|
%build
|
2024-11-30 17:14:05 +01:00
|
|
|
# Remove the files for building other packages
|
|
|
|
rm -rf debian
|
|
|
|
pushd tools
|
|
|
|
find install -depth -type d ! \( -path "install/linux/*" -o -path "install/linux" -o -path "install" \) -exec rm -rf '{}' \;
|
|
|
|
popd
|
|
|
|
|
|
|
|
# Compile some basic targets required by everything else
|
|
|
|
make registration %{fpmakeopt} OPT='%{fpcopt}'
|
|
|
|
|
|
|
|
# Compile lazbuild - required to build other targets
|
|
|
|
make lazbuild %{fpmakeopt} OPT='%{fpcopt}'
|
|
|
|
|
|
|
|
# Compile LCL base (Lazarus Component Library) for the "nogui" widgetset
|
|
|
|
make lcl %{fpmakeopt} OPT='%{fpcopt}' LCL_PLATFORM=nogui
|
|
|
|
|
|
|
|
# Compile extra tools
|
|
|
|
make tools %{fpmakeopt} OPT='%{fpcopt}'
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH="$PWD/lcl/interfaces/qt6/cbindings/"
|
|
|
|
|
|
|
|
# Compile the LCL base + extra components for GUI widgetsets
|
|
|
|
for WIDGETSET in gtk3 qt qt6; do
|
|
|
|
make lcl basecomponents bigidecomponents %{fpmakeopt} OPT='%{fpcopt}' LCL_PLATFORM="${WIDGETSET}"
|
|
|
|
done
|
|
|
|
|
|
|
|
# build Qt6 IDE
|
|
|
|
make bigide %{fpmakeopt} OPT='%{fpcopt}' LCL_PLATFORM=qt6
|
2024-01-06 03:34:04 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-11-30 17:14:05 +01:00
|
|
|
%makeinstall INSTALL_PREFIX=%{buildroot}%{_prefix} _LIB=%{_lib}
|
2024-01-06 03:34:04 +01:00
|
|
|
|
2024-11-30 17:14:05 +01:00
|
|
|
#%find_lang %{name} || touch %{name}.lang
|
2024-01-06 03:34:04 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-11-30 17:14:05 +01:00
|
|
|
%files
|
|
|
|
#-f %{name}.lang
|
2024-01-06 03:34:04 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/lazarus-ide
|
|
|
|
%{_bindir}/lazbuild
|
|
|
|
%{_bindir}/lazres
|
|
|
|
%{_bindir}/lrstolfm
|
|
|
|
%{_bindir}/startlazarus
|
|
|
|
%{_bindir}/updatepofiles
|
|
|
|
%{_datadir}/applications/lazarus.desktop
|
|
|
|
%{_datadir}/icons/hicolor/48x48/mimetypes/*.png
|
|
|
|
%dir %{_datadir}/lazarus
|
|
|
|
%{_datadir}/lazarus/*
|
|
|
|
%{_mandir}/man1/lazarus-ide.1*
|
|
|
|
%{_mandir}/man1/lazbuild.1*
|
|
|
|
%{_mandir}/man1/lazres.1*
|
|
|
|
%{_mandir}/man1/lrstolfm.1*
|
|
|
|
%{_mandir}/man1/startlazarus.1*
|
|
|
|
%{_mandir}/man1/svn2revisioninc.1*
|
|
|
|
%{_mandir}/man1/updatepofiles.1*
|
|
|
|
%{_datadir}/mime/packages/lazarus.xml
|
|
|
|
%{_datadir}/pixmaps/lazarus.png
|
|
|
|
%doc COPYING.GPL.txt COPYING.LGPL.txt COPYING.modifiedLGPL.txt COPYING.txt
|
|
|
|
|
|
|
|
%changelog
|
2025-01-19 19:54:57 +01:00
|
|
|
* Sun Jan 19 2025 Automatic Build System <autodist@openmamba.org> 3.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-11-30 17:14:05 +01:00
|
|
|
* Wed Nov 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 3.6-1mamba
|
|
|
|
- update to 3.6
|
|
|
|
|
|
|
|
* Sat Feb 27 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-1mamba
|
|
|
|
- update to 1.6.0
|
|
|
|
|
2024-01-06 03:34:04 +01:00
|
|
|
* Sun Oct 25 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.4-1mamba
|
|
|
|
- package created using the webbuild interface
|