replaced ugly pkgconfig hack by proper fix, some spec fixes
This commit is contained in:
parent
c73bd4a587
commit
f09cab8b8e
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
Name: qt5-%{qt_module}
|
Name: qt5-%{qt_module}
|
||||||
Version: 5.212.0
|
Version: 5.212.0
|
||||||
Release: 0.4.%{?prerel}%{?dist}
|
Release: 0.5.%{?prerel}%{?dist}
|
||||||
Summary: Qt5 - QtWebKit components
|
Summary: Qt5 - QtWebKit components
|
||||||
|
|
||||||
License: LGPLv2 and BSD
|
License: LGPLv2 and BSD
|
||||||
@ -25,35 +25,37 @@ Source0: %{url}/releases/download/%{qt_module}-%{version}%{?prerel_tag}/%
|
|||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: fontconfig-devel
|
BuildRequires: pkgconfig(fontconfig)
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: pkgconfig(gio-2.0)
|
||||||
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
BuildRequires: gperf
|
BuildRequires: gperf
|
||||||
BuildRequires: gstreamer1-devel
|
BuildRequires: pkgconfig(gstreamer-1.0)
|
||||||
BuildRequires: gstreamer1-plugins-base-devel
|
BuildRequires: pkgconfig(gstreamer-app-1.0)
|
||||||
BuildRequires: hyphen-devel
|
BuildRequires: hyphen-devel
|
||||||
BuildRequires: libicu-devel
|
BuildRequires: pkgconfig(icu-i18n) pkgconfig(icu-uc)
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: pkgconfig(libjpeg)
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: pkgconfig(libpng)
|
||||||
BuildRequires: libwebp-devel
|
BuildRequires: pkgconfig(libwebp)
|
||||||
BuildRequires: libXcomposite-devel
|
BuildRequires: pkgconfig(xcomposite)
|
||||||
BuildRequires: libXrender-devel
|
BuildRequires: pkgconfig(xrender)
|
||||||
BuildRequires: libxslt-devel
|
BuildRequires: pkgconfig(libxslt)
|
||||||
BuildRequires: mesa-libGL-devel
|
BuildRequires: pkgconfig(gl)
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRequires: python2
|
BuildRequires: python2
|
||||||
BuildRequires: qt5-qtbase-devel
|
BuildRequires: qt5-qtbase-devel
|
||||||
BuildRequires: qt5-qtdeclarative-devel
|
BuildRequires: pkgconfig(Qt5Quick)
|
||||||
%if ! 0%{?bootstrap}
|
%if ! 0%{?bootstrap}
|
||||||
BuildRequires: qt5-qtlocation-devel
|
BuildRequires: pkgconfig(Qt5Location)
|
||||||
BuildRequires: qt5-qtsensors-devel
|
BuildRequires: pkgconfig(Qt5Sensors)
|
||||||
BuildRequires: qt5-qtwebchannel-devel
|
BuildRequires: pkgconfig(Qt5WebChannel)
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: ruby-devel
|
BuildRequires: pkgconfig(ruby)
|
||||||
BuildRequires: rubygems
|
BuildRequires: rubygems
|
||||||
|
%if 0%{?fedora}
|
||||||
BuildRequires: rubypick
|
BuildRequires: rubypick
|
||||||
BuildRequires: sqlite-devel
|
%endif
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
|
||||||
BuildRequires: qt5-qtbase-private-devel
|
BuildRequires: qt5-qtbase-private-devel
|
||||||
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
||||||
@ -79,9 +81,6 @@ Summary: Development files for %{name}
|
|||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: qt5-qtbase-devel%{?_isa}
|
Requires: qt5-qtbase-devel%{?_isa}
|
||||||
Requires: qt5-qtdeclarative-devel%{?_isa}
|
Requires: qt5-qtdeclarative-devel%{?_isa}
|
||||||
# Why does this not work automatically?
|
|
||||||
Provides: pkgconfig(Qt5WebKit) = %{version}-%{release}
|
|
||||||
Provides: pkgconfig(Qt5WebKitWidgets) = %{version}-%{release}
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The %{name}-devel package contains libraries and header files for
|
The %{name}-devel package contains libraries and header files for
|
||||||
@ -124,13 +123,17 @@ BuildArch: noarch
|
|||||||
%global optflags %{optflags} -Wl,-relax
|
%global optflags %{optflags} -Wl,-relax
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%{cmake} -DPORT=Qt \
|
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
|
||||||
|
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;
|
||||||
|
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;}
|
||||||
|
# We cannot use default cmake macro here as it overwrites some settings queried
|
||||||
|
# by qtwebkit cmake from qmake
|
||||||
|
cmake -DPORT=Qt \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DENABLE_TOOLS=OFF \
|
-DENABLE_TOOLS=OFF \
|
||||||
-DINCLUDE_INSTALL_DIR:PATH=%{_qt5_headerdir} \
|
-DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
|
||||||
-DLIBEXEC_INSTALL_DIR:PATH=%{_qt5_libexecdir} \
|
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
|
||||||
-DECM_MKSPECS_INSTALL_DIR:PATH=%{_qt5_archdatadir}/mkspecs/modules \
|
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
|
||||||
-DQML_INSTALL_DIR:PATH=%{_qt5_qmldir} \
|
|
||||||
%ifarch s390 s390x ppc %{power64}
|
%ifarch s390 s390x ppc %{power64}
|
||||||
-DENABLE_JIT=OFF \
|
-DENABLE_JIT=OFF \
|
||||||
%endif
|
%endif
|
||||||
@ -138,7 +141,7 @@ BuildArch: noarch
|
|||||||
-DUSE_SYSTEM_MALLOC=ON \
|
-DUSE_SYSTEM_MALLOC=ON \
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?docs}
|
%if 0%{?docs}
|
||||||
-DGENERATE_DOCUMENTATION=ON \
|
-DGENERATE_DOCUMENTATION=ON \
|
||||||
%endif
|
%endif
|
||||||
.
|
.
|
||||||
|
|
||||||
@ -154,6 +157,15 @@ BuildArch: noarch
|
|||||||
|
|
||||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||||
|
|
||||||
|
# fix pkgconfig files
|
||||||
|
sed -i '/Name/a Description: Qt5 WebKit module' %{buildroot}%{_libdir}/pkgconfig/Qt5WebKit.pc
|
||||||
|
sed -i "s,Cflags: -I/usr/lib/qt5/../../include/qt5/Qt5WebKit,Cflags: -I%{_qt5_includedir}/QtWebKit,g" %{buildroot}%{_libdir}/pkgconfig/Qt5WebKit.pc
|
||||||
|
sed -i "s,Libs: -L/usr/lib/qt5/../ -lQt5WebKit,Libs: -L%{_qt5_libdir} -lQt5WebKit ,g" %{buildroot}%{_libdir}/pkgconfig/Qt5WebKit.pc
|
||||||
|
|
||||||
|
sed -i '/Name/a Description: Qt5 WebKitWidgets module' %{buildroot}%{_libdir}/pkgconfig/Qt5WebKitWidgets.pc
|
||||||
|
sed -i "s,Cflags: -I/usr/lib/qt5/../../include/qt5/Qt5WebKitWidgets,Cflags: -I%{_qt5_includedir}/QtWebKitWidgets,g" %{buildroot}%{_libdir}/pkgconfig/Qt5WebKitWidgets.pc
|
||||||
|
sed -i "s,Libs: -L/usr/lib/qt5/../ -lQt5WebKitWidgets,Libs: -L%{_qt5_libdir} -lQt5WebKitWidgets ,g" %{buildroot}%{_libdir}/pkgconfig/Qt5WebKitWidgets.pc
|
||||||
|
|
||||||
# Finally, copy over and rename various files for %%license inclusion
|
# Finally, copy over and rename various files for %%license inclusion
|
||||||
%add_to_license_files Source/JavaScriptCore/COPYING.LIB
|
%add_to_license_files Source/JavaScriptCore/COPYING.LIB
|
||||||
%add_to_license_files Source/JavaScriptCore/icu/LICENSE
|
%add_to_license_files Source/JavaScriptCore/icu/LICENSE
|
||||||
@ -203,6 +215,10 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 10 2017 Christian Dersch <lupinix@mailbox.org> - 5.212.0-0.5.alpha2
|
||||||
|
- replaced ugly pkgconfig provides workaround with proper pkgconfig fixes
|
||||||
|
- general spec fixes
|
||||||
|
|
||||||
* Thu Jun 22 2017 Christian Dersch <lupinix@mailbox.org> - 5.212.0-0.4.alpha2
|
* Thu Jun 22 2017 Christian Dersch <lupinix@mailbox.org> - 5.212.0-0.4.alpha2
|
||||||
- BR: pkg-config
|
- BR: pkg-config
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user