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 exaple programs
32 Summary(pl): Przyk³adowe programy do kompilatora Free Pascal
34 Group(pl): Dokumentacja
35 Requires: %{name} = %{version}
38 Free Pascal Compiler exaple programs.
40 %description -l pl examples
41 Przyk³adowe programy do kompilatora Free Pascal.
44 Summary: Free Pascal Compiler documentation
45 Summary(pl): Dokumentacja do kompilatora Free Pascal
47 Group(pl): Dokumentacja
48 Requires: %{name} = %{version}
51 Documentation for fpc in PDF format.
53 %description -l pl doc
54 Dokumentacja do fpc w formacie PDF.
61 for i in *.tar.gz ; do
65 mkdir -p src/%{name}-%{version}/doc
66 mv doc/%{name}-%{version}/* src/%{name}-%{version}/doc
67 mkdir -p src/%{name}-%{version}/man && echo ".PHONY: all install installman" > src/%{name}-%{version}/man/Makefile
70 PP=`pwd`/lib/fpc/%{version}/ppc386
72 if [ "%{_target_cpu}" = "m68k" ]; then
78 # DO NOT PUT $RPM_OPT_FLAGS IN OPT, IT DOES NOT WORK - baggins
79 %{__make} -C src/%{name}-%{version} \
82 BASEINSTALLDIR=%{_libdir}/%{name}/%{version} \
83 BININSTALLDIR=%{_bindir} \
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir},%{_examplesdir}/fpc}
91 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ppc386.cfg
93 PP=`pwd`/src/fpc-%{version}/compiler/ppc386
94 make -C src/%{name}-%{version} \
95 PREFIXINSTALLDIR=$RPM_BUILD_ROOT%{_prefix} \
99 cp -a man/* $RPM_BUILD_ROOT%{_mandir}
100 cp -a src/%{name}-%{version}/doc/examples/* $RPM_BUILD_ROOT%{_examplesdir}/fpc
102 ln -sf ../lib/%{name}/%{version}/ppc386 $RPM_BUILD_ROOT%{_bindir}/ppc386
104 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/*
105 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}/ppc386
107 gzip -9nf src/%{name}-%{version}/doc/{copying*,*.txt} \
108 $RPM_BUILD_ROOT%{_mandir}/man*/*
110 mv -f src/%{name}-%{version}/doc/faq.htm src/%{name}-%{version}/doc/faq.html
113 rm -rf $RPM_BUILD_ROOT
117 GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`
118 GCCDIR=`dirname $GCCSPEC`
119 echo "Found libgcc.a in $GCCDIR"
120 sed -e "s#\$GCCDIR#$GCCDIR#" %{_sysconfdir}/ppc386.cfg > %{_sysconfdir}/ppc386.cfg.new
121 sed -e "s#\$1#%{_libdir}/%{name}/%{version}#" %{_sysconfdir}/ppc386.cfg.new > %{_sysconfdir}/ppc386.cfg
122 rm -f %{_sysconfdir}/ppc386.cfg.new
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_bindir}/*
127 %doc src/%{name}-%{version}/doc/{copying*,*.txt}.gz
128 %doc src/%{name}-%{version}/doc/faq.html
129 %config %verify(not md5 size mtime) %{_sysconfdir}/ppc386.cfg
130 %dir %{_libdir}/%{name}
131 %dir %{_libdir}/%{name}/%{version}
132 %dir %{_libdir}/%{name}/lexyacc
133 %{_libdir}/%{name}/%{version}/msg
134 %{_libdir}/%{name}/%{version}/units
135 %{_libdir}/%{name}/lexyacc/*
136 %attr(755,root,root) %{_libdir}/%{name}/%{version}/ppc386
137 %attr(755,root,root) %{_libdir}/%{name}/%{version}/samplecfg
141 %defattr(644,root,root,755)
142 %doc %{_examplesdir}/fpc
145 %defattr(644,root,root,755)
146 %doc src/%{name}-%{version}/doc/*.pdf