Accepting request 493215 from devel:languages:pascal

1

OBS-URL: https://build.opensuse.org/request/show/493215
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lazarus?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2017-05-08 17:03:26 +00:00 committed by Git OBS Bridge
commit 440bdd121a
2 changed files with 20 additions and 4 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri May 5 22:07:06 UTC 2017 - jengelh@inai.de
- Avoid bashisms in %prep. Escape call involving "!" with single
quotes to really be sure that there is no history expansion.
-------------------------------------------------------------------
Tue May 2 04:56:49 UTC 2017 - bwiedemann@suse.com
- Make build more reproducible
-------------------------------------------------------------------
Tue Feb 7 18:31:12 UTC 2017 - mailaender@opensuse.org

View File

@ -1,8 +1,7 @@
#
# spec file for package lazarus
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2008-2009 oc2pus
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -21,10 +20,10 @@ Name: lazarus
Version: 1.6.2
Release: 0
# Please note that the LGPL is modified and this is not multi-licensed, but each component has a separate license chosen.
License: GPL-2.0 and LGPL-2.0 and MPL-1.1
Summary: FreePascal RAD IDE and Component Library
Url: http://www.lazarus.freepascal.org/
License: GPL-2.0 and LGPL-2.0 and MPL-1.1
Group: Development/Languages/Other
Url: http://www.lazarus.freepascal.org/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-0.tar.gz
# PATCH-FEATURE-UPSTREAM http://mantis.freepascal.org/view.php?id=31364
Source1: https://raw.githubusercontent.com/hughsie/fedora-appstream/developerapps/appdata-extra/desktop/lazarus.appdata.xml
@ -106,6 +105,12 @@ dos2unix examples/trayicon/wndtray.*
# fix rpmlint error "spurious-executable-perm"
chmod 644 docs/booth/ProdProgEntwMitOpenSourceSystems2007.odp
if [[ $SOURCE_DATE_EPOCH ]] ; then
datestr=$(date -u "-d@$SOURCE_DATE_EPOCH" +%Y/%m/%d)
sed -i -e 's!{\$I %%date%%}!'"'$datestr'"'!' \
ide/ideinfodlg.pas ide/aboutfrm.pas ide/idefpcinfo.pas
touch -d@"$SOURCE_DATE_EPOCH" ide/ideinfodlg.pas ide/aboutfrm.pas ide/idefpcinfo.pas # reset source timestamps because they are embedded in compiled files
fi
%build
# Don't use -gs (use explicitly "stabs" debuginfo) for compiling lhelp but -g (use the default debuginfo type "dwarf") as in the rest of package's Makefiles