SPECS: fpc.spec - up to 2.0.2

undefine undefine at pld-linux.org
Sat Dec 24 19:35:36 CET 2005


Author: undefine                     Date: Sat Dec 24 18:35:36 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 2.0.2

---- Files affected:
SPECS:
   fpc.spec (1.53 -> 1.54) 

---- Diffs:

================================================================
Index: SPECS/fpc.spec
diff -u SPECS/fpc.spec:1.53 SPECS/fpc.spec:1.54
--- SPECS/fpc.spec:1.53	Thu Nov  3 21:15:43 2005
+++ SPECS/fpc.spec	Sat Dec 24 19:35:30 2005
@@ -6,21 +6,12 @@
 Summary(ru):	ó×ĎÂĎÄÎŮĘ ËĎÍĐÉĚŃÔĎŇ Pascal
 Summary(uk):	÷ŚĚŘÎÉĘ ËĎÍĐŚĚŃÔĎŇ Pascal
 Name:		fpc
-Version:	2.0.0
+Version:	2.0.2
 Release:	1
 License:	GPL
 Group:		Development/Languages
-Vendor:		Michael Van Canneyt <michael at tfdec1.fys.kuleuven.ac.be>
-Source0:	http://dl.sourceforge.net/freepascal/%{name}-%{version}.source.tar.gz
-# Source0-md5:	3f9c64d0146a3631f6963fd7477776d1
-Source1:	http://dl.sourceforge.net/freepascal/%{name}-%{version}.i386-linux.tar
-# Source1-md5:	5f0a5fba632a811dcfdafe0ff80476a3
-Source2:	http://dl.sourceforge.net/freepascal/%{name}-%{version}.x86_64-linux.tar
-# Source2-md5:	36270de604c6b5ad3af8aaa08143e88f
-Source3:	http://dl.sourceforge.net/freepascal/%{name}-%{version}.powerpc-linux.tar
-# Source3-md5:	7019384e09411902e530dfe55d4ff145
-Source4:	http://dl.sourceforge.net/freepascal/%{name}-%{version}.sparc-linux.tar
-# Source4-md5:	dd8925ce8ce93309456c3072e6e4d14d
+Source0:	ftp://ftp.freepascal.org/pub/fpc/dist/source-%{version}/%{name}build-%{version}.tar.bz2
+# Source0-md5:	b88893bc005c4404197ae55ef3c0de30
 URL:		http://www.freepascal.org/
 BuildRequires:	ncurses-devel
 BuildRequires:	gpm-devel
@@ -28,6 +19,8 @@
 BuildRequires:	tetex-fonts-jknappen
 BuildRequires:	tetex-format-pdflatex
 BuildRequires:	tetex-metafont
+BuildRequires:	fpc
+Provides:	fpc-bootstrap
 Requires:	binutils
 ExclusiveArch:	%{ix86} %{x8664} ppc sparc
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -70,50 +63,25 @@
 %description examples -l pl
 Przykładowe programy do kompilatora Free Pascal.
 
-%package doc
-Summary:	Free Pascal Compiler documentation
-Summary(pl):	Dokumentacja do kompilatora Free Pascal
-Group:		Documentation
-Requires:	%{name} = %{version}-%{release}
-
-%description doc
-Documentation for fpc in PDF format.
-
-%description doc -l pl
-Dokumentacja do fpc w formacie PDF.
-
 %prep
-%setup -q -n %{name}
+%setup -q -n %{name}-src-%{version}
 %ifarch %{ix86}
-tar xf %{SOURCE1}
 %define _bname 386
 %endif
 %ifarch %{x8664}
-tar xf %{SOURCE2}
 %define _bname x64
 %endif
 %ifarch ppc
-tar xf %{SOURCE3}
 %define _bname ppc
 %endif
 %ifarch sparc
-tar xf %{SOURCE4}
 %define _bname sparc
 %endif
 
