Accepting request 136429 from home:termim:branches:devel:languages:pascal
update to 1.0.0 OBS-URL: https://build.opensuse.org/request/show/136429 OBS-URL: https://build.opensuse.org/package/show/devel:languages:pascal/lazarus?expand=0&rev=21
This commit is contained in:
parent
f43451aef2
commit
a2aba5c6eb
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ee8ba358e996a6f436f70d15e64976789c2b8f28b2e2dbf1b737de593b4d23e3
|
|
||||||
size 17926864
|
|
3
lazarus-1.0.0.tar.bz2
Normal file
3
lazarus-1.0.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:92d67a02faf7c22c25598715e4a7e2a1eb8219411e8f838cf7d6b5e15a7888cb
|
||||||
|
size 40140631
|
@ -1,6 +1,6 @@
|
|||||||
--- lazarus/Makefile.fpc (version 0.9.30)
|
--- lazarus/Makefile.fpc.orig 2012-06-24 15:22:41.000000000 -0400
|
||||||
+++ lazarus/Makefile.fpc 2011-04-01 17:56:24.000000000 -0400
|
+++ lazarus/Makefile.fpc 2012-09-23 00:18:28.000000000 -0400
|
||||||
@@ -21,7 +21,7 @@
|
@@ -20,7 +20,7 @@
|
||||||
|
|
||||||
[install]
|
[install]
|
||||||
fpcpackage=n
|
fpcpackage=n
|
||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
[dist]
|
[dist]
|
||||||
destdir=$(BASEDIR)/dist
|
destdir=$(BASEDIR)/dist
|
||||||
@@ -29,7 +29,7 @@
|
@@ -28,7 +28,7 @@
|
||||||
[prerules]
|
[prerules]
|
||||||
RCPP?=$(strip $(firstword cpp$(SRCEXEEXT)))
|
RCPP?=$(strip $(firstword cpp$(SRCEXEEXT)))
|
||||||
#
|
#
|
||||||
@ -18,7 +18,7 @@
|
|||||||
INSTALL_MAN_DIR=$(INSTALL_PREFIX)/share/man
|
INSTALL_MAN_DIR=$(INSTALL_PREFIX)/share/man
|
||||||
ifneq ($(findstring $(OS_TARGET),win32 win64),)
|
ifneq ($(findstring $(OS_TARGET),win32 win64),)
|
||||||
LAZARUS_INSTALL_DIR=C:\lazarus
|
LAZARUS_INSTALL_DIR=C:\lazarus
|
||||||
@@ -115,8 +115,8 @@
|
@@ -244,8 +244,8 @@
|
||||||
ifneq ($(findstring $(OS_TARGET),win32 win64),)
|
ifneq ($(findstring $(OS_TARGET),win32 win64),)
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Sep 23 06:59:31 UTC 2012 - termim@gmail.com
|
||||||
|
|
||||||
|
- Update to 1.0.0
|
||||||
|
This is a major release. For complete list of changes see
|
||||||
|
http://wiki.lazarus.freepascal.org/Lazarus_1.0_release_notes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 1 22:54:14 UTC 2011 - termim@gmail.com
|
Fri Apr 1 22:54:14 UTC 2011 - termim@gmail.com
|
||||||
|
|
||||||
|
146
lazarus.spec
146
lazarus.spec
@ -9,19 +9,13 @@
|
|||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
Name: lazarus
|
Name: lazarus
|
||||||
Version: 0.9.30
|
Version: 1.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Lazarus Component Library and IDE
|
Summary: Lazarus Component Library and IDE
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
License: GPL and modified LGPL
|
License: GPL and modified LGPL
|
||||||
Url: http://www.lazarus.freepascal.org/
|
Url: http://www.lazarus.freepascal.org/
|
||||||
# snapshot build:
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
#Source0: http://snapshots.lazarus.shikami.org/lazarus/downloads/%{name}-%{version}-17149-20081029-src.tar.bz2
|
|
||||||
# svn co https://lazarus.svn.sourceforge.net/svnroot/lazarus/tags/lazarus_0_9_26_2 lazarus
|
|
||||||
#Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
||||||
# release build:
|
|
||||||
#Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}-src.tar.bz2
|
|
||||||
Source0: %{name}-%{version}-src.tar.bz2
|
|
||||||
Source1: %{name}.desktop
|
Source1: %{name}.desktop
|
||||||
Source90: %{name}-rpmlintrc
|
Source90: %{name}-rpmlintrc
|
||||||
Patch: %{name}-Makefile_patch.diff
|
Patch: %{name}-Makefile_patch.diff
|
||||||
@ -30,8 +24,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
|
|
||||||
BuildRequires: ImageMagick
|
BuildRequires: ImageMagick
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: fpc >= 2.2.4
|
BuildRequires: fpc >= 2.6.0
|
||||||
BuildRequires: fpc-src >= 2.2.4
|
BuildRequires: fpc-src >= 2.6.0
|
||||||
BuildRequires: gtk2
|
BuildRequires: gtk2
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
@ -39,9 +33,7 @@ PreReq: shared-mime-info
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
%if %suse_version >= 1120
|
BuildRequires: libdb-4_5-devel
|
||||||
BuildRequires: libdb-4_5-devel
|
|
||||||
%endif
|
|
||||||
Requires: glib2-devel
|
Requires: glib2-devel
|
||||||
Requires: gtk2-devel
|
Requires: gtk2-devel
|
||||||
%endif
|
%endif
|
||||||
@ -90,115 +82,88 @@ dos2unix examples/trayicon/frmtest.*
|
|||||||
dos2unix examples/trayicon/wndtray.*
|
dos2unix examples/trayicon/wndtray.*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
export FPCDIR=%{_datadir}/fpcsrc/
|
export FPCDIR=%{_datadir}/fpcsrc/
|
||||||
fpcmake -Tall
|
fpcmake -Tall
|
||||||
|
|
||||||
MAKEOPTS="-gl -Fl/usr/%{_lib}"
|
MAKEOPTS="-gl -Fl/usr/%{_lib}"
|
||||||
if [ -n "$FPCCfg" ]; then
|
if [ -n "$FPCCfg" ]; then
|
||||||
MAKEOPTS="$MAKEOPTS -n @$FPCCfg"
|
MAKEOPTS="$MAKEOPTS -n @$FPCCfg"
|
||||||
|
fi
|
||||||
|
#CHMHELP:MAKEOPTS="$MAKEOPTS -dUseCHMHelp"
|
||||||
|
make bigide OPT="$MAKEOPTS" USESVN2REVISIONINC=0
|
||||||
|
export LCL_PLATFORM=
|
||||||
|
strip lazarus
|
||||||
|
strip startlazarus
|
||||||
|
strip lazbuild
|
||||||
|
strip tools/lazres
|
||||||
|
strip tools/updatepofiles
|
||||||
|
strip tools/lrstolfm
|
||||||
|
strip tools/svn2revisioninc
|
||||||
|
if [ -f components/chmhelp/lhelp/lhelp ]; then
|
||||||
|
strip components/chmhelp/lhelp/lhelp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%__cat > ide/revision.inc << EOF
|
|
||||||
// Created by Svn2RevisionInc
|
|
||||||
const RevisionStr = 'Unknown';
|
|
||||||
EOF
|
|
||||||
|
|
||||||
%__make tools OPT="$MAKEOPTS -k-build-id"
|
|
||||||
%__make bigide OPT="$MAKEOPTS" USESVN2REVISIONINC=0
|
|
||||||
%__make lazbuilder OPT="$MAKEOPTS"
|
|
||||||
|
|
||||||
# build Qt4 interface
|
# build Qt4 interface
|
||||||
pushd lcl/interfaces/qt
|
make -C lcl/interfaces/qt all LCL_PLATFORM=qt OPT="-dQT_NATIVE_DIALOGS"
|
||||||
%__make all \
|
|
||||||
LCL_PLATFORM=qt \
|
|
||||||
OPT="-dUSE_QT_45 \
|
|
||||||
-dQT_NATIVE_DIALOGS"
|
|
||||||
popd
|
|
||||||
|
|
||||||
cd lcl/interfaces/gtk2
|
|
||||||
make PREFIX=%{_prefix} clean all LCL_PLATFORM=gtk2
|
|
||||||
cd ../../../
|
|
||||||
|
|
||||||
# add the ability to create gtk2-applications build gtk2.ppu
|
|
||||||
export LCL_PLATFORM=gtk2
|
|
||||||
%__make lcl ideintf packager/registration bigidecomponents OPT="$MAKEOPTS"
|
|
||||||
export LCL_PLATFORM=
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall \
|
|
||||||
INSTALL_PREFIX=%{buildroot}%{_prefix} \
|
install -dm 755 %{buildroot}%{_libdir}/%{name}
|
||||||
_LIB=%{_lib} \
|
make install \
|
||||||
PREFIX=%{_prefix} \
|
INSTALL_PREFIX=%{buildroot}%{_prefix} \
|
||||||
clean all \
|
INSTALL_LIBDIR=%{buildroot}%{_libdir} INSTALL_BINDIR=%{buildroot}%{_bindir} \
|
||||||
LCL_PLATFORM=gtk2
|
LAZARUS_INSTALL_DIR=%{buildroot}%{_libdir}/%{name} \
|
||||||
# man-page
|
|
||||||
%__make -C install/man \
|
|
||||||
INSTALL_MANDIR=%{buildroot}%{_mandir}
|
|
||||||
|
|
||||||
# convenience links
|
# convenience links
|
||||||
%__install -dm 755 %{buildroot}%{_bindir}
|
for f in lazarus lazbuild startlazarus; do
|
||||||
ln -sf ../%{_lib}/%{name}/%{name} \
|
rm -f %{buildroot}%{_bindir}/$f
|
||||||
%{buildroot}%{_bindir}/%{name}-ide
|
ln -sf ../%{_lib}/%{name}/$f %{buildroot}%{_bindir}/$f
|
||||||
ln -sf ../%{_lib}/%{name}/%{name} \
|
done
|
||||||
%{buildroot}%{_bindir}/%{name}
|
rm -f %{buildroot}%{_bindir}/lazarus-ide
|
||||||
ln -sf ../%{_lib}/%{name}/startlazarus \
|
ln -sf ../%{_lib}/%{name}/lazarus %{buildroot}%{_bindir}/lazarus-ide
|
||||||
%{buildroot}%{_bindir}/startlazarus
|
for f in lazres lrstolfm updatepofiles; do
|
||||||
ln -sf ../%{_lib}/%{name}/lazbuild \
|
ln -sf ../%{_lib}/%{name}/tools/$f %{buildroot}%{_bindir}/$f
|
||||||
%{buildroot}%{_bindir}/lazbuild
|
cat %{buildroot}%{_libdir}/%{name}/install/man/man1/${f}.1 | gzip > %{buildroot}%{_mandir}/man1/${f}.1.gz
|
||||||
|
done
|
||||||
%__install -dm 755 %{buildroot}%{_libdir}/%{name}/tools
|
|
||||||
|
|
||||||
# collect docs and samples
|
# collect docs and samples
|
||||||
%__install -dm 755 %{buildroot}%{_defaultdocdir}/%{name}
|
install -dm 755 %{buildroot}%{_defaultdocdir}/%{name}
|
||||||
%__mv %{buildroot}%{_libdir}/%{name}/examples \
|
mv %{buildroot}%{_libdir}/%{name}/examples %{buildroot}%{_defaultdocdir}/%{name}
|
||||||
%{buildroot}%{_defaultdocdir}/%{name}
|
ln -s %{_defaultdocdir}/%{name}/examples %{buildroot}%{_libdir}/%{name}/examples
|
||||||
ln -s %{_defaultdocdir}/%{name}/examples \
|
mv %{buildroot}%{_libdir}/%{name}/docs %{buildroot}%{_defaultdocdir}/%{name}
|
||||||
%{buildroot}%{_libdir}/%{name}/examples
|
ln -s %{_defaultdocdir}/%{name}/docs %{buildroot}%{_libdir}/%{name}/docs
|
||||||
%__mv %{buildroot}%{_libdir}/%{name}/COPYING* %{buildroot}%{_libdir}/%{name}/README* \
|
mv %{buildroot}%{_libdir}/%{name}/COPYING* %{buildroot}%{_libdir}/%{name}/README* %{buildroot}%{_defaultdocdir}/%{name}
|
||||||
%{buildroot}%{_defaultdocdir}/%{name}
|
|
||||||
|
|
||||||
# icon
|
# icon
|
||||||
%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
|
install -dm 755 %{buildroot}%{_datadir}/pixmaps
|
||||||
%__install -m 644 images/ide_icon48x48.png \
|
install -m 644 images/icons/lazarus128x128.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||||
%{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
||||||
|
|
||||||
# menu-entry
|
# menu-entry
|
||||||
%__install -dm 755 %{buildroot}%{_datadir}/applications
|
install -dm 755 %{buildroot}%{_datadir}/applications
|
||||||
%__install -m 644 %{SOURCE1} \
|
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
%{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%suse_update_desktop_file -n %{name} Development IDE
|
%suse_update_desktop_file -n %{name} Development IDE
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# mime info
|
# mime info
|
||||||
%__install -dm 755 %{buildroot}%{_datadir}/mime/packages
|
install -dm 755 %{buildroot}%{_datadir}/mime/packages
|
||||||
%__install -m 644 install/%{name}-mime.xml \
|
install -m 644 install/%{name}-mime.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml
|
||||||
%{buildroot}%{_datadir}/mime/packages/%{name}.xml
|
|
||||||
|
|
||||||
# configs
|
# configs
|
||||||
%__install -dm 755 %{buildroot}%{_sysconfdir}/%{name}
|
install -dm 755 %{buildroot}%{_sysconfdir}/%{name}
|
||||||
%__install -m 644 tools/install/linux/editoroptions.xml \
|
install -m 644 tools/install/linux/editoroptions.xml \
|
||||||
%{buildroot}%{_sysconfdir}/%{name}/editoroptions.xml
|
%{buildroot}%{_sysconfdir}/%{name}/editoroptions.xml
|
||||||
%__sed 's#/usr/lib/lazarus/#%{_libdir}/%{name}#;s#/\$(FPCVER)##;s#%LazarusVersion%##' \
|
cat tools/install/linux/environmentoptions.xml | sed -e "s#__LAZARUSDIR__#$LAZARUSDIR/#" -e "s#__FPCSRCDIR__#%{_datadir}/fpcsrc/#" > %{buildroot}%{_sysconfdir}/%{name}/environmentoptions.xml
|
||||||
tools/install/linux/environmentoptions.xml > %{buildroot}%{_sysconfdir}/%{name}/environmentoptions.xml
|
|
||||||
#%__install -m 644 tools/install/linux/environmentoptions.xml \
|
|
||||||
# %{buildroot}%{_sysconfdir}/%{name}/environmentoptions.xml
|
|
||||||
%__cp %{buildroot}%{_sysconfdir}/%{name}/environmentoptions.xml \
|
|
||||||
%{buildroot}%{_libdir}/%{name}/tools/install/linux
|
|
||||||
|
|
||||||
# fix encoding
|
|
||||||
for file in $(find %{buildroot}%{_defaultdocdir}/%{name}/examples -type f); do
|
|
||||||
sed -i 's/\r$//' $file
|
|
||||||
done
|
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
%__rm -rf %{buildroot}%{_libdir}/%{name}/install/man
|
rm -rf %{buildroot}%{_libdir}/%{name}/install/man
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
|
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ -x %{_bindir}/update-mime-database ]; then
|
if [ -x %{_bindir}/update-mime-database ]; then
|
||||||
@ -224,6 +189,9 @@ update-desktop-database &> /dev/null ||:
|
|||||||
%{_bindir}/%{name}-ide
|
%{_bindir}/%{name}-ide
|
||||||
%{_bindir}/lazbuild
|
%{_bindir}/lazbuild
|
||||||
%{_bindir}/startlazarus
|
%{_bindir}/startlazarus
|
||||||
|
%{_bindir}/lazres
|
||||||
|
%{_bindir}/lrstolfm
|
||||||
|
%{_bindir}/updatepofiles
|
||||||
%dir %{_libdir}/%{name}
|
%dir %{_libdir}/%{name}
|
||||||
%{_libdir}/%{name}/*
|
%{_libdir}/%{name}/*
|
||||||
%{_datadir}/pixmaps/%{name}.png
|
%{_datadir}/pixmaps/%{name}.png
|
||||||
|
Loading…
x
Reference in New Issue
Block a user