mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-25 23:09:27 +02:00
* updated to 1.0.8 spec file
This commit is contained in:
parent
82336bdd8a
commit
ad86685953
@ -1,46 +0,0 @@
|
|||||||
Name: fpc-docs
|
|
||||||
Version: 1.1
|
|
||||||
Release: 0
|
|
||||||
Copyright: GPL
|
|
||||||
Group: Development/Languages
|
|
||||||
Source: %{name}-%{version}-src.tar.gz
|
|
||||||
Summary: Free Pascal Compiler Documentation
|
|
||||||
Packager: Peter Vreman (peter@freepascal.org)
|
|
||||||
URL: http://www.freepascal.org/
|
|
||||||
BuildRoot: %{_tmppath}/fpc-build
|
|
||||||
|
|
||||||
%define fpcdir %{_libdir}/fpc/%{version}
|
|
||||||
%define docdir %{_docdir}/fpc-%{version}
|
|
||||||
|
|
||||||
%define builddocdir %{buildroot}%{docdir}
|
|
||||||
|
|
||||||
%description
|
|
||||||
The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
|
|
||||||
Pascal Compiler. It comes with fully TP 7.0 compatible run-time 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 documentation in PDF format
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -c
|
|
||||||
|
|
||||||
%build
|
|
||||||
make -C docs pdf
|
|
||||||
|
|
||||||
%install
|
|
||||||
if [ %{buildroot} != "/" ]; then
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
fi
|
|
||||||
|
|
||||||
make -C docs pdfinstall DOCINSTALLDIR=%{builddocdir}
|
|
||||||
|
|
||||||
%clean
|
|
||||||
make -C docs clean
|
|
||||||
if [ %{buildroot} != "/" ]; then
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%doc %{docdir}/*
|
|
@ -13,11 +13,14 @@ BuildRequires: fpc
|
|||||||
|
|
||||||
%define fpcdir %{_libdir}/fpc/%{version}
|
%define fpcdir %{_libdir}/fpc/%{version}
|
||||||
%define docdir %{_docdir}/fpc-%{version}
|
%define docdir %{_docdir}/fpc-%{version}
|
||||||
|
%define exampledir %{docdir}/examples
|
||||||
|
|
||||||
%define builddocdir %{buildroot}%{docdir}
|
%define builddocdir %{buildroot}%{docdir}
|
||||||
%define buildmandir %{buildroot}%{_mandir}
|
%define buildmandir %{buildroot}%{_mandir}
|
||||||
%define buildbindir %{buildroot}%{_bindir}
|
%define buildbindir %{buildroot}%{_bindir}
|
||||||
%define buildlibdir %{buildroot}%{_libdir}
|
%define buildlibdir %{buildroot}%{_libdir}
|
||||||
|
%define buildexampledir %{buildroot}%{exampledir}
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
|
The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
|
||||||
@ -28,17 +31,23 @@ exceptions,ansistrings,RTTI). This package contains commandline compiler and
|
|||||||
utils. Provided units are the runtime library (RTL), free component library
|
utils. Provided units are the runtime library (RTL), free component library
|
||||||
(FCL), gtk,ncurses,zlib, mysql,postgres,ibase bindings.
|
(FCL), gtk,ncurses,zlib, mysql,postgres,ibase bindings.
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# fpc.rpm
|
||||||
|
#
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -c
|
%setup -c
|
||||||
|
|
||||||
%build
|
%build
|
||||||
NEWPP=`pwd`/compiler/ppc386
|
NEWPP=`pwd`/compiler/ppc386
|
||||||
|
NEWFPDOC=`pwd`/utils/fpdoc/fpdoc
|
||||||
make compiler_cycle
|
make compiler_cycle
|
||||||
make rtl_clean rtl_smart FPC=${NEWPP}
|
make rtl_clean rtl_smart FPC=${NEWPP}
|
||||||
make packages_base_smart FPC=${NEWPP}
|
make packages_base_smart FPC=${NEWPP}
|
||||||
make fcl_smart FPC=${NEWPP}
|
make fcl_smart FPC=${NEWPP}
|
||||||
make packages_extra_smart FPC=${NEWPP}
|
make packages_extra_smart FPC=${NEWPP}
|
||||||
make utils_all FPC=${NEWPP}
|
make utils_all FPC=${NEWPP}
|
||||||
|
make -C docs pdf FPDOC=${NEWFPDOC}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
if [ %{buildroot} != "/" ]; then
|
if [ %{buildroot} != "/" ]; then
|
||||||
@ -54,9 +63,11 @@ INSTALLOPTS="FPC=${NEWPP} INSTALL_PREFIX=%{buildroot}/usr INSTALL_LIBDIR=%{build
|
|||||||
make fcl_distinstall ${INSTALLOPTS}
|
make fcl_distinstall ${INSTALLOPTS}
|
||||||
make utils_distinstall ${INSTALLOPTS}
|
make utils_distinstall ${INSTALLOPTS}
|
||||||
|
|
||||||
make demo_install ${INSTALLOPTS} INSTALL_SOURCEDIR=%{builddocdir}
|
make demo_install ${INSTALLOPTS} INSTALL_SOURCEDIR=%{buildexampledir}
|
||||||
make doc_install ${INSTALLOPTS}
|
make doc_install ${INSTALLOPTS}
|
||||||
make man_install ${INSTALLOPTS} INSTALL_PREFIX=%{buildmandir}
|
make man_install ${INSTALLOPTS} INSTALL_PREFIX=%{buildmandir}
|
||||||
|
|
||||||
|
make -C docs pdfinstall DOCINSTALLDIR=%{builddocdir}
|
||||||
|
|
||||||
# create link
|
# create link
|
||||||
ln -sf %{fpcdir}/ppc386 %{buildroot}%{_bindir}/ppc386
|
ln -sf %{fpcdir}/ppc386 %{buildroot}%{_bindir}/ppc386
|
||||||
@ -68,6 +79,7 @@ INSTALLOPTS="FPC=${NEWPP} INSTALL_PREFIX=%{buildroot}/usr INSTALL_LIBDIR=%{build
|
|||||||
make packages_clean
|
make packages_clean
|
||||||
make fcl_clean
|
make fcl_clean
|
||||||
make utils_clean
|
make utils_clean
|
||||||
|
make -C docs clean
|
||||||
|
|
||||||
if [ %{buildroot} != "/" ]; then
|
if [ %{buildroot} != "/" ]; then
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -77,12 +89,33 @@ fi
|
|||||||
# Create config
|
# Create config
|
||||||
%{fpcdir}/samplecfg %{fpcdir}
|
%{fpcdir}/samplecfg %{fpcdir}
|
||||||
|
|
||||||
# update ld.so cache
|
|
||||||
#ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{fpcdir}
|
%{fpcdir}
|
||||||
%doc %{docdir}/*
|
%doc %{docdir}/NEWS
|
||||||
|
%doc %{docdir}/README
|
||||||
|
%doc %{docdir}/faq*
|
||||||
|
%doc %{exampledir}/*
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# fpc-docs.rpm
|
||||||
|
#
|
||||||
|
|
||||||
|
%package docs
|
||||||
|
Group: Development/Languages
|
||||||
|
Summary: Free Pascal Compiler - Documentation
|
||||||
|
%description docs
|
||||||
|
The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
|
||||||
|
Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
|
||||||
|
Some extensions are added to the language, like function overloading. Shared
|
||||||
|
libraries can be linked. Basic Delphi support is already implemented (classes,
|
||||||
|
exceptions,ansistrings,RTTI). This package contains commandline compiler and
|
||||||
|
utils. Provided units are the runtime library (RTL), free component library
|
||||||
|
(FCL), gtk,ncurses,zlib, mysql,postgres,ibase bindings.
|
||||||
|
This package contains the documentation in PDF format
|
||||||
|
|
||||||
|
%files docs
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%doc %{docdir}/*.pdf
|
||||||
|
Loading…
Reference in New Issue
Block a user