mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:58:04 +02:00
renamed fpcsrc to fpc-src
git-svn-id: trunk@8602 -
This commit is contained in:
parent
cd829bad7c
commit
575c6d1810
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -2225,9 +2225,9 @@ tools/delete_non_cvs_files.pl -text svneol=native#application/x-perl
|
||||
tools/find_non_cvs_files.pl -text svneol=native#application/x-perl
|
||||
tools/getallmofiles.sh -text svneol=native#application/x-sh
|
||||
tools/getallpofiles.sh -text svneol=native#application/x-sh
|
||||
tools/install/build_fpc-src_rpm.sh svneol=native#text/plain
|
||||
tools/install/build_fpc_rpm.sh -text svneol=native#application/x-sh
|
||||
tools/install/build_fpc_snaphot_rpm.sh svneol=native#text/plain
|
||||
tools/install/build_fpcsrc_rpm.sh -text svneol=native#application/x-sh
|
||||
tools/install/create_clean_fpcsrc_directory.sh -text svneol=native#application/x-sh
|
||||
tools/install/create_clean_lazarus_directory.sh -text svneol=native#application/x-sh
|
||||
tools/install/create_fpc_deb.sh -text svneol=native#application/x-sh
|
||||
@ -2245,6 +2245,7 @@ tools/install/cvsexportlocal.pas svneol=native#text/pascal
|
||||
tools/install/do_nothing.sh -text svneol=native#application/x-sh
|
||||
tools/install/download_and_build_fpc_rpm.sh -text svneol=native#application/x-sh
|
||||
tools/install/file_filter.sh -text svneol=native#application/x-sh
|
||||
tools/install/fpc-src.spec svneol=native#text/plain
|
||||
tools/install/get_lazarus_version.sh -text svneol=native#application/x-sh
|
||||
tools/install/macosx/fpc_installer_info.zip -text svneol=unset#application/zip
|
||||
tools/install/replace_in_files.pl -text svneol=native#application/x-perl
|
||||
|
@ -2,12 +2,12 @@ Installation tools
|
||||
==================
|
||||
|
||||
This document describes how to create the various packages for lazarus
|
||||
including the required freepascal packages (fpc and fpcsrc).
|
||||
including the required freepascal packages (fpc and fpc-src).
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
TGZ
|
||||
|
||||
Creating the fpcsrc tgz:
|
||||
Creating the fpc-src tgz:
|
||||
|
||||
There are two ways to do it and so there are two scripts. The first downloads
|
||||
the fpc svn and packs it. The second uses an existing fpc svn directory,
|
||||
@ -59,7 +59,7 @@ How to create RPM packages as normal user / non root:
|
||||
From now all new rpms will be built in ~/rpm/.
|
||||
|
||||
|
||||
Creating the fpc and the fpcsrc rpm:
|
||||
Creating the fpc and the fpc-src rpm:
|
||||
|
||||
There are two versions of the compiler: the old 2.0.x and the new (but not
|
||||
yet released) developer version 2.1.x. To build them, you must install fpc
|
||||
@ -72,9 +72,9 @@ Creating the fpc and the fpcsrc rpm:
|
||||
[]$ cd <lazarus_directory>/tools/install
|
||||
[]$ ./build_fpc_rpm.sh nodocs /path/to/your/fpc/sources/fpc
|
||||
|
||||
Then build the fpcsrc rpm:
|
||||
Then build the fpc-src rpm:
|
||||
|
||||
[]$ ./build_fpcsrc_rpm.sh /path/to/your/fpc/sources/fpc
|
||||
[]$ ./build_fpc-src_rpm.sh /path/to/your/fpc/sources/fpc
|
||||
|
||||
Normally you can find the rpms under /usr/src/redhat/RPMS/i386/
|
||||
and /usr/src/redhat/SRPMS/.
|
||||
@ -101,7 +101,7 @@ Creating other system specific rpms:
|
||||
|
||||
Debian:
|
||||
|
||||
Creating the debian fpc and fpcsrc packages:
|
||||
Creating the debian fpc and fpc-src packages:
|
||||
|
||||
There are two versions of the compiler: the stable 2.0.x and the unstable
|
||||
developer version 2.1.x. To build them, you must install fpc first. Install the
|
||||
|
@ -43,21 +43,21 @@ CompilerVersionStr="$CompilerVersion.$CompilerRelease.$CompilerPatch"
|
||||
LazVersion=$CompilerVersionStr
|
||||
echo " $CompilerVersionStr-$LazRelease"
|
||||
|
||||
FPCTGZ=$(rpm/get_rpm_source_dir.sh)/SOURCES/fpcsrc-$CompilerVersionStr-$LazRelease.source.tar.gz
|
||||
FPCTGZ=$(rpm/get_rpm_source_dir.sh)/SOURCES/fpc-src-$CompilerVersionStr-$LazRelease.source.tar.gz
|
||||
CurDir=`pwd`
|
||||
|
||||
# pack the directory
|
||||
sh create_fpc_tgz_from_local_dir.sh $FPCSourceDir $FPCTGZ
|
||||
|
||||
if [ "$PkgType" = "deb" ]; then
|
||||
# build fpcsrc deb
|
||||
# build fpc-src deb
|
||||
|
||||
echo building fpcsrc deb ...
|
||||
echo building fpc-src deb ...
|
||||
|
||||
FPCSrcTmpDir=/tmp/fpcsrc$LazVersion
|
||||
FPCSrcBuildDir=$FPCSrcTmpDir/fpcsrc_build
|
||||
FPCSrcDeb=fpcsrc-$LazVersion-$LazRelease.deb
|
||||
DebianSrcDir=$CurDir/debian_fpcsrc
|
||||
FPCSrcTmpDir=/tmp/fpc-src$LazVersion
|
||||
FPCSrcBuildDir=$FPCSrcTmpDir/fpc-src_build
|
||||
FPCSrcDeb=fpc-src-$LazVersion-$LazRelease.deb
|
||||
DebianSrcDir=$CurDir/debian_fpc-src
|
||||
|
||||
echo "Build directory is $FPCSrcBuildDir"
|
||||
if [ x$FPCSrcBuildDir = x/ ]; then
|
||||
@ -83,13 +83,13 @@ if [ "$PkgType" = "deb" ]; then
|
||||
|
||||
# copyright and changelog files
|
||||
echo "copying copyright and changelog files"
|
||||
mkdir -p $FPCSrcBuildDir/usr/share/doc/fpcsrc
|
||||
mkdir -p $FPCSrcBuildDir/usr/share/doc/fpc-src
|
||||
cat $DebianSrcDir/changelog | \
|
||||
sed -e "s/FPCVERSION/$LazVersion-$LazRelease/g" \
|
||||
> $FPCSrcBuildDir/usr/share/doc/fpcsrc/changelog
|
||||
cp $DebianSrcDir/{copyright,changelog.Debian} $FPCSrcBuildDir/usr/share/doc/fpcsrc/
|
||||
gzip --best $FPCSrcBuildDir/usr/share/doc/fpcsrc/changelog
|
||||
gzip --best $FPCSrcBuildDir/usr/share/doc/fpcsrc/changelog.Debian
|
||||
> $FPCSrcBuildDir/usr/share/doc/fpc-src/changelog
|
||||
cp $DebianSrcDir/{copyright,changelog.Debian} $FPCSrcBuildDir/usr/share/doc/fpc-src/
|
||||
gzip --best $FPCSrcBuildDir/usr/share/doc/fpc-src/changelog
|
||||
gzip --best $FPCSrcBuildDir/usr/share/doc/fpc-src/changelog.Debian
|
||||
|
||||
# fixing permissions
|
||||
echo "fixing permissions ..."
|
||||
@ -104,13 +104,13 @@ if [ "$PkgType" = "deb" ]; then
|
||||
cd -
|
||||
|
||||
else
|
||||
# build fpcsrc rpm
|
||||
# build fpc-src rpm
|
||||
|
||||
echo "building fpcsrc rpm ..."
|
||||
echo "building fpc-src rpm ..."
|
||||
|
||||
# create spec file
|
||||
SpecFile=rpm/fpcsrc-$LazVersion-$LazRelease.spec
|
||||
cat fpcsrc.spec | \
|
||||
SpecFile=rpm/fpc-src-$LazVersion-$LazRelease.spec
|
||||
cat fpc-src.spec | \
|
||||
sed -e "s/LAZVERSION/$LazVersion/g" -e "s/LAZRELEASE/$LazRelease/" \
|
||||
> $SpecFile
|
||||
|
||||
@ -123,7 +123,7 @@ else
|
||||
# build rpm
|
||||
rpmbuild -ba $SpecFile || rpm -ba $SpecFile
|
||||
|
||||
echo "The new rpm can be found in $(./rpm/get_rpm_source_dir.sh)/RPMS/i386/fpcsrc-$LazVersion-$LazRelease.i386.rpm"
|
||||
echo "The new rpm can be found in $(./rpm/get_rpm_source_dir.sh)/RPMS/i386/fpc-src-$LazVersion-$LazRelease.i386.rpm"
|
||||
fi
|
||||
|
||||
# end.
|
@ -36,7 +36,7 @@ fi
|
||||
CurDir=`pwd`
|
||||
Date=20$Year$Month$Day
|
||||
LazRelease=laz.$Date
|
||||
SrcTGZ=fpcsrc-$LazVersion-$LazRelease.tgz
|
||||
SrcTGZ=fpc-src-$LazVersion-$LazRelease.tgz
|
||||
TmpDir=/tmp/fpc$LazVersion
|
||||
DebianRulezDir=$TmpDir/fpc/install/debian/
|
||||
|
||||
@ -92,12 +92,12 @@ cd -
|
||||
|
||||
echo ===================================================
|
||||
echo
|
||||
echo building fpcsrc deb ...
|
||||
echo building fpc-src deb ...
|
||||
|
||||
FPCSrcTmpDir=/tmp/fpcsrc$LazVersion
|
||||
FPCSrcBuildDir=$FPCSrcTmpDir/fpcsrc_build
|
||||
FPCSrcDeb=fpcsrc-$LazVersion-$LazRelease.deb
|
||||
DebianSrcDir=$CurDir/debian_fpcsrc
|
||||
FPCSrcTmpDir=/tmp/fpc-src$LazVersion
|
||||
FPCSrcBuildDir=$FPCSrcTmpDir/fpc-src_build
|
||||
FPCSrcDeb=fpc-src-$LazVersion-$LazRelease.deb
|
||||
DebianSrcDir=$CurDir/debian_fpc-src
|
||||
|
||||
echo "Build directory is $FPCSrcBuildDir"
|
||||
if [ x$FPCSrcBuildDir = x/ ]; then
|
||||
@ -124,14 +124,14 @@ cat $DebianSrcDir/control | \
|
||||
|
||||
# copyright and changelog files
|
||||
echo "copying copyright and changelog files"
|
||||
mkdir -p $FPCSrcBuildDir/usr/share/doc/fpcsrc
|
||||
mkdir -p $FPCSrcBuildDir/usr/share/doc/fpc-src
|
||||
cat $DebianSrcDir/changelog | \
|
||||
sed -e "s/FPCVERSION/$LazVersion-$LazRelease/g" \
|
||||
-e "s/FPCDATE/$Year-$Month-$Day/g" \
|
||||
> $FPCSrcBuildDir/usr/share/doc/fpcsrc/changelog
|
||||
cp $DebianSrcDir/{copyright,changelog.Debian} $FPCSrcBuildDir/usr/share/doc/fpcsrc/
|
||||
gzip --best $FPCSrcBuildDir/usr/share/doc/fpcsrc/changelog
|
||||
gzip --best $FPCSrcBuildDir/usr/share/doc/fpcsrc/changelog.Debian
|
||||
> $FPCSrcBuildDir/usr/share/doc/fpc-src/changelog
|
||||
cp $DebianSrcDir/{copyright,changelog.Debian} $FPCSrcBuildDir/usr/share/doc/fpc-src/
|
||||
gzip --best $FPCSrcBuildDir/usr/share/doc/fpc-src/changelog
|
||||
gzip --best $FPCSrcBuildDir/usr/share/doc/fpc-src/changelog.Debian
|
||||
|
||||
# fixing permissions
|
||||
echo "fixing permissions ..."
|
||||
|
@ -1,16 +1,16 @@
|
||||
fpcsrc (2.0.3)
|
||||
fpc-src (2.0.3)
|
||||
|
||||
* Bugfixes
|
||||
* Renamed fpcsrc to fpc-src
|
||||
|
||||
-- Mattias Gaertner <mattias@cvs.freepascal.org> 01/11/2006
|
||||
|
||||
fpcsrc (1.0.10)
|
||||
fpc-src (1.0.10)
|
||||
|
||||
* Bugfixes
|
||||
|
||||
-- Mattias Gaertner <mattias@cvs.freepascal.org> 07/13/2003
|
||||
|
||||
fpcsrc (1.0.7)
|
||||
fpc-src (1.0.7)
|
||||
|
||||
* Started package
|
||||
|
@ -1,3 +1,3 @@
|
||||
fpcsrc Debian maintainer and upstream author are identical.
|
||||
fpc-src Debian maintainer and upstream author are identical.
|
||||
Therefore see also normal changelog file for Debian changes.
|
||||
|
@ -1,4 +1,4 @@
|
||||
Package: fpcsrc
|
||||
Package: fpc-src
|
||||
Version: FPCVERSION
|
||||
Section: devel
|
||||
Priority: optional
|
@ -2,7 +2,7 @@
|
||||
#
|
||||
# Author: Mattias Gaertner
|
||||
#
|
||||
# Script to download fpc and create the rpms 'fpc' and 'fpcsrc'.
|
||||
# Script to download fpc and create the rpms 'fpc' and 'fpc-src'.
|
||||
|
||||
set -x
|
||||
set -e
|
||||
@ -55,8 +55,8 @@ fi
|
||||
|
||||
Date=20$Year$Month$Day
|
||||
LazRelease=laz.$Date
|
||||
SrcTGZ=fpcsrc-$LazVersion-$LazRelease.tgz
|
||||
SrcPatch=fpcsrc-patch
|
||||
SrcTGZ=fpc-src-$LazVersion-$LazRelease.tgz
|
||||
SrcPatch=fpc-src-patch
|
||||
TmpDir=/tmp/fpc$LazVersion
|
||||
SpecFile=$TmpDir/fpc/install/fpc.spec
|
||||
|
||||
@ -83,15 +83,15 @@ fi
|
||||
|
||||
|
||||
echo
|
||||
echo building fpcsrc rpm ...
|
||||
echo building fpc-src rpm ...
|
||||
set -x
|
||||
|
||||
# copy src tgz into building directory
|
||||
cp $SrcTGZ /usr/src/redhat/SOURCES/
|
||||
|
||||
# create spec file
|
||||
SpecFile=fpcsrc-$LazVersion-$LazRelease.spec
|
||||
cat fpcsrc.spec | \
|
||||
SpecFile=fpc-src-$LazVersion-$LazRelease.spec
|
||||
cat fpc-src.spec | \
|
||||
sed -e "s/LAZVERSION/$LazVersion/g" -e "s/LAZRELEASE/$LazRelease/" \
|
||||
> $SpecFile
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Name: fpcsrc
|
||||
Name: fpc-src
|
||||
Version: LAZVERSION
|
||||
Release: LAZRELEASE
|
||||
Copyright: LGPL2
|
||||
@ -7,7 +7,7 @@ Source: %{name}-%{version}-%{release}.source.tar.gz
|
||||
Summary: FreePascal sources
|
||||
Packager: Mattias Gaertner (mattias@freepascal.org)
|
||||
URL: http://www.freepascal.org/
|
||||
BuildRoot: %{_tmppath}/fpcsrc-build%{version}
|
||||
BuildRoot: %{_tmppath}/fpc-src-build%{version}
|
||||
|
||||
%define fpcsrcdir %{_datadir}/fpcsrc
|
||||
%define destdir %{buildroot}%{fpcsrcdir}/
|
@ -9,7 +9,7 @@ FPCSRC="u"
|
||||
echo "Installing freepascal"
|
||||
cd $WHERE/fpc
|
||||
yes "" | ./install.sh
|
||||
echo "Installin freepascal sources"
|
||||
echo "Installing freepascal sources"
|
||||
cd /
|
||||
rm -frv /usr/src/fpc-1.9.6
|
||||
rm -frv /usr/src/fpc
|
||||
|
Loading…
Reference in New Issue
Block a user