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 Sat Jul 1 08:15:23 UTC 2017 - lbeltrame@kde.org

View File

@ -23,7 +23,7 @@
Name: libqt5-qtscript Name: libqt5-qtscript
Version: 5.9.1 Version: 5.9.1
Release: 0 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 License: SUSE-LGPL-2.1-with-digia-exception-1.1 or GPL-3.0
Group: Development/Libraries/X11 Group: Development/Libraries/X11
Url: https://www.qt.io Url: https://www.qt.io
@ -49,38 +49,39 @@ BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Qt is a set of libraries for developing applications. Qt Script is a module for adding scripting to applications. It allows
evaluating and debugging of scripts, and advanced use of objects and
This package contains base tools, like string, xml, and network functions. It also gives access to a low-level ECMAScript engine API.
handling.
%prep %prep
%setup -q -n qtscript-opensource-src-%{real_version} %setup -q -n qtscript-opensource-src-%{real_version}
%patch1 -p1 %patch1 -p1
%package -n %libname %package -n %libname
Summary: Qt 5 QtScript Library Summary: Qt 5 Script library
Group: Development/Libraries/X11 Group: System/Libraries
%requires_ge libQt5Widgets5 %requires_ge libQt5Widgets5
%description -n %libname %description -n %libname
Qt is a set of libraries for developing applications. Qt Script is a module for adding scripting to applications. It allows
evaluating and debugging of scripts, and advanced use of objects and
This package contains base tools, like string, xml, and network functions. It also gives access to a low-level ECMAScript engine API.
handling.
%package devel %package devel
Summary: Qt Development Kit Summary: Development files for the Qt 5 Script library
Group: Development/Libraries/X11 Group: Development/Libraries/X11
Requires: %libname = %{version} Requires: %libname = %{version}
Provides: libQt5Script-devel = %{version} Provides: libQt5Script-devel = %{version}
Obsoletes: libQt5Script-devel < %{version} Obsoletes: libQt5Script-devel < %{version}
%description devel %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 %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++ Group: Development/Libraries/C and C++
BuildArch: noarch BuildArch: noarch
Requires: %{name}-devel = %{version} Requires: %{name}-devel = %{version}
@ -96,8 +97,8 @@ API guarantees. The packages that build against these have to require
the exact Qt version. the exact Qt version.
%package examples %package examples
Summary: Qt5 script examples Summary: Qt5 Script examples
Group: Development/Libraries/X11 Group: Documentation/Other
Recommends: %{name}-devel Recommends: %{name}-devel
%description examples %description examples
@ -117,8 +118,8 @@ mkdir .git
%install %install
%qmake5_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 '*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 '*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 # kill .la files
rm -f %{buildroot}%{_libqt5_libdir}/lib*.la rm -f %{buildroot}%{_libqt5_libdir}/lib*.la