From f2c0eae2df33d9a3e7550f80128181ee863f94a099b466b789ed6816c787af36 Mon Sep 17 00:00:00 2001 From: Cor Blom Date: Mon, 12 Mar 2012 14:51:40 +0000 Subject: [PATCH] fix license and rpmlint warnings OBS-URL: https://build.opensuse.org/package/show/Publishing/lyx?expand=0&rev=55 --- lyx.changes | 6 ++++++ lyx.spec | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lyx.changes b/lyx.changes index aaa31d3..712d6a6 100644 --- a/lyx.changes +++ b/lyx.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 12 14:50:22 UTC 2012 - cornelis@solcon.nl + +- Correct the license: lyx is GPL-2.0 and later, not LGPL-2.1 and later +- Fix some rpmlint warnings + ------------------------------------------------------------------- Tue Feb 28 12:44:16 UTC 2012 - cornelis@solcon.nl diff --git a/lyx.spec b/lyx.spec index 8037dfb..6dd7e56 100644 --- a/lyx.spec +++ b/lyx.spec @@ -28,7 +28,7 @@ BuildRequires: update-desktop-files Version: 2.0.3 Release: 0 Summary: WYSIWYM (What You See Is What You Mean) document processor -License: LGPL-2.1+ +License: GPL-2.0+ Group: Productivity/Publishing/TeX/Frontends Url: http://www.lyx.org/ Source: ftp://ftp.lyx.org/pub/lyx/stable/2.0.x/lyx-%{version}.tar.gz @@ -42,7 +42,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: ImageMagick Requires: texlive-latex -Recommends: texlive-xetex xindy +Recommends: texlive-xetex +Recommends: xindy %description LyX is a document processor that encourages an approach to writing @@ -79,6 +80,11 @@ make install DESTDIR=$RPM_BUILD_ROOT TEXMF=$TEXMF # some defaults install -p -m644 -D %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/lyx/lyxrc.dist +# Add executable to files with shebang as advised by rpmlint +chmod +x $RPM_BUILD_ROOT%{_datadir}/lyx/scripts/*.py +chmod +x $RPM_BUILD_ROOT%{_datadir}/lyx/scripts/listerrors +chmod +x $RPM_BUILD_ROOT%{_datadir}/lyx/lyx2lyx/profiling.py + mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} pushd $RPM_BUILD_ROOT%{_datadir}/lyx/doc/ for i in *