1 Summary: 32-bit compiler for the i386 and m68k processors
2 Summary(pl): 32 bitowy kompilator dla procesorów i386 i m68k
7 Group: Development/Languages
8 Group(pl): Programowanie/Jêzyki
9 Vendor: Michael Van Canneyt <michael@tfdec1.fys.kuleuven.ac.be>
10 Source0: ftp://gdzies.w.be/pub/fpc/%{name}-%{version}.ELF.tar.gz
11 Source1: fpc-sample.cfg
12 URL: http://www.freepascal.org/
13 ExclusiveArch: %{ix86} m68k
14 Buildroot: /tmp/%{name}-%{version}-root
17 Free Pascal is a 32-bit compiler for the i386 and m68k processors.
18 Free Pascal is designed to be, as much as possible, source compatible with
19 Turbo Pascal 7.0 and Delphi 4 (although this goal is not yet attained),
20 but it also enhances these languages with elements like function
21 overloading. And, unlike these ancestors, it supports multiple platforms.
24 Free Pascal to 32 bitowy kompilator dla procesorów i386 oraz m86k.
25 Free Pascal zosta³ zaprojektowany by byæ (jak tylko to mo¿liwe)
26 kompatybilnym z Turbo Pascal 7.0 oraz Delphi 4. Free Pascal równie¿
27 rozszerza te jêzyki elementami takimi jak prze³adowywanie funkcji.
30 Summary: Free Pascal Compiler documentation
31 Summary(pl): Dokumentacja do kompilatora Free Pascal
33 Group(pl): Dokumentacja
34 Requires: %{name} = %{version}
37 Documentation for fpc HTML format.
39 %description -l pl doc
40 Dokumentacja do fpc w formacie HTML.
44 mkdir sources && cd sources && tar -xzf ../sources.tar.gz \
45 && tar -xzf ../libs.tar.gz && tar -xzf ../bins.tar.gz \
46 && mkdir ../doc && cd ../doc && tar -xzf ../docs.tar.gz && cd ..
50 cp base/{Makefile,makefile.fpc} .
52 # Currently we don't have these extenstions
53 mkdir -p fcl/linux && echo ".PHONY: all install" > fcl/linux/Makefile
54 mkdir -p gtk && echo ".PHONY: all install" > gtk/Makefile
55 mkdir -p api && echo ".PHONY: all install" > api/Makefile
56 mkdir -p fv && echo ".PHONY: all install" > fv/Makefile
57 mkdir -p gdbint && echo ".PHONY: all install" > gdbint/Makefile
58 mkdir -p ide && echo ".PHONY: all install" > ide/Makefile
60 if [ "%{_target_cpu}" = "m68k" ]; then
66 OPT="$RPM_OPT_FLAGS" \
68 BASEINSTALLDIR=%{_libdir}/%{name}/%{version} \
69 BININSTALLDIR=%{_bindir} \
74 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT/etc/
77 install %{SOURCE1} $RPM_BUILD_ROOT/etc/ppc386.cfg
81 BASEINSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/%{name}/%{version} \
82 BININSTALLDIR=$RPM_BUILD_ROOT%{_bindir} \
85 ln -sf %{_libdir}/%{name}/%{version}/ppc386 $RPM_BUILD_ROOT%{_bindir}/ppc386
86 strip $RPM_BUILD_ROOT%{_bindir}/*
89 rm -rf $RPM_BUILD_ROOT
93 GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`
94 GCCDIR=`dirname $GCCSPEC`
95 echo "Found libgcc.a in $GCCDIR"
96 sed -e "s#\$GCCDIR#$GCCDIR#" /etc/ppc386.cfg > /etc/ppc386.cfg.new
97 sed -e "s#\$1#%{_libdir}/%{name}/%{version}#" /etc/ppc386.cfg.new > /etc/ppc386.cfg
98 rm -f /etc/ppc386.cfg.new
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_bindir}/*
103 %config %verify(not md5 size mtime) %{_sysconfdir}/ppc386.cfg
104 %dir %{_libdir}/%{name}
105 %dir %{_libdir}/%{name}/%{version}
106 %{_libdir}/%{name}/%{version}/msg
107 %{_libdir}/%{name}/%{version}/rtl
108 %attr(755,root,root) %{_libdir}/%{name}/%{version}/ppc386
111 %defattr(644,root,root,755)