Репозиторий Sisyphus
Последнее обновление: 12 декабря 2019 | Пакетов: 17493 | Посещений: 16066018
en ru br
Репозитории ALT
S:3.3.1-alt0.1
D:2.2.2-alt1
5.1: 2.2.4-alt4.M50P.1
4.1: 2.2.0-alt3
4.0: 2.2.0-alt2
3.0: 1.0.10-alt1
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: fpc

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_disable boostrap
%def_with    sources
%def_without doc
%def_without win32
%def_with    tests
# Help index is generated too long, package ready index
%def_without help_index

Name:  fpc
Epoch:    2
Version:  3.3.1
Release:  alt0.1

Summary:  Free Pascal Compiler -- Meta Package
License:  GPL
Group:    Development/Other
Packager: Andrey Cherepanov <cas at altlinux.org>

ExclusiveArch: %ix86 x86_64

Url: http://www.freepascal.org
Source:  fpcbuild-%version.tar
Source1: fp.desktop
Source2: fp.sh
Source3: fp.cfg
Source4: fp16x16.xpm
Source5: fp48x48.xpm
Source6: ppc386_bootstrap
Source7: ppcx64_bootstrap
Source8: fpc.watch
Source9: fpctoc.htx

# Support gdb 7.5.0

Patch0:  fpc-gdb.patch

# Patches from Mageia

# Fix http://bugs.freepascal.org/view.php?id=23682
Patch1: fpc-fpkeys.patch
# Don't show message on mouse click
Patch3: fpc-mouse-click.patch
# Fix http://bugs.freepascal.org/view.php?id=25280
Patch6: fpc-fix-min-size.patch

# Patches from Debian

Patch12: fpc-fix-FPCDIR-in-fpcmake.patch
Patch13: fpc-fix-encoding-of-localization-files-to-be-utf8.patch
Patch15: fpc-add_arm64_manpage.patch
Patch16: fpc-add-arm64-support.patch
Patch17: fpc-fix-path-of-localization-files.patch
Patch18: fpc-disable_building_gnome1_and_gtk1.patch
Patch19: fpc-fix_FTBFS_on_linux_not_amd64.patch
Patch20: fpc-fix-IDE-data-file-location.patch
Patch21: fpc-fix_source_location_for_documentation.patch
Patch23: fpc-honor_SOURCE_DATE_EPOCH_in_date.patch
Patch24: fpc-prevent_date_in_fpcdocs.patch
Patch25: fpc-prevent_date_in_fpcMakefiles.patch
Patch26: fpc-relpath.patch
Patch27: fpc-rename-instantfpc-to-ifpc.patch
Patch28: fpc-use-bfd-explicitly.patch

# Other patches

# Set path to ide without version and text/ subdirectory. Use ~/fpc/ide instead of ~/.fp for personal stuff for IDE.
Patch30: fpc-fix-path-to-ide.patch
# Add note about install fpc-docs in helpsystem message about missing documentation
Patch31: fpc-docs-message.patch
# Automatically add help index from /usr/share/doc/fpc/fpctoc.htx if it exists
Patch32: fpc-auto-add-help-index.patch
# Show progress in writeidx
Patch33: fpc-writeidx-show-progress.patch
# Fix missing examples in documentation
Patch34: fpc-alt-fix-missing-examples-in-docs.patch
# Link with gdb libraries (fix build with GBD 8)
Patch35: fpc-alt-link-wih-gdb-libs.patch

Requires: fpc-units-rtl
Requires: fpc-compiler
Requires: fpc-units-base
Requires: fpc-ide
Requires: fpc-units-fcl
Requires: fpc-units-fv
Requires: fpc-units-gtk2
Requires: fpc-units-db
Requires: fpc-units-gfx
Requires: fpc-units-net
Requires: fpc-units-math
Requires: fpc-units-misc
Requires: fpc-units-multimedia

Requires: rpm-build-fpc

Provides:  freepascal = %EVR
Obsoletes: freepascal < %EVR

BuildRequires(pre): rpm-build-fpc
BuildRequires: fpc-compiler
BuildRequires: fpc-utils
BuildRequires: libexpat-devel libgdb-devel libncurses-devel libreadline-devel-static python-devel zlib-devel liblzma-devel
BuildRequires: mysql-devel postgresql-devel libunixODBC-devel libsqlite3-devel
BuildRequires: libGL-devel libgtk+2-devel libjpeg-devel
BuildRequires: libstdc++-devel
BuildRequires: libunwind-devel
BuildRequires: python3-dev
BuildRequires: unzip
%if_with doc
BuildRequires: tex4ht texlive-generic-recommended texlive-latex-recommended fpc-units-fcl
%endif

