mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 13:59:23 +02:00
tools: rpm: renamed packages
This commit is contained in:
parent
2d98da4d24
commit
a7bb657c73
@ -1,4 +1,4 @@
|
|||||||
Name: fpc
|
Name: fpc-laz
|
||||||
Version: 1.2.3
|
Version: 1.2.3
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Free Pascal Compiler
|
Summary: Free Pascal Compiler
|
||||||
@ -9,25 +9,32 @@ AutoReqProv: no
|
|||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: GPL2 and modified LGPL2
|
License: GPL2 and modified LGPL2
|
||||||
URL: http://www.freepascal.org/
|
URL: https://www.freepascal.org/
|
||||||
Source: ftp://ftp.freepascal.org/pub/fpc/dist/source-%{version}/%{name}-%{version}-%{release}.source.tar.gz
|
Source: ftp://ftp.freepascal.org/pub/fpc/dist/source-%{version}/fpc-%{version}-%{release}.source.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
Requires: glibc, binutils
|
Requires: glibc, binutils
|
||||||
BuildRequires: binutils, glibc-devel
|
BuildRequires: binutils, glibc-devel
|
||||||
|
Conflicts: fpc, fpc-ide, fpc-units
|
||||||
|
|
||||||
%define _source_payload w9.bzdio
|
%define _source_payload w9.bzdio
|
||||||
%define _binary_payload w9.bzdio
|
%define _binary_payload w9.bzdio
|
||||||
|
%define _build_id_links none
|
||||||
|
%undefine _missing_build-ids_terminate_build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
Freepascal is a free 32/64bit Pascal Compiler. It comes with a run-time
|
Free Pascal is a mature, versatile, open source Pascal compiler.
|
||||||
library fully compatible with Turbo Pascal 7.0 and nearly Delphi compatible.
|
It can target many processor architectures: Intel x86 (16 and 32 bit),
|
||||||
Some extensions are added to the language, like function overloading. Shared
|
AMD64/x86-64, PowerPC, PowerPC64, SPARC, SPARC64, ARM, AArch64, MIPS,
|
||||||
libraries can be linked. This package contains commandline compiler and
|
Motorola 68k, AVR, and the JVM. Supported operating systems include
|
||||||
utils. Provided units are the runtime library (RTL), free component library
|
Windows (16/32/64 bit, CE, and native NT), Linux,
|
||||||
(FCL) and bindings for among others gtk1, gtk2, ncurses, zlib, mysql, postgres
|
Mac OS X/iOS/iPhoneSimulator/Darwin, FreeBSD and other BSD flavors,
|
||||||
and ibase.
|
DOS (16 bit, or 32 bit DPMI), OS/2, AIX, Android, Haiku,
|
||||||
|
Nintendo GBA/DS/Wii, AmigaOS, MorphOS, AROS, Atari TOS,
|
||||||
|
and various embedded platforms. Additionally, support for RISC-V (32/64),
|
||||||
|
Xtensa, and Z80 architectures, and for the LLVM compiler infrastructure
|
||||||
|
is available in the development version.
|
||||||
|
|
||||||
%ifarch ppc
|
%ifarch ppc
|
||||||
%define ppcname ppcppc
|
%define ppcname ppcppc
|
||||||
@ -35,13 +42,17 @@ and ibase.
|
|||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%define ppcname ppcx64
|
%define ppcname ppcx64
|
||||||
%else
|
%else
|
||||||
|
%ifarch aarch64
|
||||||
|
%define ppcname ppca64
|
||||||
|
%else
|
||||||
%ifarch amd64
|
%ifarch amd64
|
||||||
%define ppcname amd64
|
%define ppcname ppcx64
|
||||||
%else
|
%else
|
||||||
%define ppcname ppc386
|
%define ppcname ppc386
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -84,7 +95,7 @@ FPCFULLVERSION=`${NEWPP} -iW`
|
|||||||
INSTALLOPTS="FPC=${NEWPP} FPCMAKE=${FPCMAKE} DATA2INC=${DATA2INC} \
|
INSTALLOPTS="FPC=${NEWPP} FPCMAKE=${FPCMAKE} DATA2INC=${DATA2INC} \
|
||||||
INSTALL_PREFIX=%{buildroot}%{_prefix} \
|
INSTALL_PREFIX=%{buildroot}%{_prefix} \
|
||||||
INSTALL_LIBDIR=%{buildroot}%{_libdir} \
|
INSTALL_LIBDIR=%{buildroot}%{_libdir} \
|
||||||
INSTALL_BASEDIR=%{buildroot}%{_libdir}/%{name}/${FPCVERSION} \
|
INSTALL_BASEDIR=%{buildroot}%{_libdir}/fpc/${FPCVERSION} \
|
||||||
INSTALL_BINDIR=%{buildroot}%{_bindir}"
|
INSTALL_BINDIR=%{buildroot}%{_bindir}"
|
||||||
make install ${INSTALLOPTS}
|
make install ${INSTALLOPTS}
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
@ -94,14 +105,14 @@ make install ${INSTALLOPTS}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# create link /usr/bin/ppc*
|
# create link /usr/bin/ppc*
|
||||||
ln -sf %{_libdir}/%{name}/${FPCVERSION}/%{ppcname} %{buildroot}%{_bindir}/%{ppcname}
|
ln -sf %{_libdir}/fpc/${FPCVERSION}/%{ppcname} %{buildroot}%{_bindir}/%{ppcname}
|
||||||
# install /usr/bin/fpcmkcfg
|
# install /usr/bin/fpcmkcfg
|
||||||
install `pwd`/utils/fpcmkcfg/bin/%{_arch}-linux/fpcmkcfg %{buildroot}%{_bindir}/fpcmkcfg
|
install `pwd`/utils/fpcmkcfg/bin/%{_arch}-linux/fpcmkcfg %{buildroot}%{_bindir}/fpcmkcfg
|
||||||
|
|
||||||
# Workaround:
|
# Workaround:
|
||||||
# newer rpm versions do not allow garbage
|
# newer rpm versions do not allow garbage
|
||||||
rm -rf %{buildroot}%{_libdir}/%{name}/lexyacc
|
rm -rf %{buildroot}%{_libdir}/fpc/lexyacc
|
||||||
rm -rf %{buildroot}%{_prefix}/lib/%{name}/lexyacc
|
rm -rf %{buildroot}%{_prefix}/lib/fpc/lexyacc
|
||||||
rm -rf %{buildroot}%{_defaultdocdir}/fpc-libc-*
|
rm -rf %{buildroot}%{_defaultdocdir}/fpc-libc-*
|
||||||
rm -rf %{buildroot}%{_defaultdocdir}/fpc-symbolic-*
|
rm -rf %{buildroot}%{_defaultdocdir}/fpc-symbolic-*
|
||||||
# 2.7.1 ignores the INSTALL_DOC variable and writes some files directly to /usr/share/doc
|
# 2.7.1 ignores the INSTALL_DOC variable and writes some files directly to /usr/share/doc
|
||||||
@ -113,16 +124,19 @@ rm -rf %{buildroot}
|
|||||||
%post
|
%post
|
||||||
# Create a version independent config
|
# Create a version independent config
|
||||||
%define fpcversion 1.2.3
|
%define fpcversion 1.2.3
|
||||||
%{_libdir}/%{name}/%{fpcversion}/samplecfg %{_libdir}/%{name}/%{fpcversion} > /dev/null
|
%{_libdir}/fpc/%{fpcversion}/samplecfg %{_libdir}/fpc/%{fpcversion} > /dev/null
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_libdir}/%{name}
|
%{_libdir}/fpc
|
||||||
# since fpc 3.1.1:
|
# since fpc 3.1.1:
|
||||||
%{_libdir}/libpas2jslib.so
|
%{_libdir}/libpas2jslib.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 23 2024 Mattias Gaertner <mattias@freepascal.org> 3.2.2
|
||||||
|
- renamed to fpc-laz, conflicts with fpc, fpc-ide, fpc-units
|
||||||
|
|
||||||
* Sat May 2 2020 Mattias Gaertner <mattias@freepascal.org> 3.0.4
|
* Sat May 2 2020 Mattias Gaertner <mattias@freepascal.org> 3.0.4
|
||||||
- commented libpas2jslib.so, added fpcmkcfg
|
- commented libpas2jslib.so, added fpcmkcfg
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
Name: fpc-src
|
Name: fpc-src-laz
|
||||||
Version: LAZVERSION
|
Version: LAZVERSION
|
||||||
Release: LAZRELEASE
|
Release: LAZRELEASE
|
||||||
License: LGPL2
|
License: LGPL2
|
||||||
@ -6,8 +6,9 @@ Group: Development/Languages
|
|||||||
Source: %{name}-%{version}-%{release}.source.tar.gz
|
Source: %{name}-%{version}-%{release}.source.tar.gz
|
||||||
Summary: FreePascal sources
|
Summary: FreePascal sources
|
||||||
Packager: Mattias Gaertner (mattias@freepascal.org)
|
Packager: Mattias Gaertner (mattias@freepascal.org)
|
||||||
URL: http://www.freepascal.org/
|
URL: https://www.freepascal.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-build%{version}
|
BuildRoot: %{_tmppath}/%{name}-build%{version}
|
||||||
|
Conflicts: fpc-src
|
||||||
|
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%define fpcsrcdir %{_datadir}/fpcsrc
|
%define fpcsrcdir %{_datadir}/fpcsrc
|
||||||
@ -24,14 +25,17 @@ AutoReq: 0
|
|||||||
%define __strip LAZSCRIPTDIR/smart_strip.sh
|
%define __strip LAZSCRIPTDIR/smart_strip.sh
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
|
Free Pascal is a mature, versatile, open source Pascal compiler.
|
||||||
Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
|
It can target many processor architectures: Intel x86 (16 and 32 bit),
|
||||||
Some extensions are added to the language, like function overloading. Shared
|
AMD64/x86-64, PowerPC, PowerPC64, SPARC, SPARC64, ARM, AArch64, MIPS,
|
||||||
libraries can be linked. Basic Delphi support is already implemented (classes,
|
Motorola 68k, AVR, and the JVM. Supported operating systems include
|
||||||
exceptions, ansistrings, RTTI). This package contains the sources for the
|
Windows (16/32/64 bit, CE, and native NT), Linux,
|
||||||
commandline compiler and utils. Provided units are the runtime library (RTL),
|
Mac OS X/iOS/iPhoneSimulator/Darwin, FreeBSD and other BSD flavors,
|
||||||
free component library (FCL), gtk, ncurses, zlib, mysql, postgres, ibase
|
DOS (16 bit, or 32 bit DPMI), OS/2, AIX, Android, Haiku,
|
||||||
bindings and many more.
|
Nintendo GBA/DS/Wii, AmigaOS, MorphOS, AROS, Atari TOS,
|
||||||
|
and various embedded platforms. Additionally, support for RISC-V (32/64),
|
||||||
|
Xtensa, and Z80 architectures, and for the LLVM compiler infrastructure
|
||||||
|
is available in the development version.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
@ -45,8 +49,8 @@ if [ %{buildroot} != "/" ]; then
|
|||||||
fi
|
fi
|
||||||
mkdir -p %{destdir}
|
mkdir -p %{destdir}
|
||||||
cp -a fpc/* %{destdir}/
|
cp -a fpc/* %{destdir}/
|
||||||
# the palmos libcrt.a archive is making trouble
|
find %{destdir} -name '*.o' -delete
|
||||||
rm -f %{destdir}/rtl/palmos/libcrt.a
|
find %{destdir} -name '*.a' -delete
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
if [ %{buildroot} != "/" ]; then
|
if [ %{buildroot} != "/" ]; then
|
||||||
@ -58,5 +62,6 @@ fi
|
|||||||
%{fpcsrcdir}
|
%{fpcsrcdir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 23 2024 Mattias Gaertner <mattias@freepascal.org> 3.2.2
|
||||||
|
- renamed to fpc-src-laz, conflicts with fpc-src
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
Name: lazarus
|
Name: lazarus-project
|
||||||
Version: LAZVERSION
|
Version: LAZVERSION
|
||||||
Release: LAZRELEASE
|
Release: LAZRELEASE
|
||||||
Summary: Lazarus Component Library and IDE
|
Summary: Lazarus Component Library and IDE
|
||||||
@ -6,12 +6,13 @@ Summary: Lazarus Component Library and IDE
|
|||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: GPL and modified LGPL
|
License: GPL and modified LGPL
|
||||||
URL: http://www.lazarus.freepascal.org/
|
URL: http://www.lazarus.freepascal.org/
|
||||||
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}-%{release}.tar.gz
|
Source0: https://prdownloads.sourceforge.net/lazarus/lazarus-%{version}-%{release}.tar.gz
|
||||||
Packager: Mattias Gaertner
|
Packager: Mattias Gaertner
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/lazarus-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
Conflicts: lazarus, lazarus-ide, lazarus-docs, lazarus-lcl, lazarus-lcl-gtk, lazarus-lcl-gtk2, lazarus-lcl-gtk3, lazarus-lcl-nogui, lazarus-lcl-qt, lazarus-lcl-qt5, lazarus-lcl-qt6, lazarus-tools
|
||||||
|
|
||||||
BuildRequires: fpc = FPCVERSION, gtk2-devel, glibc-devel
|
BuildRequires: fpc-laz = FPCVERSION, gtk2-devel, glibc-devel
|
||||||
Requires: fpc-src = FPCSRCVERSION, fpc = FPCVERSION, gtk2-devel, glibc-devel, binutils, gdb
|
Requires: fpc-src-laz = FPCSRCVERSION, fpc-laz = FPCVERSION, gtk2-devel, glibc-devel, binutils, gdb
|
||||||
|
|
||||||
Requires(post): desktop-file-utils
|
Requires(post): desktop-file-utils
|
||||||
Requires(postun): desktop-file-utils
|
Requires(postun): desktop-file-utils
|
||||||
@ -56,7 +57,7 @@ fi
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
[ %{buildroot} != "/" ] && ( rm -rf %{buildroot} )
|
[ %{buildroot} != "/" ] && ( rm -rf %{buildroot} )
|
||||||
LAZARUSDIR=%{_datadir}/%{name}
|
LAZARUSDIR=%{_datadir}/lazarus
|
||||||
mkdir -p %{buildroot}$LAZARUSDIR
|
mkdir -p %{buildroot}$LAZARUSDIR
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
||||||
@ -76,7 +77,8 @@ cat lazarus/install/man/man1/lazbuild.1 | gzip > %{buildroot}%{_mandir}/man1/laz
|
|||||||
cat lazarus/install/man/man1/lazarus-ide.1 | gzip > %{buildroot}%{_mandir}/man1/lazarus-ide.1.gz
|
cat lazarus/install/man/man1/lazarus-ide.1 | gzip > %{buildroot}%{_mandir}/man1/lazarus-ide.1.gz
|
||||||
cat lazarus/install/man/man1/startlazarus.1 | gzip > %{buildroot}%{_mandir}/man1/startlazarus.1.gz
|
cat lazarus/install/man/man1/startlazarus.1 | gzip > %{buildroot}%{_mandir}/man1/startlazarus.1.gz
|
||||||
cat lazarus/tools/install/linux/environmentoptions.xml | sed -e "s#__LAZARUSDIR__#$LAZARUSDIR/#" -e "s#__FPCSRCDIR__#%{_datadir}/fpcsrc/#" > %{buildroot}%{_sysconfdir}/lazarus/environmentoptions.xml
|
cat lazarus/tools/install/linux/environmentoptions.xml | sed -e "s#__LAZARUSDIR__#$LAZARUSDIR/#" -e "s#__FPCSRCDIR__#%{_datadir}/fpcsrc/#" > %{buildroot}%{_sysconfdir}/lazarus/environmentoptions.xml
|
||||||
|
# prevent stripping:
|
||||||
|
exit 0
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ %{buildroot} != "/" ] && ( rm -rf %{buildroot} )
|
[ %{buildroot} != "/" ] && ( rm -rf %{buildroot} )
|
||||||
@ -89,7 +91,7 @@ update-desktop-database &> /dev/null ||:
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/lazarus
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_datadir}/pixmaps/lazarus.png
|
%{_datadir}/pixmaps/lazarus.png
|
||||||
%{_datadir}/applications/lazarus.desktop
|
%{_datadir}/applications/lazarus.desktop
|
Loading…
Reference in New Issue
Block a user