]>
Commit | Line | Data |
---|---|---|
d59a3c01 BZ |
1 | # |
2 | # Conditional build: | |
86a4b6b9 | 3 | %bcond_with gdb # GDB support in FPC IDE |
3e9a31c5 | 4 | %bcond_without doc # documentation |
d59a3c01 | 5 | |
3e9a31c5 JB |
6 | Summary: Free Pascal - 32-bit Pascal compiler |
7 | Summary(pl.UTF-8): Free Pascal - 32-bitowy kompilator języka Pascal | |
1d1a4bc8 ER |
8 | Summary(ru.UTF-8): Свободный компилятор Pascal |
9 | Summary(uk.UTF-8): Вільний компілятор Pascal | |
e8f622a3 | 10 | Name: fpc |
361caa6b | 11 | Version: 3.2.2 |
089b75e2 | 12 | Release: 1 |
3c782031 | 13 | License: GPL v2+ |
e8f622a3 | 14 | Group: Development/Languages |
7ab23651 | 15 | Source0: ftp://ftp.freepascal.org/pub/fpc/dist/%{version}/source/%{name}build-%{version}.tar.gz |
361caa6b | 16 | # Source0-md5: 3681ae4a208be4f64ec65e832a9a702d |
7ab23651 | 17 | Source1: ftp://ftp.freepascal.org/pub/fpc/dist/%{version}/i386-linux/%{name}-%{version}.i386-linux.tar |
361caa6b | 18 | # Source1-md5: 18354e51309a34b0efe7702633568a1e |
7ab23651 | 19 | Source2: ftp://ftp.freepascal.org/pub/fpc/dist/%{version}/x86_64-linux/%{name}-%{version}.x86_64-linux.tar |
361caa6b | 20 | # Source2-md5: 0186779de0c9caee073fc1394afbee56 |
786da423 | 21 | Patch0: %{name}-skip-dev-dot.patch |
938b52f5 | 22 | Patch1: %{name}-link.patch |
1ac879da | 23 | Patch4: fpcdocs-r1260.patch |
0946044b | 24 | Patch5: fpc-man.patch |
e8f622a3 | 25 | URL: http://www.freepascal.org/ |
9a6604f5 | 26 | BuildRequires: babeltrace-devel |
361caa6b | 27 | BuildRequires: binutils-devel >= 3:2.17.50 |
3c782031 | 28 | BuildRequires: expat-devel |
361caa6b | 29 | BuildRequires: gpm-devel |
9a6604f5 | 30 | BuildRequires: guile-devel |
3c782031 | 31 | BuildRequires: libselinux-devel |
361caa6b JR |
32 | BuildRequires: ncurses-devel |
33 | BuildRequires: readline-devel | |
34 | BuildRequires: rpmbuild(macros) >= 1.213 | |
3c782031 JB |
35 | BuildRequires: xz-devel |
36 | BuildRequires: zlib-devel | |
361caa6b JR |
37 | %if %{with gdb} |
38 | BuildRequires: gdb-lib >= 7.2-7} | |
39 | BuildRequires: python-devel | |
938b52f5 JR |
40 | %endif |
41 | %if %{with doc} | |
42 | BuildRequires: tetex-fonts-jknappen | |
43 | BuildRequires: tetex-format-pdflatex | |
361caa6b | 44 | BuildRequires: tetex-latex-imakeidx |
938b52f5 JR |
45 | BuildRequires: tetex-makeindex |
46 | BuildRequires: tetex-metafont | |
361caa6b JR |
47 | BuildRequires: texlive-latex-enumitem |
48 | BuildRequires: texlive-latex-ucs | |
49 | BuildRequires: texlive-tex-xkeyval | |
938b52f5 JR |
50 | BuildRequires: texlive-xetex |
51 | %endif | |
7da7a711 | 52 | Requires: binutils |
41cff313 | 53 | Provides: fpc-bootstrap |
1ac879da | 54 | ExclusiveArch: %{ix86} %{x8664} |
0946044b JB |
55 | # TODO: |
56 | # %{arm} ftp://ftp.freepascal.org/pub/fpc/dist/3.0.0/arm-linux/fpc-3.0.0.arm-linux-raspberry1wq.tar | |
57 | # ppc64 ftp://ftp.freepascal.org/pub/fpc/dist/3.0.0/powerpc64-linux/fpc-3.0.0.powerpc64-linux.tar | |
e7e4f882 | 58 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e8f622a3 | 59 | |
361caa6b JR |
60 | %define _debugsource_packages 0 |
61 | ||
e8f622a3 | 62 | %description |
3e9a31c5 JB |
63 | Free Pascal is a 32-bit Pascal compiler. Free Pascal is designed to |
64 | be, as much as possible, source compatible with Turbo Pascal 7.0 and | |
65 | Delphi 4 (although this goal is not yet attained), but it also | |
66 | enhances these languages with elements like function overloading. And, | |
67 | unlike these ancestors, it supports multiple platforms. | |
e8f622a3 | 68 | |
6b989699 | 69 | %description -l pl.UTF-8 |
3e9a31c5 JB |
70 | Free Pascal to 32-bitowy kompilator języka Pascal. Free Pascal został |
71 | zaprojektowany by być (na ile to tylko możliwe) kompatybilnym z Turbo | |
72 | Pascalem 7.0 oraz Delphi 4. Free Pascal również rozszerza te języki | |
73 | elementami takimi jak przeciążanie funkcji. | |
e8f622a3 | 74 | |
6b989699 JR |
75 | %description -l ru.UTF-8 |
76 | FPC -- 32-битный компилятор Pascal, совместимый с Turbo Pascal 7.0 и | |
77 | Delphi. Поставляется с RTL (библиотекой времени исполнения), FCL | |
78 | (библиотекой свободных компонент), интерфейсами к gtk, ncurses, zlib, | |
3c3a6271 | 79 | mysql, postgres, ibase. |
def44520 | 80 | |
6b989699 JR |
81 | %description -l uk.UTF-8 |
82 | FPC -- 32-бітний компілятор Pascal, сумісний із Turbo Pascal 7.0 та | |
83 | Delphi. Постачається із RTL (бібліотекою часу виконання), FCL | |
84 | (бібліотекою вільних компонент), інтерфейсами до gtk, ncurses, zlib, | |
3c3a6271 | 85 | mysql, postgres, ibase. |
def44520 | 86 | |
3e9a31c5 JB |
87 | %package ide |
88 | Summary: Free Pascal IDE (integrated development environment) | |
89 | Summary(pl.UTF-8): Zintegrowane środowisko programistyczne (IDE) Free Pascala | |
90 | Group: Development/Tools | |
91 | Requires: %{name} = %{version}-%{release} | |
92 | ||
93 | %description ide | |
94 | Free Pascal IDE (integrated development environment). | |
95 | ||
96 | %description ide -l pl.UTF-8 | |
97 | Zintegrowane środowisko programistyczne (IDE) Free Pascala. | |
98 | ||
412a5ed9 KK |
99 | %package src |
100 | Summary: Free Pascal Compiler source files | |
1d1a4bc8 | 101 | Summary(pl.UTF-8): Pliki źródłowe kompilatora Free Pascal |
412a5ed9 | 102 | Group: Development |
412a5ed9 | 103 | Requires: %{name} = %{version}-%{release} |
41cff313 | 104 | Provides: fpcsrc |
412a5ed9 KK |
105 | |
106 | %description src | |
107 | Free Pascal Compiler source files. | |
108 | ||
6b989699 JR |
109 | %description src -l pl.UTF-8 |
110 | Pliki źródłowe kompilatora Free Pascal. | |
412a5ed9 | 111 | |
1eee4a0c JR |
112 | %package examples |
113 | Summary: Free Pascal Compiler exaple programs | |
1d1a4bc8 | 114 | Summary(pl.UTF-8): Przykładowe programy do kompilatora Free Pascal |
1eee4a0c | 115 | Group: Documentation |
3f331815 | 116 | Requires: %{name} = %{version}-%{release} |
1eee4a0c JR |
117 | |
118 | %description examples | |
119 | Free Pascal Compiler exaple programs. | |
120 | ||
6b989699 JR |
121 | %description examples -l pl.UTF-8 |
122 | Przykładowe programy do kompilatora Free Pascal. | |
1eee4a0c | 123 | |
786da423 JR |
124 | %package doc |
125 | Summary: Free Pascal Compiler documentation | |
1d1a4bc8 | 126 | Summary(pl.UTF-8): Dokumentacja do kompilatora Free Pascal |
786da423 | 127 | Group: Documentation |
7ab23651 | 128 | # doesn't require base |
786da423 JR |
129 | |
130 | %description doc | |
131 | Documentation for fpc in PDF format. | |
132 | ||
6b989699 | 133 | %description doc -l pl.UTF-8 |
786da423 JR |
134 | Dokumentacja do fpc w formacie PDF. |
135 | ||
e8f622a3 | 136 | %prep |
d59a3c01 | 137 | %setup -q -n %{name}build-%{version} |
786da423 | 138 | %patch0 -p1 |
938b52f5 | 139 | %patch1 -p1 |
dd3f385e | 140 | %patch4 -p0 |
0946044b | 141 | %patch5 -p1 |
d59a3c01 | 142 | |
d3e9323d | 143 | %ifarch %{ix86} |
786da423 | 144 | tar xf %{SOURCE1} |
4e71325a | 145 | %define _bver %{version} |
d3e9323d | 146 | %define _bname 386 |
04dae7e9 | 147 | %define _barch i386 |
d3e9323d | 148 | %endif |
3f331815 | 149 | %ifarch %{x8664} |
786da423 | 150 | tar xf %{SOURCE2} |
4e71325a | 151 | %define _bver %{version} |
d3e9323d | 152 | %define _bname x64 |
04dae7e9 | 153 | %define _barch x86_64 |
d3e9323d | 154 | %endif |
0946044b JB |
155 | %ifarch %{arm} |
156 | %define _bver %{version} | |
157 | %define _bname arm | |
158 | %define _barch arm | |
159 | %endif | |
160 | %ifarch ppc | |
161 | %define _bver ? | |
162 | %define _bname ppc | |
163 | %define _barch powerpc | |
164 | %endif | |
165 | %ifarch ppc64 | |
166 | %define _bver %{version} | |
167 | %define _bname ppc64 | |
168 | %define _barch powerpc64 | |
169 | %endif | |
170 | %ifarch sparc sparcv9 | |
171 | %define _bver ? | |
172 | %define _bname sparc | |
173 | %define _barch sparc | |
174 | %endif | |
d3e9323d | 175 | |
04dae7e9 | 176 | cd %{name}-%{version}.%{_barch}-linux |
786da423 | 177 | tar xf binary.*-linux.tar |
04dae7e9 | 178 | cd .. |
786da423 JR |
179 | |
180 | mkdir bin | |
181 | cd bin | |
04dae7e9 | 182 | for i in ../%{name}-%{version}.%{_barch}-linux/*.tar.gz ; do |
786da423 JR |
183 | tar xzf $i |
184 | done | |
4e71325a | 185 | ln -sf `pwd`/lib/%{name}/%{_bver}/ppc* bin |
938b52f5 | 186 | cd .. |
786da423 | 187 | |
25d5e663 JR |
188 | find fpcsrc -name Makefile -o -name fpcmake.ini -o -name fpmkunit.pp | \ |
189 | xargs %{__sed} -i -e 's|/usr/lib/|%{_libdir}/|g' | |
190 | ||
0946044b JB |
191 | # remove precompiled objects from fpc-src |
192 | %{__rm} fpcsrc/rtl/palmos/m68k/{libcrt.a,*.o} | |
193 | ||
412a5ed9 KK |
194 | # save for fpc-src |
195 | install -d fpc-src | |
196 | cp -af fpcsrc/* fpc-src | |
361caa6b | 197 | rm -r fpc-src/tests |
412a5ed9 | 198 | |
008ddcda | 199 | %if 0%{?debug:1} |
25d5e663 | 200 | find fpcsrc -name Makefile | xargs %{__sed} -i -e 's/-Xs//' |
008ddcda JB |
201 | %endif |
202 | ||
361caa6b JR |
203 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+bash(\s|$),#!/bin/bash\1,' \ |
204 | fpc-src/packages/fpmkunit/examples/ppu2fpmake.sh \ | |
205 | fpc-src/packages/gdbint/gen-gdblib-inc.sh \ | |
206 | fpc-src/packages/gtk2/src/gtk2x11/scripts/gdkx11_h2pas.sh \ | |
207 | fpc-src/rtl/unix/scripts/check_consts.sh \ | |
208 | fpc-src/rtl/unix/scripts/check_errno.sh \ | |
209 | fpc-src/rtl/unix/scripts/check_errnostr.sh \ | |
210 | fpc-src/rtl/unix/scripts/check_sys.sh | |
211 | ||
938b52f5 JR |
212 | %build |
213 | # use ld.bfd | |
214 | [ -d our-ld ] || install -d our-ld | |
215 | ln -sf %{_bindir}/ld.bfd our-ld/ld | |
216 | export PATH=$(pwd)/our-ld:$PATH | |
217 | ||
4e71325a | 218 | PP=`pwd`/bin/lib/%{name}/%{_bver}/ppc%{_bname} |
80841e72 | 219 | NEWPP=`pwd`/fpcsrc/compiler/ppc%{_bname} |
1ac879da JR |
220 | NEWFPDOC=`pwd`/fpcsrc/utils/fpdoc/bin/%{_barch}-linux/fpdoc |
221 | DATA2INC=`pwd`/fpcsrc/utils/bin/%{_barch}-linux/data2inc | |
dd3f385e | 222 | FPCSRCDIR=`pwd`/fpcsrc |
d3e9323d | 223 | |
ca161524 | 224 | # DO NOT PUT $RPM_OPT_FLAGS IN OPT, IT DOES NOT WORK - baggins |
225 | case "%{_build_cpu}" in | |
0946044b | 226 | i386|i486) OPTF="-OG2p1" ;; |
d59a3c01 | 227 | i586) OPTF="-OG2p2" ;; |
0946044b | 228 | i686|athlon|pentium3|pentium4|x86_64|amd64|ia32e) OPTF="-Og2p3" ;; |
d59a3c01 | 229 | *) OPTF="-O2" ;; |
ca161524 | 230 | esac |
231 | ||
80841e72 | 232 | %{__make} -C fpcsrc compiler_cycle \ |
008ddcda | 233 | OPT="$OPTF %{!?debug:-Xs} -n" \ |
d88793f7 | 234 | RELEASE="1" \ |
e8f622a3 AM |
235 | BASEINSTALLDIR=%{_libdir}/%{name}/%{version} \ |
236 | BININSTALLDIR=%{_bindir} \ | |
9a6604f5 | 237 | DATA2INC="$DATA2INC" \ |
1eee4a0c | 238 | PP="$PP" \ |
94c54379 | 239 | FPC="$PP" \ |
d59a3c01 | 240 | LINKSMART=YES |
94c54379 | 241 | |
008ddcda | 242 | %{__make} -C fpcsrc OPT="$OPTF %{!?debug:-Xs} -n" \ |
d88793f7 | 243 | RELEASE="1" \ |
5edb3786 SZ |
244 | BASEINSTALLDIR=%{_libdir}/%{name}/%{version} \ |
245 | BININSTALLDIR=%{_bindir} \ | |
86a4b6b9 JR |
246 | %{?with_gdb:GDBLIBDIR=%{_libdir}} \ |
247 | %{!?with_gdb:NOGDB=YES} \ | |
9a6604f5 | 248 | DATA2INC="$DATA2INC" \ |
5edb3786 | 249 | PP="$NEWPP" \ |
94c54379 | 250 | FPC="$NEWPP" \ |
d59a3c01 | 251 | FPDOC=$NEWFPDOC \ |
d59a3c01 BZ |
252 | LINKSMART=YES \ |
253 | NODOCS=YES \ | |
254 | rtl_clean \ | |
255 | packages_clean \ | |
256 | utils_clean \ | |
361caa6b | 257 | installer_clean \ |
d59a3c01 BZ |
258 | rtl_all \ |
259 | packages_all \ | |
361caa6b JR |
260 | utils_all \ |
261 | installer_all | |
f5681e7a | 262 | |
d59a3c01 | 263 | %if %{with doc} |
786da423 | 264 | export save_size=10000 |
cbfcda9f | 265 | %{__make} -j1 -C fpcdocs \ |
786da423 JR |
266 | FPDOC=$NEWFPDOC \ |
267 | FPC="$NEWPP" \ | |
dd3f385e | 268 | FPCSRCDIR="$FPCSRCDIR" \ |
786da423 | 269 | |
d59a3c01 | 270 | %endif |
786da423 | 271 | |
e8f622a3 AM |
272 | %install |
273 | rm -rf $RPM_BUILD_ROOT | |
412a5ed9 KK |
274 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir},%{_datadir}/fpcsrc,%{_examplesdir}/fpc} |
275 | ||
276 | cp -af fpc-src/* $RPM_BUILD_ROOT%{_datadir}/fpcsrc | |
e8f622a3 | 277 | |
80841e72 | 278 | NEWPP=`pwd`/fpcsrc/compiler/ppc%{_bname} |
1ac879da | 279 | FPCMAKE=`pwd`/fpcsrc/utils/fpcm/bin/%{_barch}-linux/fpcmake |
7be7bd7e | 280 | %{__make} -j1 -C fpcsrc \ |
f5681e7a | 281 | compiler_distinstall \ |
282 | rtl_distinstall \ | |
f5681e7a | 283 | packages_distinstall \ |
f5681e7a | 284 | utils_distinstall \ |
d3e9323d | 285 | PP="$NEWPP" \ |
286 | FPCMAKE="$FPCMAKE" \ | |
f5681e7a | 287 | SMARTLINK=YES \ |
25d5e663 | 288 | FPCDIR=%{_libdir}/%{name}/%{version} \ |
8bf0c9cb | 289 | INSTALL_PREFIX=$RPM_BUILD_ROOT%{_prefix} \ |
290 | INSTALL_BINDIR=$RPM_BUILD_ROOT%{_bindir} \ | |
291 | INSTALL_LIBDIR=$RPM_BUILD_ROOT%{_libdir} \ | |
292 | INSTALL_DOCDIR=$RPM_BUILD_ROOT%{_docdir} \ | |
293 | INSTALL_MANDIR=$RPM_BUILD_ROOT%{_mandir} \ | |
d88793f7 | 294 | INSTALL_BASEDIR=$RPM_BUILD_ROOT%{_libdir}/%{name}/%{version} \ |
f5681e7a | 295 | INSTALL_EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name} \ |
7da7a711 | 296 | INSTALL_MANDIR=$RPM_BUILD_ROOT%{_mandir} \ |
d88793f7 | 297 | CODPATH=$RPM_BUILD_ROOT%{_libdir}/%{name}/lexyacc |
d3e9323d | 298 | |
7be7bd7e | 299 | %{__make} -j1 -C install/man installman \ |
80841e72 | 300 | INSTALL_MANDIR=$RPM_BUILD_ROOT%{_mandir} |
9a679a53 | 301 | |
fcc93709 JR |
302 | ln -sf ../%{_lib}/%{name}/%{version}/ppc%{_bname} $RPM_BUILD_ROOT%{_bindir} |
303 | ||
304 | ln -sf %{_bindir}/ld.bfd $RPM_BUILD_ROOT%{_libdir}/%{name}/%{version}/ld | |
e8f622a3 | 305 | |
2844e15a JR |
306 | sh fpc-src/compiler/utils/samplecfg $RPM_BUILD_ROOT%{_libdir}/%{name}/%{version} $RPM_BUILD_ROOT%{_sysconfdir} |
307 | %{__sed} -i -e "s,$RPM_BUILD_ROOT,,g" $RPM_BUILD_ROOT%{_sysconfdir}/{*.cfg,fppkg/default} | |
e588518e | 308 | |
25d5e663 | 309 | %if "%{_lib}" != "lib" |
902dd00e | 310 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/lib/%{name}/lexyacc $RPM_BUILD_ROOT%{_libdir}/%{name} |
25d5e663 JR |
311 | %endif |
312 | ||
e996f6a1 JR |
313 | # Fix examples, make seems to ignore INSTALL_EXAMPLEDIR |
314 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/* $RPM_BUILD_ROOT%{_examplesdir}/fpc/ | |
315 | ||
0946044b JB |
316 | %ifnarch %{ix86} |
317 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/ppc386.1 | |
318 | %endif | |
319 | %ifnarch %{arm} | |
320 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/ppcarm.1 | |
321 | %endif | |
322 | %ifnarch ppc ppc64 | |
323 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/ppcppc.1 | |
324 | %endif | |
325 | %ifnarch sparc sparcv9 | |
326 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/ppcsparc.1 | |
327 | %endif | |
328 | %ifnarch %{x8664} | |
329 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/ppcx64.1 | |
330 | %endif | |
331 | ||
e8f622a3 AM |
332 | %clean |
333 | rm -rf $RPM_BUILD_ROOT | |
334 | ||
e8f622a3 AM |
335 | %files |
336 | %defattr(644,root,root,755) | |
0946044b JB |
337 | %attr(755,root,root) %{_bindir}/bin2obj |
338 | %attr(755,root,root) %{_bindir}/chmcmd | |
339 | %attr(755,root,root) %{_bindir}/chmls | |
340 | %attr(755,root,root) %{_bindir}/cldrparser | |
361caa6b | 341 | %attr(755,root,root) %{_bindir}/compileserver |
0946044b JB |
342 | %attr(755,root,root) %{_bindir}/data2inc |
343 | %attr(755,root,root) %{_bindir}/delp | |
344 | %attr(755,root,root) %{_bindir}/fd2pascal | |
0946044b JB |
345 | %attr(755,root,root) %{_bindir}/fpc* |
346 | %attr(755,root,root) %{_bindir}/fpdoc | |
347 | %attr(755,root,root) %{_bindir}/fppkg | |
348 | %attr(755,root,root) %{_bindir}/fprcp | |
349 | %attr(755,root,root) %{_bindir}/grab_vcsa | |
350 | %attr(755,root,root) %{_bindir}/h2pas | |
351 | %attr(755,root,root) %{_bindir}/h2paspp | |
352 | %attr(755,root,root) %{_bindir}/instantfpc | |
361caa6b | 353 | %attr(755,root,root) %{_bindir}/json2pas |
0946044b | 354 | %attr(755,root,root) %{_bindir}/makeskel |
361caa6b | 355 | %attr(755,root,root) %{_bindir}/mka64ins |
0946044b JB |
356 | %attr(755,root,root) %{_bindir}/mkarmins |
357 | %attr(755,root,root) %{_bindir}/mkinsadd | |
358 | %attr(755,root,root) %{_bindir}/mkx86ins | |
359 | %attr(755,root,root) %{_bindir}/pas2fpm | |
360 | %attr(755,root,root) %{_bindir}/pas2jni | |
361caa6b | 361 | %attr(755,root,root) %{_bindir}/pas2js |
0946044b JB |
362 | %attr(755,root,root) %{_bindir}/pas2ut |
363 | %attr(755,root,root) %{_bindir}/plex | |
364 | %attr(755,root,root) %{_bindir}/postw32 | |
365 | %attr(755,root,root) %{_bindir}/ppc%{_bname} | |
366 | %attr(755,root,root) %{_bindir}/ppdep | |
367 | %attr(755,root,root) %{_bindir}/ppudump | |
368 | %attr(755,root,root) %{_bindir}/ppufiles | |
369 | %attr(755,root,root) %{_bindir}/ppumove | |
370 | %attr(755,root,root) %{_bindir}/ptop | |
371 | %attr(755,root,root) %{_bindir}/pyacc | |
372 | %attr(755,root,root) %{_bindir}/rmcvsdir | |
373 | %attr(755,root,root) %{_bindir}/rstconv | |
374 | %attr(755,root,root) %{_bindir}/unihelper | |
375 | %attr(755,root,root) %{_bindir}/unitdiff | |
361caa6b | 376 | %attr(755,root,root) %{_bindir}/webidl2pas |
3e9a31c5 | 377 | # TODO: move the below files to data dir |
0946044b JB |
378 | # - JSON resources(?) |
379 | %{_bindir}/makeskel.rsj | |
380 | %{_bindir}/ptop.rsj | |
361caa6b JR |
381 | %{_bindir}/pas2ut.rsj |
382 | %{_bindir}/rstconv.rsj | |
383 | %{_bindir}/unitdiff.rsj | |
3c3a6271 | 384 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpc.cfg |
2844e15a JR |
385 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fppkg.cfg |
386 | %dir %{_sysconfdir}/fppkg | |
387 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fppkg/default | |
e8f622a3 AM |
388 | %dir %{_libdir}/%{name} |
389 | %dir %{_libdir}/%{name}/%{version} | |
d88793f7 | 390 | %dir %{_libdir}/%{name}/lexyacc |
e8f622a3 | 391 | %{_libdir}/%{name}/%{version}/msg |
1eee4a0c | 392 | %{_libdir}/%{name}/%{version}/units |
1ac879da | 393 | %{_libdir}/%{name}/%{version}/fpmkinst |
d88793f7 | 394 | %{_libdir}/%{name}/lexyacc/* |
fcc93709 | 395 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/ld |
d3e9323d | 396 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/ppc%{_bname} |
1eee4a0c | 397 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/samplecfg |
361caa6b | 398 | %attr(755,root,root) %{_libdir}/libpas2jslib.so |
0946044b JB |
399 | %{_mandir}/man1/bin2obj.1* |
400 | %{_mandir}/man1/chmcmd.1* | |
401 | %{_mandir}/man1/chmls.1* | |
402 | %{_mandir}/man1/data2inc.1* | |
403 | %{_mandir}/man1/delp.1* | |
404 | %{_mandir}/man1/fd2pascal.1* | |
405 | %{_mandir}/man1/fp.1* | |
406 | %{_mandir}/man1/fpc*.1* | |
407 | %{_mandir}/man1/fpdoc.1* | |
408 | %{_mandir}/man1/fppkg.1* | |
409 | %{_mandir}/man1/fprcp.1* | |
410 | %{_mandir}/man1/grab_vcsa.1* | |
411 | %{_mandir}/man1/h2pas.1* | |
412 | %{_mandir}/man1/h2paspp.1* | |
413 | %{_mandir}/man1/makeskel.1* | |
414 | %{_mandir}/man1/pas2fpm.1* | |
415 | %{_mandir}/man1/pas2jni.1* | |
416 | %{_mandir}/man1/pas2ut.1* | |
417 | %{_mandir}/man1/plex.1* | |
418 | %{_mandir}/man1/postw32.1* | |
419 | %ifarch ppc64 | |
420 | %{_mandir}/man1/ppcppc.1* | |
421 | %else | |
422 | %{_mandir}/man1/ppc%{_bname}.1* | |
423 | %endif | |
424 | %{_mandir}/man1/ppdep.1* | |
425 | %{_mandir}/man1/ppudump.1* | |
426 | %{_mandir}/man1/ppufiles.1* | |
427 | %{_mandir}/man1/ppumove.1* | |
428 | %{_mandir}/man1/ptop.1* | |
429 | %{_mandir}/man1/pyacc.1* | |
430 | %{_mandir}/man1/rmcvsdir.1* | |
431 | %{_mandir}/man1/rstconv.1* | |
432 | %{_mandir}/man1/unitdiff.1* | |
433 | %{_mandir}/man5/fpc.cfg.5* | |
434 | %{_mandir}/man5/fpcmake.5* | |
435 | %{_mandir}/man5/ptop.cfg.5* | |
1eee4a0c | 436 | |
3e9a31c5 JB |
437 | %files ide |
438 | %defattr(644,root,root,755) | |
439 | %attr(755,root,root) %{_bindir}/fp | |
440 | # TODO: move the below files to data dir | |
441 | # - ANSI art file used by fp binary | |
442 | %{_bindir}/fp.ans | |
361caa6b | 443 | %{_bindir}/fp.rsj |
3e9a31c5 JB |
444 | # - IDE command templates |
445 | %{_bindir}/cvsco.tdf | |
446 | %{_bindir}/cvsdiff.tdf | |
447 | %{_bindir}/cvsup.tdf | |
448 | %{_bindir}/grep.tdf | |
449 | %{_bindir}/tpgrep.tdf | |
450 | # - Pascal code skeletons | |
451 | %{_bindir}/gplprog.pt | |
452 | %{_bindir}/gplunit.pt | |
453 | %{_bindir}/program.pt | |
454 | %{_bindir}/unit.pt | |
455 | %{_libdir}/%{name}/%{version}/ide | |
3e9a31c5 | 456 | |
412a5ed9 KK |
457 | %files src |
458 | %defattr(644,root,root,755) | |
459 | %{_datadir}/fpcsrc | |
460 | ||
1eee4a0c JR |
461 | %files examples |
462 | %defattr(644,root,root,755) | |
f5681e7a | 463 | %{_examplesdir}/fpc |
786da423 | 464 | |
d59a3c01 | 465 | %if %{with doc} |
786da423 JR |
466 | %files doc |
467 | %defattr(644,root,root,755) | |
468 | %doc fpcdocs/*.pdf | |
d59a3c01 | 469 | %endif |