[fpc-devel]Q: rpm build

Michael Shigorin mike at osdn.org.ua
Mon Sep 2 17:14:29 CEST 2002


	Hello,
I'd be thankful for spec file used to build rpm package.

Build from unzipped packages (*) with `make all' and fpc-1.04
installed from package leads to:

make[4]: Entering directory `/usr/src/RPM/BUILD/fpc-1.0.6/packages/base/gdbint'
/bin/rm -f testgdb symify testgdb.o symify.o libptestgdb.a libpsymify.a
/bin/rm -f gdbint.ppu gdbcon.ppu
/bin/rm -f fpcmade.lnx Package.fpc ppas.sh script.res link.res  
/bin/rm -f gdbver gdbver.o
make[4]: Leaving directory `/usr/src/RPM/BUILD/fpc-1.0.6/packages/base/gdbint'
make -C libasync clean
make: Entering an unknown directory
make: *** libasync: No such file or directory.  Stop.
make: Leaving an unknown directory
make[3]: *** [libasync_clean] Error 2
make[3]: Leaving directory `/usr/src/RPM/BUILD/fpc-1.0.6/packages/base'
make[2]: *** [base_clean] Error 2
make[2]: Leaving directory `/usr/src/RPM/BUILD/fpc-1.0.6/packages'
make[1]: *** [packages_clean] Error 2
make[1]: Leaving directory `/usr/src/RPM/BUILD/fpc-1.0.6'
make: *** [build-stamp.linux] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.27481 (%build)

(*) taken as ftp://ftp.us.freepascal.org/pub/fpc/dist/source/*.zip == 

basesrc.zip                                     
compilersrc.zip
docsrc.zip
fclsrc.zip
idesrc.zip
installersrc.zip
rtlsrc.zip
ugdbintsrc.zip
ugtksrc.zip
uibasesrc.zip
uinetsrc.zip
ummsystemsrc.zip
umysqlsrc.zip
uopenglsrc.zip
upaszlibsrc.zip
uregexprsrc.zip
utilssrc.zip
uuncgisrc.zip
uunzipsrc.zip
uzlibsrc.zip

Current ha^Wspec is attached.

PS: rtl/Makefile{,.fpc} clash in two packages when trying to
unzip them; the files seem identical.  Fix?

-- 
 ---- WBR, Michael Shigorin <mike at altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/
-------------- next part --------------
Name: fpc
Version: 1.0.6
Release: alt1

License: GPL
Group: Development/Other
Source: fpc-%version-src.tar.bz2
Summary: Free Pascal Compiler

Url: http://www.freepascal.org/
# ftp://ftp.us.freepascal.org/pub/fpc/source/*.zip

ExclusiveArch: %ix86

Obsoletes: fpk

BuildPreReq: fpc

%define fpcdir %_libdir/%name/%version
%define builddocdir $RPM_BUILD_ROOT/%_defaultdocdir/%name-%version

%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. 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.

%description -l ru_RU.KOI8-R
FPC - 32-битный компилятор языка Pascal, совместимый с Turbo Pascal 7.0 и Delphi
с богатым набором библиотек и расширений.

%description -l uk_UA.KOI8-U
FPC - 32-бітовий компілятор мови Pascal, сумісний із Turbo Pascal 7.0 та Delphi
із великим набором бібліотек та додатків.

%prep
%setup -q -c

%build
NEWPP=`pwd`/compiler/ppc386
#	make compiler_cycle
#	make rtl_clean rtl_smart PP=${NEWPP}
#	make fcl_smart PP=${NEWPP}
#	make api_smart PP=${NEWPP}
#	make packages_smart PP=${NEWPP}
#	make utils_all PP=${NEWPP}
#	make compiler_fpcexe PP=${NEWPP}

	make all

	exit 0

%install
NEWPP=`pwd`/compiler/ppc386
NEWPPUFILES=`pwd`/utils/ppufiles
INSTALLOPTS="PP=${NEWPP} PPUFILES=${NEWPPUFILES} PREFIXINSTALLDIR=%buildroot/usr"
	make compiler_install ${INSTALLOPTS}
	make rtl_install ${INSTALLOPTS}
	make fcl_install ${INSTALLOPTS}
	make api_install ${INSTALLOPTS}
	make packages_install ${INSTALLOPTS}
	make utils_install ${INSTALLOPTS}

	make fcl_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%builddocdir
	make api_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%builddocdir
	make packages_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%builddocdir

	make demo_install ${INSTALLOPTS} SOURCEINSTALLDIR=%builddocdir
	make doc_install ${INSTALLOPTS} DOCINSTALLDIR=%builddocdir

	make man_install ${INSTALLOPTS} MANINSTALLDIR=$RPM_BUILD_ROOT%_mandir

	cd $RPM_BUILD_ROOT%_bindir
	ln -sf %fpcdir/ppc386 ppc386
	cd -
%post
%fpcdir/samplecfg $FPCDIR >& /dev/null
/sbin/ldconfig

%files
%_bindir/*
%_mandir/man?/*
%dir %_libdir/%name
%_libdir/%name
%doc  %_defaultdocdir/%name-%version

%changelog
* Mon Sep 02 2002 Michael Shigorin <mike at altlinux.ru> 1.0.6-alt1
- 1.0.6

* Wed Mar 13 2002 Stanislav Ievlev <inger at altlinux.ru> 1.0.4-ipl2
- Rebuilt
- Cleanup spec

* Wed Jan 03 2001 AEN <aen at logic.ru>
- 1.0.4
* Tue Dec 19 2000 AEN <aen at logic.ru>
- adopted for RE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20020902/dcbc7c9d/attachment.sig>


More information about the fpc-devel mailing list