* .spec extension is needed

* small updates
This commit is contained in:
peter 1998-09-29 18:37:32 +00:00
parent 8d7b655ee4
commit 3c5cb5a86f

View File

@ -1,6 +1,6 @@
Name: fpc Name: fpc
Version: 0.99.8 Version: 0.99.8
Release: 1 Release: 2
ExclusiveArch: i386 ExclusiveArch: i386
Copyright: GPL Copyright: GPL
Group: Development/Languages Group: Development/Languages
@ -8,6 +8,7 @@ Source: fpc-0.99.8-src.tar.gz
Summary: Free Pascal Compiler Summary: Free Pascal Compiler
Packager: Michael Van Canneyt (michael@tfdec1.fys.kuleuven.ac.be) Packager: Michael Van Canneyt (michael@tfdec1.fys.kuleuven.ac.be)
URL: http://tfdec1.fys.kuleuven.ac.be/~michael/fpc/fpc.html URL: http://tfdec1.fys.kuleuven.ac.be/~michael/fpc/fpc.html
%description %description
The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi II compatible The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi II compatible
32bit Pascal Compiler. It comes with fully TP 7.0 compatible run-time library. 32bit Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
@ -21,41 +22,38 @@ easy, so interfaces can be written fast.
%define vlibdir %{libdir}/%{PACKAGE_VERSION} %define vlibdir %{libdir}/%{PACKAGE_VERSION}
%define unitdir %{vlibdir}/linuxunits %define unitdir %{vlibdir}/linuxunits
%define docdir /usr/doc/%{package} %define docdir /usr/doc/%{package}
%define gcclib `dirname \`rpm -ql gcc|grep libgcc.a\``
%prep %prep
%setup -c %setup -c
%build %build
make -C compiler cycle OPT=-O1p2 RELEASE=1 make -C compiler cycle RELEASE=1
make -C rtl/utils all RELEASE=1 make -C rtl/utils all RELEASE=1
make -C rtl/linux libs PPUMOVE=../utils/ppumove
make -C docs html make -C docs html
%install %install
make -C rtl/linux install UNITINSTALLDIR=%{unitdir}
make -C rtl/linux libinstall UNITINSTALLDIR=%{unitdir}
make -C compiler install BININSTALLDIR=%{bindir} LIBINSTALLDIR=%{vlibdir} make -C compiler install BININSTALLDIR=%{bindir} LIBINSTALLDIR=%{vlibdir}
make -C rtl/linux install UNITINSTALLDIR=%{unitdir}
make -C rtl/linux libinstall UNITINSTALLDIR=%{unitdir} PPUMOVE=../utils/ppumove
make -C rtl/utils install BININSTALLDIR=%{bindir} UNITINSTALLDIR=%{unitdir} make -C rtl/utils install BININSTALLDIR=%{bindir} UNITINSTALLDIR=%{unitdir}
make -C docs install DOCINSTALLDIR=%{docdir} make -C docs install DOCINSTALLDIR=%{docdir}
%clean %clean
make -C rtl/linux libsclean
make -C compiler clean make -C compiler clean
make -C rtl/utils clean make -C rtl/utils clean
make -C rtl/linux libsclean
make -C docs clean make -C docs clean
%post %post
%{vlibdir}/samplecfg %{vlibdir}/samplecfg `dirname \`find /usr/lib/gcc-lib/ -name libgcc.a -print | grep -v egcs \``
ldconfig
%files %files
%{bindir}/ppc386 %{bindir}/ppc386
%{bindir}/ppudump %{bindir}/ppudump
%{bindir}/ppumove %{bindir}/ppumove
%{bindir}/h2pas %{bindir}/h2pas
%{bindir}/mkdep
%{bindir}/msg2inc
%{vlibdir} %{vlibdir}
%/usr/lib/libfpc.so /usr/lib/libfpc.so
%dir %{libdir} %dir %{libdir}
%doc %{docdir} %doc %{docdir}