%define fpc_docdir  %_defaultdocdir/%name
%define fpc_fpmdir  %fpc_dir/fpmkinst/%ppctarget
%define fpc_unitdir %fpc_dir/units/%ppctarget

%ifarch %ix86
%define ppctarget i386-linux
%else
%define ppctarget x86_64-linux
%define makewin32 0
%endif
%define ppcname %(basename `fpc -PB`)

%description
The Free Pascal Compiler is an object pascal compiler supporting both
Delphi and Turbo Pascal 7.0 dialects as well as Mac pascal dialects.  It
provides a completely portable RunTime Library (RTL) available on many
platforms and compatible with Turbo Pascal, but also a platfrom
independent class based Free Component Library (FCL) adding many Delphi
extensions and interfacing many popular open source libraries.

Some extensions are added to the language, like function overloading.
Shared libraries can be linked and created. Delphi language extentions
like classes, exceptions, ansi strings and open arrays are also
supported.

This package contains dependency on all FPC packages provided on your
architecture. Experienced users may want to install only packages they
need, and can skip installing this metapackage.

%prep
%setup -n fpcbuild-%version
%patch -p1
pushd fpcsrc
%patch1 -p0
%patch3 -p0
%patch6 -p0
popd
%patch12 -p1
%patch13 -p1
#patch15 -p1 TODO see patch16
#patch16 -p1 TODO neew adapt
%patch17 -p2
%patch18 -p1
#patch19 -p1 TODO need adapt
%patch20 -p2
#patch21 -p1
#patch23 -p1
%patch24 -p1
%patch25 -p1
%patch26 -p1
#patch27 -p2
%patch28 -p2
%patch30 -p2
%patch31 -p0
%patch32 -p2
%patch33 -p2
%patch34 -p2
#%%patch35 -p2

%if_with sources
cp -a fpcsrc{,.orig}
%endif

pushd fpcsrc
sed -i "s|/usr/local/lib|%_libdir|g"      packages/gdbint/src/gdbint.pp
#sed -i "/LINKLIB/s/python/python2.7/"     packages/gdbint/src/gdbint.pp
sed -i "/LINKLIB ncurses/a {\$LINKLIB z}" packages/gdbint/src/gdbint.pp
sed -i "/LINKLIB ncurses/a {\$LINKLIB lzma}" packages/gdbint/src/gdbint.pp
sed -i '/fp/s/\/bin/\/usr\/bin/g'         compiler/utils/samplecfg

%build
export OPT="-vwn "
export GDBLIBDIR=%_libdir
export LIBGDBFILE=%_libdir/libgdb.a

%if_enabled bootstrap
# bootstrap fpc
%ifarch %ix86
cp %SOURCE6 .
make -C compiler cycle RELEASE=1 FPC=$PWD/ppc386_bootstrap
%else
cp %SOURCE7 .
make -C compiler cycle RELEASE=1 FPC=$PWD/ppcx64_bootstrap
%endif
cp -pv compiler/%ppcname %ppcname
export PATH=:$PATH
%endif

pushd fpcsrc
export PATH=$PWD/compiler:$PATH

#Fix path

%ifarch x86_64
sed -i "s|/lib/fpc/lexyacc|/lib64/fpc/lexyacc|g" utils/tply/Makefile.fpc
%endif

# First build gnulib modules glob fcntl for link with libgdb.a

#gnulib-tool --create-testdir --dir=gnulib-stub --without-tests glob fcntl
#pushd gnulib-stub
#./configure
#make
#popd

make build VERBOSE=1 FPC=%ppcname LDCONFIG="$(dirname `gcc -print-file-name=libgcc.a`)"

popd

# Make documentation

# TODO PDF generation does not work
%if_with doc
# FIXME: -j1 as there is a race - seen on "missing" `rtl.xct'.
#make -j1 -C fpcdocs pdf html FPC=$(pwd)/fpcsrc/compiler/%ppcname
make -j1 -C fpcdocs html FPC=$(pwd)/fpcsrc/compiler/%ppcname

# Generate help index to file fpctoc.htx

%if_with help_index
pushd fpcdocs
../fpcsrc/installer/writeidx fpctoc.html
popd
%endif

%endif

%install
pushd fpcsrc
%makeinstall_std INSTALL_PREFIX=%buildroot%_usr
#%%makeinstall_std INSTALL_PREFIX=%buildroot%_usr -C installer

# this symbolic link must be absolute (so that fpcmake can detect FPCDIR)

