Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ximi1970:Toolchains:Qt:openSUSE
libqt4-opensource-4.8.7
libqt4-opensource-4.8.7.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libqt4-opensource-4.8.7.spec of Package libqt4-opensource-4.8.7
# # spec file for package libqt4-opensource # %define license_type opensource %define package_name opensource %define package_version %{nil} #define package_version -1 Version: 4.8.7 Name: libqt4-%{license_type}-%{version} BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: Mesa-devel BuildRequires: alsa-devel BuildRequires: libpulse-devel BuildRequires: cups-devel BuildRequires: dbus-1-devel BuildRequires: fdupes BuildRequires: gtk2-devel BuildRequires: libjpeg8-devel BuildRequires: libmng-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel %if 0%{?suse_version} < 1500 BuildRequires: libmysqlclient-devel BuildRequires: libopenssl-devel %else BuildRequires: libmariadb-devel BuildRequires: libopenssl-1_0_0-devel %endif BuildRequires: postgresql-devel BuildRequires: sqlite3-devel BuildRequires: unixODBC-devel #BuildRequires: gstreamer-0_10-devel #BuildRequires: gstreamer-0_10-plugins-base-devel BuildRequires: gstreamer-devel BuildRequires: gstreamer-plugins-base-devel BuildRequires: libicu-devel BuildRequires: freetype2-devel BuildRequires: libXv-devel BuildRequires: libXcursor-devel BuildRequires: libXrandr-devel BuildRequires: libXrender-devel BuildRequires: libXinerama-devel BuildRequires: libXi-devel BuildRequires: libSM-devel %ifarch x86_64 BuildRequires: gcc-c++-32bit BuildRequires: fontconfig-devel-32bit BuildRequires: glib2-devel-32bit BuildRequires: alsa-devel-32bit BuildRequires: libpulse-devel-32bit BuildRequires: cups-devel-32bit BuildRequires: dbus-1-devel-32bit BuildRequires: gtk2-devel-32bit BuildRequires: libjpeg8-devel-32bit BuildRequires: libmng-devel-32bit BuildRequires: libpng-devel-32bit BuildRequires: libtiff-devel-32bit %if 0%{?suse_version} < 1500 BuildRequires: Mesa-libGL-devel-32bit BuildRequires: Mesa-libEGL-devel-32bit BuildRequires: libmysqlclient-devel-32bit BuildRequires: libopenssl-devel-32bit %else BuildRequires: libmariadb-devel-32bit BuildRequires: libopenssl-1_0_0-devel-32bit %endif #BuildRequires: postgresql-devel BuildRequires: sqlite3-devel-32bit BuildRequires: unixODBC-devel-32bit BuildRequires: libicu-devel-32bit BuildRequires: freetype2-devel-32bit BuildRequires: libxml2-devel-32bit #BuildRequires: gstreamer-0_10-devel-32bit #BuildRequires: gstreamer-0_10-plugins-base-devel-32bit BuildRequires: gstreamer-devel-32bit BuildRequires: gstreamer-plugins-base-devel-32bit BuildRequires: libX11-devel-32bit BuildRequires: libXext-devel-32bit BuildRequires: libXv-devel-32bit BuildRequires: libXcursor-devel-32bit BuildRequires: libXrandr-devel-32bit BuildRequires: libXrender-devel-32bit BuildRequires: libXinerama-devel-32bit BuildRequires: libXi-devel-32bit BuildRequires: libSM-devel-32bit %endif Url: http://qt-project.org/ Summary: Qt is a cross-platform application and UI framework License: GPL-3.0 or SUSE-LGPL-2.1-with-digia-exception-1.1 Group: System/Libraries Release: 0 Source: qt-everywhere-%{package_name}-src-%{version}%{package_version}.tar.gz # to get mtime of file: Source1: %{name}.changes #Patch0: qt-everywhere-%{package_name}-src-%{version}.diff Patch11: webkit-rpath.diff # PATCH-FIX-OPENSUSE qlocale_icu-no-warning-output.patch -- qWarnings about icu libraries and symbols are now only emmited in debug builds Patch153: qlocale_icu-no-warning-output.patch # PATCH-FIX-OPENSUSE fix-gcc6-detection.diff -- Fix GCC6 detection Patch168: fix-gcc6-detection.diff # PATCH-FIX-OPENSUSE fix-build-icu59.patch -- Workaround C++11 requirement Patch170: fix-build-icu59.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Prefix: /usr %package 32bit Summary: Qt is a cross-platform application and UI framework. License: GPL-3.0 or SUSE-LGPL-2.1-with-digia-exception-1.1 Group: System/Libraries %ifarch x86_64 %define libdir lib64 %else %define libdir lib %endif %define common_options -%{license_type} -confirm-license -prefix %{prefix}/Qt-%{license_type}-%{version} -libdir %{prefix}/Qt-%{license_type}-%{version}/%{libdir} -no-rpath %define common_options32 -%{license_type} -confirm-license -xplatform linux-g++-32 -force-pkg-config -prefix %{prefix}/Qt-%{license_type}-%{version}-32bit -libdir %{prefix}/Qt-%{license_type}-%{version}-32bit/lib -no-rpath %define lib_options -dbus-linked -openssl-linked -qt-zlib -qt-libmng -qt-libtiff -qt-libpng -qt-libjpeg %define special_options -verbose -exceptions %define disable_options -nomake examples -nomake demos -nomake docs %define compiler32 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gstreamer %description Qt is a cross-platform application and UI framework. This packages contains the full toolkit. %description 32bit Qt is a cross-platform application and UI framework. This packages contains the full toolkit. %prep %setup -q -n qt-everywhere-%{package_name}-src-%{version} #patch0 -p1 %patch11 -p1 %patch153 -p1 %patch168 -p1 %patch170 -p1 # %ifarch x86_64 pushd .. cp -a qt-everywhere-%{package_name}-src-%{version} qt-everywhere-%{package_name}-src-%{version}-32bit popd %endif %build export CXXFLAGS="$CXXFLAGS $RPM_OPT_FLAGS -std=gnu++98" export CFLAGS="$CFLAGS $RPM_OPT_FLAGS" export MAKEFLAGS="%{?_smp_mflags}" echo %{qt_license_key} | ./configure %common_options %lib_options %special_options %disable_options make %{?jobs:-j %jobs} %ifarch x86_64 pushd ../qt-everywhere-%{package_name}-src-%{version}-32bit export CXXFLAGS="$CXXFLAGS $RPM_OPT_FLAGS -std=gnu++98" export CFLAGS="$CFLAGS $RPM_OPT_FLAGS" export MAKEFLAGS="%{?_smp_mflags}" export PKG_CONFIG_PATH=/usr/lib/pkgconfig echo %{qt_license_key} | ./configure %common_options32 %lib_options %special_options %disable_options %compiler32 make %{?jobs:-j %jobs} popd %endif %install make INSTALL_ROOT=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version} -type f -name '*la' -print -exec perl -pi -e 's,-L%{_builddir}/\S+,,g' {} \; find $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version} -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=%_bindir/moc," -e "s,uic_location=.*,uic_location=%_bindir/uic," {} \; %fdupes $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version} %ifarch x86_64 pushd ../qt-everywhere-%{package_name}-src-%{version}-32bit make INSTALL_ROOT=$RPM_BUILD_ROOT install popd find $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-32bit -type f -name '*la' -print -exec perl -pi -e 's,-L%{_builddir}/\S+,,g' {} \; find $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-32bit -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=%_bindir/moc," -e "s,uic_location=.*,uic_location=%_bindir/uic," {} \; %fdupes $RPM_BUILD_ROOT/%{prefix}/Qt-%{license_type}-%{version}-32bit %endif %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,755) %doc README *.txt LICENSE.* %{prefix}/Qt-%{license_type}-%{version} %ifarch x86_64 %files 32bit %defattr(-,root,root,755) %doc README *.txt LICENSE.* %{prefix}/Qt-%{license_type}-%{version}-32bit %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor