fix license and rpmlint warnings

OBS-URL: https://build.opensuse.org/package/show/Publishing/lyx?expand=0&rev=55
This commit is contained in:
Cor Blom 2012-03-12 14:51:40 +00:00 committed by Git OBS Bridge
parent 80d44ada8a
commit f2c0eae2df
2 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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 *