ln -s %fpc_dir/%ppcname %buildroot%_bindir/%ppcname

%if_with win32
#Install for win32
%fpc_install_win32 FPC=$PWD/ppc386 FPCMAKE=$PWD/fpcmake -C rtl
%endif

# TODO [HACK] Fix lib dir for x86_64 and remove version from installed path of fpc_dir and unit documentation

%ifarch x86_64
mv %buildroot%_libexecdir %buildroot%_libdir
%endif
mv %buildroot%fpc_dir/%version/* %buildroot%fpc_dir
rmdir %buildroot%fpc_dir/%version
mv %buildroot%fpc_docdir-%version %buildroot%fpc_docdir

# Do not package library and install dirwatch* directly

rm -f %buildroot%_libdir/libpas2jslib.so
%ifarch x86_64
cp -av utils/pas2js/units/x86_64-linux/dirwatch.* %buildroot%fpc_dir/units/x86_64-linux/pastojs/
%else
cp -av utils/pas2js/units/i386-linux/dirwatch.* %buildroot%fpc_dir/units/i386-linux/pastojs/
%endif

# Install fp.cfg and create fpc.cfg

install -Dpm 644 %SOURCE3 %buildroot%_sysconfdir/fp.cfg
chmod 755 compiler/utils/samplecfg
compiler/utils/samplecfg "%fpc_dir" %buildroot%_sysconfdir

# Fix configuration for depend

%ifarch x86_64
install -p -m 644 utils/fppkg/units/x86_64-linux/*.{o,ppu} %buildroot%fpc_dir/units/x86_64-linux/fppkg/
sed -i "s|\$fpctarget|x86_64-linux|g" %buildroot%_sysconfdir/%name.cfg
sed -i "s|\$fpctarget|x86_64-linux|g" %buildroot%_sysconfdir/fp.cfg
sed -i "s|/usr/lib|%_libdir|g" %buildroot%_sysconfdir/fp.cfg
%else
install -p -m 644 utils/fppkg/units/i386-linux/*.{o,ppu} %buildroot%fpc_dir/units/i386-linux/fppkg/
sed -i "s|\$fpctarget|i386-linux|g" %buildroot%_sysconfdir/%name.cfg
sed -i "s|\$fpctarget|i386-linux|g" %buildroot%_sysconfdir/fp.cfg
%endif
sed -i "s|errorn.msg|errorn.msg\n-Fr%fpc_dir/msg/errorru.msg|g" %buildroot%_sysconfdir/%name.cfg
sed -i "s|\$fpcversion|fpc|g" %buildroot%_sysconfdir/%name.cfg

popd

# Install icons and desktop file

mkdir -p %buildroot%_datadir/pixmaps
mkdir -p %buildroot%_miconsdir
mkdir -p %buildroot%_liconsdir
mkdir -p %buildroot%_niconsdir
mkdir -p %buildroot%_datadir/applications
install -p -m 644 %SOURCE1 %buildroot%_datadir/applications
mv %buildroot%_bindir/fp %buildroot%_bindir/fp-bin
install -p -m 755 %SOURCE2 %buildroot%_bindir/fp
install -p -m 644 install/unix/fp32x32.xpm %buildroot%_datadir/pixmaps/fp.xpm
install -p -m 644 install/unix/fp32x32.xpm %buildroot%_niconsdir/fp.xpm
install -p -m 644 %SOURCE4 %buildroot%_miconsdir/fp.xpm
install -p -m 644 %SOURCE5 %buildroot%_liconsdir/fp.xpm

#Install src

%if_with sources
mkdir -p %buildroot%_datadir/fpcsrc
cp -fR fpcsrc.orig/* %buildroot%_datadir/fpcsrc
%add_verify_elf_skiplist */fpcsrc/*
%add_findreq_skiplist */fpcsrc/*
%endif

#Install man

make INSTALL_PREFIX=%buildroot%_datadir -C install/man installman

#Instal docs

mkdir -p %buildroot%fpc_docdir
install -p -m 644 install/doc/copying* install/doc/whatsnew.txt install/doc/readme.txt install/doc/faq.txt %buildroot%fpc_docdir

%if_with doc
make INSTALL_DOCDIR=%buildroot%fpc_docdir DESTDIR=%buildroot -C fpcdocs htmlinstall #pdfinstall
%if_with help_index
install -p -m 644 fpcdocs/fpctoc.htx %buildroot%fpc_docdir
%else
install -p -m 644 %SOURCE9 %buildroot%fpc_docdir
%endif
%endif

# Remove hacker ASCII art picture as IDE background by renaming fp.ans to fp.ans.original

mv %buildroot%fpc_dir/ide/fp.ans{,.original}

# Remove installer executable

rm -f %buildroot%_bindir/installer

%files

%package common
Summary: Free Pascal -- Common files and dirs
Group: Development/Other

%description common
The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible
32/64-bit Pascal Compiler. It comes with a fully compatible TP 7.0
runtime library.  Some extensions are added to the language, like
function overloading. Shared libraries can be linked and created. Basic
Delphi support is already implemented (classes, exceptions,
ansistrings). This package contains the common files and dirs.

%files common
%dir %fpc_dir
%dir %fpc_docdir

%package compiler
Summary: Free Pascal -- Compiler
Group: Development/Other
Requires: %name-common = %{?epoch:%epoch:}%version-%release
Requires: binutils
Obsoletes: fpc <= 2.1-alt3

%description compiler
The Free Pascal Compiler is an object pascal compiler supporting both
Delphi and Turbo Pascal 7.0 dialects as well as Mac pascal dialects.  It
provides a completely portable RunTime Library (RTL) available on many
platforms and compatible with Turbo Pascal, but also a platfrom
independent class based Free Component Library (FCL) adding many Delphi
extensions and interfacing many popular open source libraries.

Some extensions are added to the language, like function overloading.
Shared libraries can be linked and created. Delphi language extentions
like classes, exceptions, ansi strings and open arrays are also
supported.

This package contains the command line compiler.

%files compiler
%config(noreplace) %_sysconfdir/%name.cfg
%config(noreplace) %_sysconfdir/fppkg.cfg
%dir %_sysconfdir/fppkg
%config(noreplace) %_sysconfdir/fppkg/default
%doc %fpc_docdir/copying*
%doc %fpc_docdir/whatsnew.txt
%doc %fpc_docdir/readme.txt
%doc %fpc_docdir/faq.txt
%_bindir/fpc
%_bindir/ppc*
%_bindir/fpcsubst
%_bindir/fpcmkcfg
%_bindir/fppkg
%_bindir/grab_vcsa
%fpc_dir/samplecfg
%fpc_dir/ppc*
%fpc_dir/msg
%_man1dir/fpc.*
%_man1dir/fpcmkcfg.*
%_man1dir/fpcsubst.*
%_man1dir/fppkg.1*
%_man1dir/ppc*.*
%_man1dir/grab_vcsa.*
%_man5dir/fpc.cfg.*

# utils

%package utils
Summary: Free Pascal -- Utils
Group: Development/Other
Obsoletes: fpcmake data2inc

%description utils
This package contains some handy utils for usage with the Free Pascal
Compiler:
 - ppumove     Place multiple units in a shared library
 - ppufiles    Show needed files for units
 - ppudump     Dump the information stored in a .ppu (unit) file
 - fpcmake     Create Makefile from Makefile.fpc
 - h2pas       Convert .h files to pascal units
 - ppdep       Create a dependency file which can be used with
               Makefiles
 - ptop        Source beautifier
 - data2inc    Convert binary/text data to include files
 - plex/pyacc  Pascal Lex/Yacc implementation

%files utils
%doc fpcsrc/utils/fpcm/fpcmake.ini
%_bindir/bin2obj
%_bindir/chmcmd
%_bindir/chmls
%_bindir/data2inc
%_bindir/delp
%_bindir/fpcjres
%_bindir/fpclasschart
%_bindir/fpcmake
%_bindir/fpcres
%_bindir/fpdoc
%_bindir/fprcp
%_bindir/h2pas
%_bindir/h2paspp
%_bindir/instantfpc
%_bindir/makeskel
%_bindir/makeskel.rsj
%_bindir/mkarmins
%_bindir/mkx86ins
%_bindir/pas2fpm
%_bindir/pas2jni
%_bindir/pas2ut
%_bindir/plex
%_bindir/postw32
%_bindir/ppdep
%_bindir/ppudump
%_bindir/ppufiles
%_bindir/ppumove
%_bindir/ptop
%_bindir/ptop.rsj
%_bindir/pyacc
%_bindir/relpath
%_bindir/rmcvsdir
%_bindir/rstconv
%_bindir/unitdiff
%if_with doc
%_bindir/writeidx
%endif
# Other utilities
%_bindir/cldrparser
%_bindir/mkinsadd
%_bindir/unihelper
%_bindir/compileserver
%_bindir/json2pas
%_bindir/mka64ins
%_bindir/pas2js
%_bindir/webidl2pas
#
%fpc_dir/lexyacc
%fpc_unitdir/utils-lexyacc
%fpc_fpmdir/utils-lexyacc.fpm
%_man1dir/bin2obj.1*
%_man1dir/chmcmd.1*
%_man1dir/chmls.1*
%_man1dir/data2inc.1*
%_man1dir/delp.1*
%_man1dir/fpcjres.1*
%_man1dir/fpclasschart.1*
%_man1dir/fpcmake.1*
%_man1dir/fpcres.1*
%_man1dir/fpdoc.1*
%_man1dir/fprcp.1*
#_man1dir/instantfpc.1*
%_man1dir/h2pas.1*
%_man1dir/h2paspp.1*
%_man1dir/makeskel.1*
%_man1dir/pas2fpm.1*
%_man1dir/pas2jni.1*
%_man1dir/pas2ut.1*
%_man1dir/plex.1*
%_man1dir/postw32.1*
%_man1dir/ppdep.1*
%_man1dir/ppudump.1*
%_man1dir/ppufiles.1*
%_man1dir/ppumove.1*
%_man1dir/ptop.1*
%_man1dir/pyacc.1*
%_man1dir/relpath.1*
%_man1dir/rmcvsdir.1*
%_man1dir/rstconv.1*
%_man1dir/unitdiff.1*
%_man5dir/fpcmake.5*
%_man5dir/ptop.cfg.5*

# packages/rtl

%package units-rtl
Summary: Free Pascal -- Runtime Library
Group: Development/Other
Requires: %name-compiler = %{?epoch:%epoch:}%version-%release

%description units-rtl
This package contains the Runtime Libraries for the Free Pascal
Compiler.

%files units-rtl
%dir %fpc_dir/units
%dir %fpc_unitdir
%doc %fpc_docdir/rtl-generics
%fpc_unitdir/rtl
%fpc_unitdir/rtl-console
%fpc_unitdir/rtl-generics
%fpc_unitdir/rtl-extra
%fpc_unitdir/rtl-objpas
%fpc_unitdir/rtl-unicode
%fpc_fpmdir/rtl-*.fpm

# packages/base

%package units-base
Summary: Free Pascal -- base units
Group: Development/Other

%description units-base
This package contains Free Pascal units for common libraries. Some of
these units are also required by the Free Component Library:
- X11 (Xlib, Xutil)
- NCurses
- ZLib

%files units-base
%doc %fpc_docdir/hash
%doc %fpc_docdir/iconvenc
%doc %fpc_docdir/ncurses
%doc %fpc_docdir/pasjpeg
%doc %fpc_docdir/paszlib
%doc %fpc_docdir/regexpr
%doc %fpc_docdir/uuid
%fpc_unitdir/fppkg
%fpc_unitdir/hash
%fpc_unitdir/iconvenc
%fpc_unitdir/ncurses
%fpc_unitdir/pasjpeg
%fpc_unitdir/paszlib
%fpc_unitdir/regexpr
%fpc_unitdir/uuid
%fpc_unitdir/x11
%fpc_fpmdir/fppkg.fpm
%fpc_fpmdir/hash.fpm
%fpc_fpmdir/iconvenc.fpm
%fpc_fpmdir/ncurses.fpm
%fpc_fpmdir/pasjpeg.fpm
%fpc_fpmdir/paszlib.fpm
%fpc_fpmdir/regexpr.fpm
%fpc_fpmdir/uuid.fpm
%fpc_fpmdir/x11.fpm

# packages/fcl

%package units-fcl
Summary: Free Pascal -- Free Component Library
Group: Development/Other

%description units-fcl
This package contains the Free Component Library for the Free Pascal
Compiler.

%files units-fcl
%doc %fpc_docdir/fcl-*
%fpc_unitdir/fcl-async
%fpc_unitdir/fcl-base
%fpc_unitdir/fcl-db
%fpc_unitdir/fcl-extra
%fpc_unitdir/fcl-fpcunit
%fpc_unitdir/fcl-image
%fpc_unitdir/fcl-js
%fpc_unitdir/fcl-json
%fpc_unitdir/fcl-net
%fpc_unitdir/fcl-pdf
%fpc_unitdir/fcl-passrc
%fpc_unitdir/fcl-process
%fpc_unitdir/fcl-registry
%fpc_unitdir/fcl-res
%fpc_unitdir/fcl-sdo
%fpc_unitdir/fcl-sound
%fpc_unitdir/fcl-stl
%fpc_unitdir/fcl-web
%fpc_unitdir/fcl-xml
%fpc_fpmdir/fcl-*.fpm

# packages/fv

%package units-fv
Summary: Free Pascal -- Free Vision units
Group: Development/Other

%description units-fv
This package contains the Free Vision units for the Free Pascal
Compiler.

%files units-fv
%doc %fpc_docdir/fv
%fpc_unitdir/fv
%fpc_fpmdir/fv.fpm

# packages/gtk2

%package units-gtk2
Summary: Free Pascal -- GTK+ 2.x units
Group: Development/Other

%description units-gtk2
This package contains Free Pascal units and examples to create
programs with GTK+ 2.x.

%files units-gtk2
%doc %fpc_docdir/gtk2
%fpc_unitdir/gtk2
%fpc_fpmdir/gtk2.fpm

# packages/db

%package units-db
Summary: Free Pascal -- database libraries units
Group: Development/Other

%description units-db
This package contains Free Pascal units with bindings for:
- MySQL
- Interbase
- PostgreSQL
- Oracle
- ODBC
- GDBM
- SQLite

%files units-db
%doc %fpc_docdir/gdbm
%doc %fpc_docdir/ibase
%doc %fpc_docdir/mysql
%doc %fpc_docdir/odbc
%doc %fpc_docdir/oracle
%doc %fpc_docdir/postgres
%doc %fpc_docdir/pxlib
%doc %fpc_docdir/sqlite
%fpc_unitdir/dblib
%fpc_unitdir/gdbm
%fpc_unitdir/ibase
%fpc_unitdir/ldap
%fpc_unitdir/mysql
%fpc_unitdir/odbc
%fpc_unitdir/oracle
%fpc_unitdir/postgres
%fpc_unitdir/pxlib
%fpc_unitdir/sqlite
%fpc_fpmdir/dblib.fpm
%fpc_fpmdir/gdbm.fpm
%fpc_fpmdir/ibase.fpm
%fpc_fpmdir/ldap.fpm
%fpc_fpmdir/mysql.fpm
%fpc_fpmdir/odbc.fpm
%fpc_fpmdir/oracle.fpm
%fpc_fpmdir/postgres.fpm
%fpc_fpmdir/pxlib.fpm
%fpc_fpmdir/sqlite.fpm

# packages/gfx

%package units-gfx
Summary: Free Pascal -- graphics libraries units
Group: Development/Other
Requires: libX11-devel libXext-devel libXrandr-devel libXxf86dga-devel libXxf86vm-devel svgalib-devel

%description units-gfx
This package contains Free Pascal units with bindings for:
- opengl: OpenGL
- opengles
- forms: Forms 0.88
- svgalib: Svgalib
- ggi: General Graphical Interface
- libgd
- libpng
- graph
- cairo

%files units-gfx
%doc %fpc_docdir/ggi
%doc %fpc_docdir/imagemagick
%doc %fpc_docdir/libgd
%doc %fpc_docdir/opengl
%doc %fpc_docdir/opengles
%doc %fpc_docdir/ptc
%doc %fpc_docdir/svgalib
%doc %fpc_docdir/xforms
%fpc_unitdir/cairo
%fpc_unitdir/ggi
%fpc_unitdir/graph
%fpc_unitdir/hermes
%fpc_unitdir/imagemagick
%fpc_unitdir/libgd
%fpc_unitdir/libpng
%fpc_unitdir/opencl
%fpc_unitdir/opengl
%fpc_unitdir/opengles
%fpc_unitdir/ptc
%fpc_unitdir/rsvg
%fpc_unitdir/svgalib
%fpc_unitdir/xforms
%_bindir/fd2pascal
%_man1dir/fd2pascal.1*
%fpc_fpmdir/cairo.fpm
%fpc_fpmdir/ggi.fpm
%fpc_fpmdir/graph.fpm
%fpc_fpmdir/hermes.fpm
%fpc_fpmdir/imagemagick.fpm
%fpc_fpmdir/libgd.fpm
%fpc_fpmdir/libpng.fpm
%fpc_fpmdir/opencl.fpm
%fpc_fpmdir/opengl.fpm
%fpc_fpmdir/opengles.fpm
%fpc_fpmdir/ptc.fpm
%fpc_fpmdir/rsvg.fpm
%fpc_fpmdir/svgalib.fpm
%fpc_fpmdir/xforms.fpm

# packages/net

%package units-net
Summary: Free Pascal -- networking units
Group: Development/Other
#Requires: %name = %version-%release

%description units-net
This package contains Free Pascal units for creating network tools:
- netdb: NetDB unit for TCP/IP handling
- libasync: LibAsync unit for easy Asynchronous IO
- libcurl
- dbus: D-Bus
- googleapi
- httpd-1.3
- httpd-2.0
- httpd-2.2
- ldap
- libmicrohttpd
- openssl: Open SSL
- pcap

%files units-net
%doc %fpc_docdir/dbus
%doc %fpc_docdir/httpd*
%doc %fpc_docdir/libcurl
%doc %fpc_docdir/libmicrohttpd
%doc %fpc_docdir/openssl
%fpc_unitdir/dbus
%fpc_unitdir/fastcgi
%fpc_unitdir/googleapi
%fpc_unitdir/httpd*
%fpc_unitdir/libcurl
%fpc_unitdir/libmicrohttpd
%fpc_unitdir/openssl
%fpc_unitdir/pcap
%fpc_unitdir/zorba
%fpc_fpmdir/dbus.fpm
%fpc_fpmdir/fastcgi.fpm
%fpc_fpmdir/googleapi.fpm
%fpc_fpmdir/httpd*.fpm
%fpc_fpmdir/libcurl.fpm
%fpc_fpmdir/libmicrohttpd.fpm
%fpc_fpmdir/openssl.fpm
%fpc_fpmdir/pcap.fpm
%fpc_fpmdir/zorba.fpm

# packages/math

%package units-math
Summary: Free Pascal - math units
Group: Development/Other

%description units-math
This package contains Free Pascal math interfacing units for:
- gmp: Interface for the GNU Multiple Precision Arithmetic Library
- proj4: Compute projections
- numlib: numerical computing
- symbolic: symbolic computing

%files units-math
%doc %fpc_docdir/gmp
%doc %fpc_docdir/numlib
%doc %fpc_docdir/symbolic
%fpc_unitdir/gmp
%fpc_unitdir/numlib
%fpc_unitdir/proj4
%fpc_unitdir/symbolic
%fpc_fpmdir/gmp.fpm
%fpc_fpmdir/numlib.fpm
%fpc_fpmdir/proj4.fpm
%fpc_fpmdir/symbolic.fpm

# packages/misc

%package units-misc
Summary: Free Pascal -- miscellaneous units
Group: Development/Other

%description units-misc
This package contains Free Pascal miscellaneous units for:
- fppkg: support of FPC packaging system
- Utmp
- PasZLib (Pascal-only zlib implementation)

%files units-misc
%doc %fpc_docdir/aspell
%doc %fpc_docdir/bzip2
%doc %fpc_docdir/cdrom
%doc %fpc_docdir/fftw
%doc %fpc_docdir/gdbint
%doc %fpc_docdir/libsee
%doc %fpc_docdir/libxml2
%doc %fpc_docdir/newt
%doc %fpc_docdir/syslog
%doc %fpc_docdir/tcl
%doc %fpc_docdir/users
%doc %fpc_docdir/utmp
%doc %fpc_docdir/libenet
%ifnarch %ix86
%doc %fpc_docdir/libffi
%endif
%doc %fpc_docdir/libfontconfig
%doc %fpc_docdir/libgc
%ifarch %ix86
%doc %fpc_docdir/libc
%fpc_unitdir/libc
%fpc_unitdir/unixutil
%fpc_fpmdir/libc.fpm
%fpc_fpmdir/unixutil.fpm
%endif
%fpc_unitdir/aspell
%fpc_unitdir/bfd
%fpc_unitdir/bzip2
%fpc_unitdir/cdrom
%fpc_unitdir/chm
%fpc_unitdir/fftw
%fpc_unitdir/fpindexer
%fpc_unitdir/fpmkunit
%fpc_unitdir/gdbint
%fpc_unitdir/jni
%fpc_unitdir/libsee
%fpc_unitdir/libtar
%fpc_unitdir/libxml2
%fpc_unitdir/lua
%fpc_unitdir/newt
%fpc_unitdir/pthreads
%fpc_unitdir/syslog
%fpc_unitdir/tcl
%fpc_unitdir/unzip
%fpc_unitdir/users
%fpc_unitdir/utmp
%fpc_unitdir/zlib
%fpc_unitdir/fcl-report
%fpc_unitdir/libcups
%fpc_unitdir/libenet
%ifnarch %ix86
%fpc_unitdir/libffi
%endif
%fpc_unitdir/libfontconfig
%fpc_unitdir/libgc
%fpc_unitdir/libusb
%fpc_unitdir/odata
%fpc_unitdir/pastojs
%fpc_unitdir/utils-pas2js
%fpc_unitdir/webidl
%fpc_fpmdir/aspell.fpm
%fpc_fpmdir/bfd.fpm
%fpc_fpmdir/bzip2.fpm
%fpc_fpmdir/cdrom.fpm
%fpc_fpmdir/chm.fpm
%fpc_fpmdir/fftw.fpm
%fpc_fpmdir/fpindexer.fpm
%fpc_fpmdir/fpmkunit.fpm
%fpc_fpmdir/gdbint.fpm
%fpc_fpmdir/jni.fpm
%fpc_fpmdir/libsee.fpm
%fpc_fpmdir/libtar.fpm
%fpc_fpmdir/libxml2.fpm
%fpc_fpmdir/lua.fpm
%fpc_fpmdir/newt.fpm
%fpc_fpmdir/pthreads.fpm
%fpc_fpmdir/syslog.fpm
%fpc_fpmdir/tcl.fpm
%fpc_fpmdir/unzip.fpm
%fpc_fpmdir/users.fpm
%fpc_fpmdir/utmp.fpm
%fpc_fpmdir/zlib.fpm
%fpc_fpmdir/libcups.fpm
%fpc_fpmdir/libenet.fpm
%ifnarch %ix86
%fpc_fpmdir/libffi.fpm
%endif
%fpc_fpmdir/libfontconfig.fpm
%fpc_fpmdir/libgc.fpm
%fpc_fpmdir/libusb.fpm
%fpc_fpmdir/odata.fpm
%fpc_fpmdir/pastojs.fpm
%fpc_fpmdir/utils-pas2js.fpm
%fpc_fpmdir/webidl.fpm

# packages/media

%package units-multimedia
Summary: Free Pascal -- multimedia libraries units
Group: Development/Other
Obsoletes: fpc-units-media <= 2.2.0
Provides: fpc-units-media

%description units-multimedia
This package contains Free Pascal multimedia interfacing units for:
- oggvorbis
- openal
- a52
- dts (http://www.videolan.org/developers/libdca.html)
- mad
- modplug

%files units-multimedia
%doc %fpc_docdir/openal
%fpc_unitdir/a52
%fpc_unitdir/dts
%fpc_unitdir/libvlc
%fpc_unitdir/mad
%fpc_unitdir/modplug
%fpc_unitdir/oggvorbis
%fpc_unitdir/openal
%fpc_unitdir/sdl
%fpc_fpmdir/a52.fpm
%fpc_fpmdir/dts.fpm
%fpc_fpmdir/libvlc.fpm
%fpc_fpmdir/mad.fpm
%fpc_fpmdir/modplug.fpm
%fpc_fpmdir/oggvorbis.fpm
%fpc_fpmdir/openal.fpm
%fpc_fpmdir/sdl.fpm

# ide

%package ide
Summary: Free Pascal -- IDE
Group: Development/Other
Requires: %name-common = %EVR
Requires: fpc-units-base = %EVR

%description ide
This package contains the Integrated Development Environment (IDE) for
Free Pascal. The IDE has an internal compiler.

%files ide
%config(noreplace) %_sysconfdir/fp.cfg
%_bindir/fp
%_bindir/fp-bin
%fpc_dir/ide/*
%fpc_fpmdir/ide.fpm
%_man1dir/fp.1*
%doc %fpc_docdir/ide/readme.ide
%_pixmapsdir/*
%_miconsdir/*
%_liconsdir/*
%_niconsdir/*
%_desktopdir/*.desktop

# src

%if_with sources
%package src
Summary: Source of Free Pascal
Group: Development/Other
BuildArch: noarch
#Requires: %name = %version-%release

%description src
This package contains Free Pascal's own source code. It is meant to be
used by the Lazarus IDE.

%files src
%_datadir/fpcsrc
%endif

%if_with doc
%package docs
Group: Documentation
Summary: Free Pascal Compiler - Documentation

%description docs
This package provides documentation for the Free Pascal Compiler in HTML
and PDF format.

%files docs
%doc %fpc_docdir/buttons
%doc %fpc_docdir/chart
%doc %fpc_docdir/fcl
%doc %fpc_docdir/fclres
%doc %fpc_docdir/fpctoc.*
%doc %fpc_docdir/fpdoc
%doc %fpc_docdir/pics
%doc %fpc_docdir/prog
%doc %fpc_docdir/ref
%doc %fpc_docdir/rtl
%doc %fpc_docdir/user
%endif

%if_with win32
# win32
%package win32
Summary: Free Pascal runtime library units cross-compiled for win32
Group: Development/Other
Requires: %name = %{?epoch:%epoch:}%version-%release
#Requires: i386-mingw32msvc-binutils

%description win32
Free Pascal runtime library units cross-compiled for win32.

%files win32
%ifnarch %ix86
%_bindir/ppc386
%fpc_dir/ppc386
%endif
%fpc_files *-win32 rtl
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin