2 # - check why it builds all static..
3 # - doesn't build on ppc/sparc :/ hgw why
4 Summary: 32-bit compiler for the i386 and m68k processors
5 Summary(pl): 32 bitowy kompilator dla procesorów i386 i m68k
6 Summary(ru): ó×ÏÂÏÄÎÙÊ ËÏÍÐÉÌÑÔÏÒ Pascal
7 Summary(uk): ÷¦ÌØÎÉÊ ËÏÍЦÌÑÔÏÒ Pascal
12 Group: Development/Languages
13 Source0: ftp://ftp.freepascal.org/pub/fpc/dist/source-%{version}/%{name}build-%{version}.tar.bz2
14 # Source0-md5: b88893bc005c4404197ae55ef3c0de30
15 URL: http://www.freepascal.org/
16 BuildRequires: ncurses-devel
17 BuildRequires: gpm-devel
18 BuildRequires: rpmbuild(macros) >= 1.213
19 BuildRequires: fpc >= 2.0.0
20 Provides: fpc-bootstrap
22 ExclusiveArch: %{ix86} %{x8664} ppc sparc
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Free Pascal is a 32-bit compiler for the i386 and m68k processors.
27 Free Pascal is designed to be, as much as possible, source compatible
28 with Turbo Pascal 7.0 and Delphi 4 (although this goal is not yet
29 attained), but it also enhances these languages with elements like
30 function overloading. And, unlike these ancestors, it supports
34 Free Pascal to 32 bitowy kompilator dla procesorów i386 oraz m86k.
35 Free Pascal zosta³ zaprojektowany by byæ (jak tylko to mo¿liwe)
36 kompatybilnym z Turbo Pascal 7.0 oraz Delphi 4. Free Pascal równie¿
37 rozszerza te jêzyki elementami takimi jak przeci±¿anie funkcji.
40 FPC -- 32-ÂÉÔÎÙÊ ËÏÍÐÉÌÑÔÏÒ Pascal, ÓÏ×ÍÅÓÔÉÍÙÊ Ó Turbo Pascal 7.0 É
41 Delphi. ðÏÓÔÁ×ÌÑÅÔÓÑ Ó RTL (ÂÉÂÌÉÏÔÅËÏÊ ×ÒÅÍÅÎÉ ÉÓÐÏÌÎÅÎÉÑ), FCL
42 (ÂÉÂÌÉÏÔÅËÏÊ Ó×ÏÂÏÄÎÙÈ ËÏÍÐÏÎÅÎÔ), ÉÎÔÅÒÆÅÊÓÁÍÉ Ë gtk, ncurses, zlib,
43 mysql, postgres, ibase.
46 FPC -- 32-¦ÔÎÉÊ ËÏÍЦÌÑÔÏÒ Pascal, ÓÕͦÓÎÉÊ ¦Ú Turbo Pascal 7.0 ÔÁ
47 Delphi. ðÏÓÔÁÞÁ¤ÔØÓÑ ¦Ú RTL (¦Â̦ÏÔÅËÏÀ ÞÁÓÕ ×ÉËÏÎÁÎÎÑ), FCL
48 (¦Â̦ÏÔÅËÏÀ צÌØÎÉÈ ËÏÍÐÏÎÅÎÔ), ¦ÎÔÅÒÆÅÊÓÁÍÉ ÄÏ gtk, ncurses, zlib,
49 mysql, postgres, ibase.
52 Summary: Free Pascal Compiler source files
53 Summary(pl): Pliki ¼ród³owe kompilatora Free Pascal
56 Requires: %{name} = %{version}-%{release}
59 Free Pascal Compiler source files.
61 %description src -l pl
62 Pliki ¼ród³owe kompilatora Free Pascal.
65 Summary: Free Pascal Compiler exaple programs
66 Summary(pl): Przyk³adowe programy do kompilatora Free Pascal
68 Requires: %{name} = %{version}-%{release}
71 Free Pascal Compiler exaple programs.
73 %description examples -l pl
74 Przyk³adowe programy do kompilatora Free Pascal.
77 %setup -q -n %{name}-src-%{version}
94 cp -af fpcsrc/* fpc-src
96 PP=%{_bindir}/ppc%{_bname}
97 NEWPP=`pwd`/fpcsrc/compiler/ppc%{_bname}
98 NEWFPDOC=`pwd`/fpcsrc/utils/fpdoc/fpdoc
100 # DO NOT PUT $RPM_OPT_FLAGS IN OPT, IT DOES NOT WORK - baggins
101 case "%{_build_cpu}" in
112 %{__make} -C fpcsrc compiler_cycle \
115 BASEINSTALLDIR=%{_libdir}/%{name}/%{version} \
116 BININSTALLDIR=%{_bindir} \
121 %{__make} -C fpcsrc OPT="$OPTF -Xs -n" \
123 BASEINSTALLDIR=%{_libdir}/%{name}/%{version} \
124 BININSTALLDIR=%{_bindir} \
127 DATA2INC=`pwd`/utils/data2inc \
129 rtl_clean rtl_smart \
130 packages_base_smart \
133 packages_extra_smart \
138 rm -rf $RPM_BUILD_ROOT
139 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir},%{_datadir}/fpcsrc,%{_examplesdir}/fpc}
141 cp -af fpc-src/* $RPM_BUILD_ROOT%{_datadir}/fpcsrc
143 NEWPP=`pwd`/fpcsrc/compiler/ppc%{_bname}
144 FPCMAKE=`pwd`/fpcsrc/utils/fpcm/fpcmake
145 %{__make} -C fpcsrc \
146 compiler_distinstall \
150 packages_distinstall \
156 INSTALL_PREFIX=$RPM_BUILD_ROOT%{_prefix} \
157 INSTALL_BINDIR=$RPM_BUILD_ROOT%{_bindir} \
158 INSTALL_LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
159 INSTALL_DOCDIR=$RPM_BUILD_ROOT%{_docdir} \
160 INSTALL_MANDIR=$RPM_BUILD_ROOT%{_mandir} \
161 INSTALL_BASEDIR=$RPM_BUILD_ROOT%{_libdir}/%{name}/%{version} \
162 INSTALL_EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name} \
163 INSTALL_MANDIR=$RPM_BUILD_ROOT%{_mandir} \
164 CODPATH=$RPM_BUILD_ROOT%{_libdir}/%{name}/lexyacc
166 %{__make} -C install/man installman \
167 INSTALL_MANDIR=$RPM_BUILD_ROOT%{_mandir}
169 ln -sf %{_libdir}/%{name}/%{version}/ppc%{_bname} $RPM_BUILD_ROOT%{_bindir}
171 sh fpcsrc/compiler/utils/samplecfg %{_libdir}/%{name}/%{version} $RPM_BUILD_ROOT%{_sysconfdir}
174 rm -rf $RPM_BUILD_ROOT
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_bindir}/*
179 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpc.cfg
180 %dir %{_libdir}/%{name}
181 %dir %{_libdir}/%{name}/%{version}
182 %dir %{_libdir}/%{name}/lexyacc
183 %{_libdir}/%{name}/%{version}/msg
184 %{_libdir}/%{name}/%{version}/units
185 %{_libdir}/%{name}/%{version}/ide
186 %{_libdir}/%{name}/lexyacc/*
187 %attr(755,root,root) %{_libdir}/%{name}/%{version}/ppc%{_bname}
188 %attr(755,root,root) %{_libdir}/%{name}/%{version}/samplecfg
192 %defattr(644,root,root,755)
196 %defattr(644,root,root,755)