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 2011-04-01 17:56:24.000000000 -0400
|
||||
@@ -21,7 +21,7 @@
|
||||
--- lazarus/Makefile.fpc.orig 2012-06-24 15:22:41.000000000 -0400
|
||||
+++ lazarus/Makefile.fpc 2012-09-23 00:18:28.000000000 -0400
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
[install]
|
||||
fpcpackage=n
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
[dist]
|
||||
destdir=$(BASEDIR)/dist
|
||||
@@ -29,7 +29,7 @@
|
||||
@@ -28,7 +28,7 @@
|
||||
[prerules]
|
||||
RCPP?=$(strip $(firstword cpp$(SRCEXEEXT)))
|
||||
#
|
||||
@ -18,7 +18,7 @@
|
||||
INSTALL_MAN_DIR=$(INSTALL_PREFIX)/share/man
|
||||
ifneq ($(findstring $(OS_TARGET),win32 win64),)
|
||||
LAZARUS_INSTALL_DIR=C:\lazarus
|
||||
@@ -115,8 +115,8 @@
|
||||
@@ -244,8 +244,8 @@
|
||||
ifneq ($(findstring $(OS_TARGET),win32 win64),)
|
||||
|
||||
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
|
||||
|
||||
|
140
lazarus.spec
140
lazarus.spec
@ -9,19 +9,13 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: lazarus
|
||||
Version: 0.9.30
|
||||
Version: 1.0.0
|
||||
Release: 0
|
||||
Summary: Lazarus Component Library and IDE
|
||||
Group: Development/Languages/Other
|
||||
License: GPL and modified LGPL
|
||||
Url: http://www.lazarus.freepascal.org/
|
||||
# snapshot build:
|
||||
#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
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source1: %{name}.desktop
|
||||
Source90: %{name}-rpmlintrc
|
||||
Patch: %{name}-Makefile_patch.diff
|
||||
@ -30,8 +24,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
BuildRequires: ImageMagick
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fpc >= 2.2.4
|
||||
BuildRequires: fpc-src >= 2.2.4
|
||||
BuildRequires: fpc >= 2.6.0
|
||||
BuildRequires: fpc-src >= 2.6.0
|
||||
BuildRequires: gtk2
|
||||
BuildRequires: gtk2-devel
|
||||
%if 0%{?suse_version}
|
||||
@ -39,9 +33,7 @@ PreReq: shared-mime-info
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: update-desktop-files
|
||||
%if %suse_version >= 1120
|
||||
BuildRequires: libdb-4_5-devel
|
||||
%endif
|
||||
Requires: glib2-devel
|
||||
Requires: gtk2-devel
|
||||
%endif
|
||||
@ -90,6 +82,7 @@ dos2unix examples/trayicon/frmtest.*
|
||||
dos2unix examples/trayicon/wndtray.*
|
||||
|
||||
%build
|
||||
|
||||
export FPCDIR=%{_datadir}/fpcsrc/
|
||||
fpcmake -Tall
|
||||
|
||||
@ -97,108 +90,80 @@ MAKEOPTS="-gl -Fl/usr/%{_lib}"
|
||||
if [ -n "$FPCCfg" ]; then
|
||||
MAKEOPTS="$MAKEOPTS -n @$FPCCfg"
|
||||
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"
|
||||
#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
|
||||
|
||||
# build Qt4 interface
|
||||
pushd lcl/interfaces/qt
|
||||
%__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=
|
||||
make -C lcl/interfaces/qt all LCL_PLATFORM=qt OPT="-dQT_NATIVE_DIALOGS"
|
||||
|
||||
%install
|
||||
%makeinstall \
|
||||
|
||||
install -dm 755 %{buildroot}%{_libdir}/%{name}
|
||||
make install \
|
||||
INSTALL_PREFIX=%{buildroot}%{_prefix} \
|
||||
_LIB=%{_lib} \
|
||||
PREFIX=%{_prefix} \
|
||||
clean all \
|
||||
LCL_PLATFORM=gtk2
|
||||
# man-page
|
||||
%__make -C install/man \
|
||||
INSTALL_MANDIR=%{buildroot}%{_mandir}
|
||||
INSTALL_LIBDIR=%{buildroot}%{_libdir} INSTALL_BINDIR=%{buildroot}%{_bindir} \
|
||||
LAZARUS_INSTALL_DIR=%{buildroot}%{_libdir}/%{name} \
|
||||
|
||||
# convenience links
|
||||
%__install -dm 755 %{buildroot}%{_bindir}
|
||||
ln -sf ../%{_lib}/%{name}/%{name} \
|
||||
%{buildroot}%{_bindir}/%{name}-ide
|
||||
ln -sf ../%{_lib}/%{name}/%{name} \
|
||||
%{buildroot}%{_bindir}/%{name}
|
||||
ln -sf ../%{_lib}/%{name}/startlazarus \
|
||||
%{buildroot}%{_bindir}/startlazarus
|
||||
ln -sf ../%{_lib}/%{name}/lazbuild \
|
||||
%{buildroot}%{_bindir}/lazbuild
|
||||
|
||||
%__install -dm 755 %{buildroot}%{_libdir}/%{name}/tools
|
||||
for f in lazarus lazbuild startlazarus; do
|
||||
rm -f %{buildroot}%{_bindir}/$f
|
||||
ln -sf ../%{_lib}/%{name}/$f %{buildroot}%{_bindir}/$f
|
||||
done
|
||||
rm -f %{buildroot}%{_bindir}/lazarus-ide
|
||||
ln -sf ../%{_lib}/%{name}/lazarus %{buildroot}%{_bindir}/lazarus-ide
|
||||
for f in lazres lrstolfm updatepofiles; do
|
||||
ln -sf ../%{_lib}/%{name}/tools/$f %{buildroot}%{_bindir}/$f
|
||||
cat %{buildroot}%{_libdir}/%{name}/install/man/man1/${f}.1 | gzip > %{buildroot}%{_mandir}/man1/${f}.1.gz
|
||||
done
|
||||
|
||||
# collect docs and samples
|
||||
%__install -dm 755 %{buildroot}%{_defaultdocdir}/%{name}
|
||||
%__mv %{buildroot}%{_libdir}/%{name}/examples \
|
||||
%{buildroot}%{_defaultdocdir}/%{name}
|
||||
ln -s %{_defaultdocdir}/%{name}/examples \
|
||||
%{buildroot}%{_libdir}/%{name}/examples
|
||||
%__mv %{buildroot}%{_libdir}/%{name}/COPYING* %{buildroot}%{_libdir}/%{name}/README* \
|
||||
%{buildroot}%{_defaultdocdir}/%{name}
|
||||
install -dm 755 %{buildroot}%{_defaultdocdir}/%{name}
|
||||
mv %{buildroot}%{_libdir}/%{name}/examples %{buildroot}%{_defaultdocdir}/%{name}
|
||||
ln -s %{_defaultdocdir}/%{name}/examples %{buildroot}%{_libdir}/%{name}/examples
|
||||
mv %{buildroot}%{_libdir}/%{name}/docs %{buildroot}%{_defaultdocdir}/%{name}
|
||||
ln -s %{_defaultdocdir}/%{name}/docs %{buildroot}%{_libdir}/%{name}/docs
|
||||
mv %{buildroot}%{_libdir}/%{name}/COPYING* %{buildroot}%{_libdir}/%{name}/README* %{buildroot}%{_defaultdocdir}/%{name}
|
||||
|
||||
# icon
|
||||
%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
|
||||
%__install -m 644 images/ide_icon48x48.png \
|
||||
%{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
install -dm 755 %{buildroot}%{_datadir}/pixmaps
|
||||
install -m 644 images/icons/lazarus128x128.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
|
||||
# menu-entry
|
||||
%__install -dm 755 %{buildroot}%{_datadir}/applications
|
||||
%__install -m 644 %{SOURCE1} \
|
||||
%{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
install -dm 755 %{buildroot}%{_datadir}/applications
|
||||
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
%if 0%{?suse_version}
|
||||
%suse_update_desktop_file -n %{name} Development IDE
|
||||
%endif
|
||||
|
||||
# mime info
|
||||
%__install -dm 755 %{buildroot}%{_datadir}/mime/packages
|
||||
%__install -m 644 install/%{name}-mime.xml \
|
||||
%{buildroot}%{_datadir}/mime/packages/%{name}.xml
|
||||
install -dm 755 %{buildroot}%{_datadir}/mime/packages
|
||||
install -m 644 install/%{name}-mime.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml
|
||||
|
||||
# configs
|
||||
%__install -dm 755 %{buildroot}%{_sysconfdir}/%{name}
|
||||
%__install -m 644 tools/install/linux/editoroptions.xml \
|
||||
install -dm 755 %{buildroot}%{_sysconfdir}/%{name}
|
||||
install -m 644 tools/install/linux/editoroptions.xml \
|
||||
%{buildroot}%{_sysconfdir}/%{name}/editoroptions.xml
|
||||
%__sed 's#/usr/lib/lazarus/#%{_libdir}/%{name}#;s#/\$(FPCVER)##;s#%LazarusVersion%##' \
|
||||
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
|
||||
cat tools/install/linux/environmentoptions.xml | sed -e "s#__LAZARUSDIR__#$LAZARUSDIR/#" -e "s#__FPCSRCDIR__#%{_datadir}/fpcsrc/#" > %{buildroot}%{_sysconfdir}/%{name}/environmentoptions.xml
|
||||
|
||||
# cleanup
|
||||
%__rm -rf %{buildroot}%{_libdir}/%{name}/install/man
|
||||
rm -rf %{buildroot}%{_libdir}/%{name}/install/man
|
||||
%if 0%{?suse_version}
|
||||
%fdupes -s %{buildroot}
|
||||
%endif
|
||||
|
||||
%clean
|
||||
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
|
||||
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && rm -rf "%{buildroot}"
|
||||
|
||||
%post
|
||||
if [ -x %{_bindir}/update-mime-database ]; then
|
||||
@ -224,6 +189,9 @@ update-desktop-database &> /dev/null ||:
|
||||
%{_bindir}/%{name}-ide
|
||||
%{_bindir}/lazbuild
|
||||
%{_bindir}/startlazarus
|
||||
%{_bindir}/lazres
|
||||
%{_bindir}/lrstolfm
|
||||
%{_bindir}/updatepofiles
|
||||
%dir %{_libdir}/%{name}
|
||||
%{_libdir}/%{name}/*
|
||||
%{_datadir}/pixmaps/%{name}.png
|
||||
|
Loading…
x
Reference in New Issue
Block a user