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://ftp.freepascal.org/pub/fpc/dist/Linux/%{name}-%{version}.ELF.tar
11 Source1: fpc-sample.cfg
12 URL: http://www.freepascal.org/
13 ExclusiveArch: %{ix86} m68k
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
19 with Turbo Pascal 7.0 and Delphi 4 (although this goal is not yet
20 attained), but it also enhances these languages with elements like
21 function overloading. And, unlike these ancestors, it supports
25 Free Pascal to 32 bitowy kompilator dla procesorów i386 oraz m86k.
26 Free Pascal zosta³ zaprojektowany by byæ (jak tylko to mo¿liwe)
27 kompatybilnym z Turbo Pascal 7.0 oraz Delphi 4. Free Pascal równie¿
28 rozszerza te jêzyki elementami takimi jak prze³adowywanie funkcji.
31 Summary: Free Pascal Compiler documentation
32 Summary(pl): Dokumentacja do kompilatora Free Pascal
34 Group(pl): Dokumentacja
35 Requires: %{name} = %{version}
38 Documentation for fpc HTML format.
40 %description -l pl doc
41 Dokumentacja do fpc w formacie HTML.
45 mkdir sources && cd sources && tar -xzf ../sources.tar.gz \
46 && tar -xzf ../libs.tar.gz && tar -xzf ../bins.tar.gz \
47 && mkdir ../doc && cd ../doc && tar -xzf ../docs.tar.gz && cd ..
51 cp base/{Makefile,makefile.fpc} .
53 # Currently we don't have these extenstions
54 mkdir -p fcl/linux && echo ".PHONY: all install" > fcl/linux/Makefile
55 mkdir -p gtk && echo ".PHONY: all install" > gtk/Makefile
56 mkdir -p api && echo ".PHONY: all install" > api/Makefile
57 mkdir -p fv && echo ".PHONY: all install" > fv/Makefile
58 mkdir -p gdbint && echo ".PHONY: all install" > gdbint/Makefile
59 mkdir -p ide && echo ".PHONY: all install" > ide/Makefile
61 if [ "%{_target_cpu}" = "m68k" ]; then
67 OPT="$RPM_OPT_FLAGS" \
69 BASEINSTALLDIR=%{_libdir}/%{name}/%{version} \
70 BININSTALLDIR=%{_bindir} \
75 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{_sysconfdir}/
78 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ppc386.cfg
82 BASEINSTALLDIR=$RPM_BUILD_ROOT%{_libdir}/%{name}/%{version} \
83 BININSTALLDIR=$RPM_BUILD_ROOT%{_bindir} \
86 ln -sf %{_libdir}/%{name}/%{version}/ppc386 $RPM_BUILD_ROOT%{_bindir}/ppc386
87 strip $RPM_BUILD_ROOT%{_bindir}/*
90 rm -rf $RPM_BUILD_ROOT
94 GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`
95 GCCDIR=`dirname $GCCSPEC`
96 echo "Found libgcc.a in $GCCDIR"
97 sed -e "s#\$GCCDIR#$GCCDIR#" %{_sysconfdir}/ppc386.cfg > %{_sysconfdir}/ppc386.cfg.new
98 sed -e "s#\$1#%{_libdir}/%{name}/%{version}#" %{_sysconfdir}/ppc386.cfg.new > %{_sysconfdir}/ppc386.cfg
99 rm -f %{_sysconfdir}/ppc386.cfg.new
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_bindir}/*
104 %config %verify(not md5 size mtime) %{_sysconfdir}/ppc386.cfg
105 %dir %{_libdir}/%{name}
106 %dir %{_libdir}/%{name}/%{version}
107 %{_libdir}/%{name}/%{version}/msg
108 %{_libdir}/%{name}/%{version}/rtl
109 %attr(755,root,root) %{_libdir}/%{name}/%{version}/ppc386
112 %defattr(644,root,root,755)