Accepting request 523342 from KDE:Qt5

- Update descriptions.
- Update find calls to use the "+" strategy. (forwarded request 523337 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/523342
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtscript?expand=0&rev=30
This commit is contained in:
Dominique Leuenberger 2017-09-12 17:52:22 +00:00 committed by Git OBS Bridge
parent 42e8618f42
commit 910a8dda8a
2 changed files with 25 additions and 18 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Sep 11 17:03:41 UTC 2017 - jengelh@inai.de
- Update descriptions.
- Update find calls to use the "+" strategy.
-------------------------------------------------------------------
Sat Jul 1 08:15:23 UTC 2017 - lbeltrame@kde.org

View File

@ -23,7 +23,7 @@
Name: libqt5-qtscript
Version: 5.9.1
Release: 0
Summary: Qt 5 QtScript Library
Summary: Qt 5 Script library
License: SUSE-LGPL-2.1-with-digia-exception-1.1 or GPL-3.0
Group: Development/Libraries/X11
Url: https://www.qt.io
@ -49,38 +49,39 @@ BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Qt is a set of libraries for developing applications.
This package contains base tools, like string, xml, and network
handling.
Qt Script is a module for adding scripting to applications. It allows
evaluating and debugging of scripts, and advanced use of objects and
functions. It also gives access to a low-level ECMAScript engine API.
%prep
%setup -q -n qtscript-opensource-src-%{real_version}
%patch1 -p1
%package -n %libname
Summary: Qt 5 QtScript Library
Group: Development/Libraries/X11
Summary: Qt 5 Script library
Group: System/Libraries
%requires_ge libQt5Widgets5
%description -n %libname
Qt is a set of libraries for developing applications.
This package contains base tools, like string, xml, and network
handling.
Qt Script is a module for adding scripting to applications. It allows
evaluating and debugging of scripts, and advanced use of objects and
functions. It also gives access to a low-level ECMAScript engine API.
%package devel
Summary: Qt Development Kit
Summary: Development files for the Qt 5 Script library
Group: Development/Libraries/X11
Requires: %libname = %{version}
Provides: libQt5Script-devel = %{version}
Obsoletes: libQt5Script-devel < %{version}
%description devel
You need this package, if you want to compile programs with qtscript.
Qt Script is a module for adding scripting to applications.
This subpackage contains the header files for developing
applications that want to make use of libQt5Script5.
%package private-headers-devel
Summary: Non-ABI stable experimental API
Summary: Non-ABI stable experimental API for the Qt5 Script library
Group: Development/Libraries/C and C++
BuildArch: noarch
Requires: %{name}-devel = %{version}
@ -96,8 +97,8 @@ API guarantees. The packages that build against these have to require
the exact Qt version.
%package examples
Summary: Qt5 script examples
Group: Development/Libraries/X11
Summary: Qt5 Script examples
Group: Documentation/Other
Recommends: %{name}-devel
%description examples
@ -117,8 +118,8 @@ mkdir .git
%install
%qmake5_install
find %{buildroot}/%{_libdir} -type f -name '*la' -print -exec perl -pi -e 's, -L%{_builddir}/\S+,,g' {} \;
find %{buildroot}/%{_libdir} -type f -name '*pc' -print -exec perl -pi -e "s, -L$RPM_BUILD_DIR/?\S+,,g" {} \; -exec sed -i -e "s,^moc_location=.*,moc_location=%{_libqt5_bindir}/moc," -e "s,uic_location=.*,uic_location=%{_libqt5_bindir}/uic," {} \;
find %{buildroot}/%{_libdir} -type f -name '*la' -print -exec perl -pi -e 's, -L%{_builddir}/\S+,,g' {} +
find %{buildroot}/%{_libdir} -type f -name '*pc' -print -exec perl -pi -e "s, -L$RPM_BUILD_DIR/?\S+,,g" {} + -exec sed -i -e "s,^moc_location=.*,moc_location=%{_libqt5_bindir}/moc," -e "s,uic_location=.*,uic_location=%{_libqt5_bindir}/uic," {} +
# kill .la files
rm -f %{buildroot}%{_libqt5_libdir}/lib*.la