Accepting request 282240 from home:AndreasStieger:branches:Publishing

LyX 2.1.2.2, add keyring, fix __DATE__ warning

OBS-URL: https://build.opensuse.org/request/show/282240
OBS-URL: https://build.opensuse.org/package/show/Publishing/lyx?expand=0&rev=96
This commit is contained in:
Cor Blom 2015-01-21 17:58:16 +00:00 committed by Git OBS Bridge
parent 0f90e28966
commit 2a6884becf
7 changed files with 111 additions and 11 deletions

View File

@ -0,0 +1,49 @@
From: Andreas Stieger <andreas.stieger@gmx.de>
Date: Wed, 21 Jan 2015 13:02:32 +0000
Subject: Remove __DATE__ and __TIME__
Upstream: no
References:
Fixes obs warning:
[ 796s] lyx.i586: W: file-contains-date-and-time /usr/bin/lyx
[ 796s] Your file uses __DATE and __TIME__ this causes the package to rebuild when
[ 796s] not needed
Index: lyx-2.1.2.2/src/LyX.cpp
===================================================================
--- lyx-2.1.2.2.orig/src/LyX.cpp
+++ lyx-2.1.2.2/src/LyX.cpp
@@ -1146,8 +1146,6 @@ int parse_version(string const &, string
{
cout << "LyX " << lyx_version
<< " (" << lyx_release_date << ")" << endl;
- cout << to_utf8(bformat(_("Built on %1$s[[date]], %2$s[[time]]"),
- from_ascii(__DATE__), from_ascii(__TIME__))) << endl;
cout << lyx_version_info << endl;
exit(0);
Index: lyx-2.1.2.2/src/frontends/qt4/GuiAbout.cpp
===================================================================
--- lyx-2.1.2.2.orig/src/frontends/qt4/GuiAbout.cpp
+++ lyx-2.1.2.2/src/frontends/qt4/GuiAbout.cpp
@@ -138,8 +138,6 @@ static QString buildinfo()
QTextStream out(&res);
out << "LyX " << lyx_version
<< " (" << lyx_release_date << ")" << endl;
- out << toqstr(bformat(_("Built on %1$s[[date]], %2$s[[time]]"),
- from_ascii(__DATE__), from_ascii(__TIME__))) << endl;
out << lyx_version_info << endl;
return res;
Index: lyx-2.1.2.2/src/tex2lyx/tex2lyx.cpp
===================================================================
--- lyx-2.1.2.2.orig/src/tex2lyx/tex2lyx.cpp
+++ lyx-2.1.2.2/src/tex2lyx/tex2lyx.cpp
@@ -565,7 +565,6 @@ int parse_version(string const &, string
{
lyxerr << "tex2lyx " << lyx_version
<< " (" << lyx_release_date << ")" << endl;
- lyxerr << "Built on " << __DATE__ << ", " << __TIME__ << endl;
lyxerr << lyx_version_info << endl;
exit(error_code);

3
lyx-2.1.2.2.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2cedf5119d9b6360ba95205d8a641f882b0da200b9e765888f2545231e7fb052
size 10650108

BIN
lyx-2.1.2.2.tar.xz.sig Normal file

Binary file not shown.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c8783822341e95cc2a6b5da1b0e838542fd875017d8775f237b17c1790b1bba5
size 10669264

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Jan 21 15:21:50 UTC 2015 - andreas.stieger@gmx.de
- LyX 2.1.2.2 (and 2.1.2.1):
* fixes for platforms other than GNU/Linux
- add upstream signing key and verify source signature
- Remove __DATE__ and __TIME__ from info dialogs to prevent
rebuilds, add lyx-2.1.2.2-remove-date-time.patch
-------------------------------------------------------------------
Wed Jan 7 20:19:02 UTC 2015 - cornelis@solcon.nl

45
lyx.keyring Normal file
View File

@ -0,0 +1,45 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.3
mQENBEwY3l0BCACeUpkck1zdaUP9/gnPGLZmEaZpAbLhMh8pGxq9qrnhgHyZ+O9Zr7I0oqrR
khlqRiYKa1YUe5/fNE91ebQrgOK3JBdWLzqD5Q1+Gmo2yVxMoh+oPlLQFj/X7cr+HFE5XV8v
fKQc3vzrEdDmuioCzcosNjxJKX2RW/iACcjOc1NQMQU9fWiMzP8oHzkvWNQI0Yd7Ag0Y/wZW
XnSrlcYtqLsxdSE0DYe2R8zsBZTbzuBRHZRi4zt+9ZUihT4q/HGxMCmpQ3E5F0JlH5pLGDKR
Iee9i3AyVxVlRfDV9TBGJ6vDS4Eln3X3vmiWk8BIo1Awemp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fKjcH/QUfrc7iQwwHqUkuwFY7eoHbtABEBAAGJAR8EGAECAAkFAkwY3l0CGwwACgkQ3npE
+sf7OC3ahwf9Gm33sj7M9iFezmrJP5WxpEQ0BxqPJsUA/qF5uppDgHV/Fe9XqM89sLTCAscB
ldrSbX3TcGO+R/dYLVB4DU2IB7BKP2oXatfcw7FKePPGU4fQKYhe+XruelzEQvIjh2lazJS5
0ExiSDIgy/Jns3iMkow20bmOZ9WGHtHodxmLrkMs+Pq5EV5SBiK4BwpcOy/FacKqnL93QHzE
iT7wJs7FsCaye6GvtBVM9Qt1m16nAWwXhqnNzaXF9YCiHD6aoPOZtOIt024L5mu86Rbe50FG
hhXEk7IjxaBx+kAq2LBiv5lQQwoSOIXb1LMYgm0DxASJR2W0nz3DNhg5qyLzZv5wAQ==
=Av8Z
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -28,7 +28,7 @@ BuildRequires: libqt4-devel
BuildRequires: python
BuildRequires: update-desktop-files
BuildRequires: xz
Version: 2.1.2
Version: 2.1.2.2
Release: 0
Summary: WYSIWYM (What You See Is What You Mean) document processor
License: GPL-2.0+
@ -36,9 +36,12 @@ Group: Productivity/Publishing/TeX/Frontends
Url: http://www.lyx.org/
Source: ftp://ftp.lyx.org/pub/lyx/stable/2.1.x/lyx-%{version}.tar.xz
Source1: lyxrc.dist
Source2: lyx.keyring
Source3: ftp://ftp.lyx.org/pub/lyx/stable/2.1.x/lyx-%{version}.tar.xz.sig
# xdg patch
# This was rejected by upstream (http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg133878.html)
Patch0: lyx-2.1.2-xdg_open.patch
Patch1: lyx-2.1.2.2-remove-date-time.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: ImageMagick
%if 0%{?suse_version} < 1230
@ -105,13 +108,7 @@ document under "Help" on the menubar.
%prep
%setup -q
%patch0 -p1
# Remove build time references so build-compare can do its work
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/LyX.cpp
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/LyX.cpp
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/tex2lyx/tex2lyx.cpp
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/tex2lyx/tex2lyx.cpp
%patch1 -p1
%build
#./autogen.sh