-tar xf binary.*-linux.tar
-
-mkdir bin
-cd bin
-for i in ../*.tar.gz ; do
-	tar xzf $i
-done
-ln -sf `pwd`/lib/%{name}/%{version}/ppc* bin
-
 %build
-PP=`pwd`/bin/lib/%{name}/%{version}/ppc%{_bname}
-NEWPP=`pwd`/compiler/ppc%{_bname}
-NEWFPDOC=`pwd`/utils/fpdoc/fpdoc
+PP=%{_bindir}/ppc%{_bname}
+NEWPP=`pwd`/fpcsrc/compiler/ppc%{_bname}
+NEWFPDOC=`pwd`/fpcsrc/utils/fpdoc/fpdoc
 
 # DO NOT PUT $RPM_OPT_FLAGS IN OPT, IT DOES NOT WORK - baggins
 case "%{_build_cpu}" in
@@ -127,7 +95,7 @@
 		OPTF="-O2" ;;
 esac
 
-%{__make} compiler_cycle \
+%{__make} -C fpcsrc compiler_cycle \
 	OPT="$OPTF -Xs -n" \
 	RELEASE="1" \
 	BASEINSTALLDIR=%{_libdir}/%{name}/%{version} \
@@ -136,7 +104,7 @@
 	FPC="$PP" \
 	SMARTLINK=YES
 
-%{__make} OPT="$OPTF -Xs -n" \
+%{__make} -C fpcsrc OPT="$OPTF -Xs -n" \
 	RELEASE="1" \
 	BASEINSTALLDIR=%{_libdir}/%{name}/%{version} \
 	BININSTALLDIR=%{_bindir} \
@@ -152,18 +120,13 @@
 	ide_all \
 	utils_all
 
-export save_size=10000
-%{__make} -C docs pdf \
-	FPDOC=$NEWFPDOC \
-	FPC="$NEWPP"
-
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir},%{_examplesdir}/fpc}
 
-NEWPP=`pwd`/compiler/ppc%{_bname}
-FPCMAKE=`pwd`/utils/fpcm/fpcmake
-%{__make} \
+NEWPP=`pwd`/fpcsrc/compiler/ppc%{_bname}
+FPCMAKE=`pwd`/fpcsrc/utils/fpcm/fpcmake
+%{__make} -C fpcsrc \
 	compiler_distinstall \
 	rtl_distinstall \
 	fcl_distinstall \
@@ -171,7 +134,6 @@
 	packages_distinstall \
 	ide_distinstall \
 	utils_distinstall \
-	man_install \
 	PP="$NEWPP" \
 	FPCMAKE="$FPCMAKE" \
 	SMARTLINK=YES \
@@ -185,11 +147,12 @@
 	INSTALL_MANDIR=$RPM_BUILD_ROOT%{_mandir} \
 	CODPATH=$RPM_BUILD_ROOT%{_libdir}/%{name}/lexyacc
 
-ln -sf %{_libdir}/%{name}/%{version}/ppc%{_bname} $RPM_BUILD_ROOT%{_bindir}
+%{__make} -C install/man installman \
+	INSTALL_MANDIR=$RPM_BUILD_ROOT%{_mandir}
 
-sh compiler/utils/samplecfg %{_libdir}/%{name}/%{version} $RPM_BUILD_ROOT%{_sysconfdir}
+ln -sf %{_libdir}/%{name}/%{version}/ppc%{_bname} $RPM_BUILD_ROOT%{_bindir}
 
-cp -f install/doc/faq.htm faq.html
+sh fpcsrc/compiler/utils/samplecfg %{_libdir}/%{name}/%{version} $RPM_BUILD_ROOT%{_sysconfdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -197,7 +160,6 @@
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
-%doc faq.html install/doc/{copying*,*.txt} ide/readme.ide
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fpc.cfg
 %dir %{_libdir}/%{name}
 %dir %{_libdir}/%{name}/%{version}
@@ -214,16 +176,15 @@
 %defattr(644,root,root,755)
 %{_examplesdir}/fpc
 
-%files doc
-%defattr(644,root,root,755)
-%doc docs/*.pdf
-
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.54  2005/12/24 18:35:30  undefine
+- up to 2.0.2
+
 Revision 1.53  2005/11/03 20:15:43  glen
 - unify sf url, and other things that adapter felt neccessary
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/fpc.spec?r1=1.53&r2=1.54&f=u



More information about the pld-cvs-commit mailing list