2024-01-05 22:31:44 +01:00
|
|
|
Name: fpc
|
2024-01-05 22:31:44 +01:00
|
|
|
Version: 3.0.0
|
2024-01-05 22:31:44 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A Turbo Pascal 7.0 and Delphi compatible 32bit Pascal Compiler
|
|
|
|
Group: Applications/Development
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.freepascal.org/
|
|
|
|
Source: http://downloads.sourceforge.net/project/freepascal/Source/%{version}/fpcbuild-%{version}.zip
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 22:31:44 +01:00
|
|
|
BuildRequires: dos2unix
|
2024-01-05 22:31:44 +01:00
|
|
|
Requires(post): %{__install_info}
|
|
|
|
Requires(preun): %{__install_info}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Free Pascal is a 32, 64 and 16 bit professional Pascal compiler. It can target multiple processor architectures: Intel x86, AMD64/x86-64, PowerPC, PowerPC64, SPARC, and ARM. Supported operating systems include Linux, FreeBSD, Haiku, Mac OS X/iOS/Darwin, DOS, Win32, Win64, WinCE, OS/2, MorphOS, Nintendo GBA, Nintendo DS, and Nintendo Wii. Additionally, support for the JVM, MIPS (big and little endian variants), i8086, Motorola 68k and AArch64 architectures is available in the development versions.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}build-%{version}
|
|
|
|
if [ ! -e %{_bindir}/fpc ]; then
|
|
|
|
# bootstrap
|
|
|
|
%ifarch %{ix86}
|
|
|
|
BINARY_ARCH=i386
|
|
|
|
%else
|
|
|
|
BINARY_ARCH=%{_target_cpu}
|
|
|
|
%endif
|
|
|
|
BINARY_SRC="ftp://gd.tuwien.ac.at/languages/pascal/fpc/dist/2.6.4/$BINARY_ARCH-linux/fpc-2.6.4.$BINARY_ARCH-linux.tar"
|
|
|
|
curl $BINARY_SRC -o fpc.tar
|
|
|
|
tar xf fpc.tar
|
|
|
|
mv fpc-2.6.4.$BINARY_ARCH-linux bootstrap
|
|
|
|
cd bootstrap
|
|
|
|
echo `pwd`/../bootstrap | ./install.sh
|
|
|
|
fi
|
|
|
|
|
2024-01-05 22:31:44 +01:00
|
|
|
dos2unix ./fpcsrc/compiler/utils/samplecfg
|
|
|
|
dos2unix ./install/beos/samplecfg
|
|
|
|
|
2024-01-05 22:31:44 +01:00
|
|
|
%build
|
2024-01-05 22:31:44 +01:00
|
|
|
if [ ! -e %{_bindir}/fpc ]; then
|
2024-01-05 22:31:44 +01:00
|
|
|
%make build NOGDB=1 FPCPROG=`pwd`/bootstrap/bin/fpc
|
2024-01-05 22:31:44 +01:00
|
|
|
else
|
|
|
|
%make build NOGDB=1
|
|
|
|
fi
|
2024-01-05 22:31:44 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 22:31:44 +01:00
|
|
|
if [ ! -e %{_bindir}/fpc ]; then
|
2024-01-05 22:31:44 +01:00
|
|
|
%makeinstall \
|
|
|
|
INSTALL_PREFIX=%{buildroot}%{_prefix} \
|
|
|
|
INSTALL_MANDIR=%{buildroot}%{_mandir} \
|
|
|
|
NOGDB=1 FPCPROG=`pwd`/bootstrap/bin/fpc
|
2024-01-05 22:31:44 +01:00
|
|
|
else
|
|
|
|
%makeinstall \
|
|
|
|
INSTALL_PREFIX=%{buildroot}%{_prefix} \
|
|
|
|
INSTALL_MANDIR=%{buildroot}%{_mandir} \
|
|
|
|
NOGDB=1
|
|
|
|
fi
|
2024-01-05 22:31:44 +01:00
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
ln -s %{_prefix}/lib/fpc/%{version}/ppcx64 %{buildroot}%{_bindir}/ppcx64
|
|
|
|
%endif
|
|
|
|
%ifarch %{ix86}
|
|
|
|
ln -s %{_prefix}/lib/fpc/%{version}/ppc386 %{buildroot}%{_bindir}/ppc386
|
|
|
|
%endif
|
|
|
|
%ifarch arm
|
|
|
|
ln -s %{_prefix}/lib/fpc/%{version}/ppcarm %{buildroot}%{_bindir}/ppcarm
|
|
|
|
%endif
|
|
|
|
|
|
|
|
install -d %{buildroot}%{_sysconfdir}
|
|
|
|
%{buildroot}%{_prefix}/lib/fpc/%{version}/samplecfg \
|
|
|
|
%{buildroot}%{_prefix}/lib/fpc/%{version} \
|
|
|
|
%{buildroot}%{_sysconfdir}
|
|
|
|
|
|
|
|
# use -fPIC by default
|
|
|
|
cat >> %{buildroot}%{_sysconfdir}/fpc.cfg << _EOF
|
|
|
|
#ifdef cpux86_64
|
|
|
|
# for x86_64 use -fPIC by default
|
|
|
|
-Cg
|
|
|
|
#endif
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
%find_lang %{name} || touch %{name}.lang
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config %{_sysconfdir}/fpc.cfg
|
|
|
|
%config %{_sysconfdir}/fppkg.cfg
|
|
|
|
%dir %{_sysconfdir}/fppkg
|
|
|
|
%config %{_sysconfdir}/fppkg/default
|
|
|
|
%{_bindir}/*
|
|
|
|
%dir %{_prefix}/lib/fpc
|
|
|
|
%dir %{_prefix}/lib/fpc/%{version}
|
|
|
|
%{_prefix}/lib/fpc/%{version}/*
|
2024-01-05 22:31:44 +01:00
|
|
|
%dir %{_prefix}/lib/fpc/2.6.4
|
|
|
|
%{_prefix}/lib/fpc/2.6.4/*
|
2024-01-05 22:31:44 +01:00
|
|
|
%dir %{_prefix}/lib/fpc/lexyacc
|
|
|
|
%{_prefix}/lib/fpc/lexyacc/*
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
%{_mandir}/man5/*.5*
|
2024-01-05 22:31:44 +01:00
|
|
|
%{_docdir}/fpc-2.6.4/*
|
2024-01-05 22:31:44 +01:00
|
|
|
%doc fpcsrc/rtl/COPYING.FPC
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 22:31:44 +01:00
|
|
|
* Thu Dec 10 2015 Automatic Build System <autodist@mambasoft.it> 3.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:31:44 +01:00
|
|
|
* Sun Oct 25 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.4-1mamba
|
|
|
|
- package created using the webbuild interface
|