Blame SPECS/qt5-qtsensors.spec

06b57d
06b57d
%global qt_module qtsensors
06b57d
06b57d
# define to build docs, need to undef this for bootstrapping
06b57d
# where qt5-qttools builds are not yet available
06b57d
# only primary archs (for now), allow secondary to bootstrap
06b57d
# global bootstrap 1
06b57d
06b57d
%if ! 0%{?bootstrap}
06b57d
%ifarch %{arm} %{ix86} x86_64
06b57d
%define docs 1
06b57d
%endif
06b57d
%endif
06b57d
06b57d
#define prerelease
06b57d
06b57d
Summary: Qt5 - Sensors component
06b57d
Name:    qt5-%{qt_module}
06b57d
Version: 5.9.7
06b57d
Release: 1%{?dist}
06b57d
06b57d
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
06b57d
License: LGPLv2 with exceptions or GPLv3 with exceptions
06b57d
Url:     http://www.qt.io/
06b57d
Source0: http://download.qt.io/official_releases/qt/5.9/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
06b57d
06b57d
# filter qml/plugin provides
06b57d
%global __provides_exclude_from ^(%{_qt5_archdatadir}/qml/.*\\.so|%{_qt5_plugindir}/.*\\.so)$
06b57d
06b57d
BuildRequires: qt5-qtbase-devel >= %{version}
06b57d
BuildRequires: qt5-qtbase-private-devel
06b57d
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
06b57d
BuildRequires: qt5-qtdeclarative-devel
06b57d
06b57d
06b57d
%description
06b57d
The Qt Sensors API provides access to sensor hardware via QML and C++
06b57d
interfaces.  The Qt Sensors API also provides a motion gesture recognition
06b57d
API for devices.
06b57d
06b57d
%package devel
06b57d
Summary: Development files for %{name}
06b57d
Requires: %{name}%{?_isa} = %{version}-%{release}
06b57d
Requires: qt5-qtbase-devel%{?_isa}
06b57d
%description devel
06b57d
%{summary}.
06b57d
06b57d
%if 0%{?docs}
06b57d
%package doc
06b57d
Summary: API documentation for %{name}
06b57d
License: GFDL
06b57d
Requires: %{name} = %{version}-%{release}
06b57d
BuildRequires: qt5-qdoc
06b57d
BuildRequires: qt5-qhelpgenerator
06b57d
BuildArch: noarch
06b57d
%description doc
06b57d
%{summary}.
06b57d
%endif
06b57d
06b57d
%package examples
06b57d
Summary: Programming examples for %{name}
06b57d
Requires: %{name}%{?_isa} = %{version}-%{release}
06b57d
%description examples
06b57d
%{summary}.
06b57d
06b57d
06b57d
%prep
06b57d
%setup -q -n %{qt_module}-opensource-src-%{version}
06b57d
06b57d
06b57d
%build
06b57d
%{qmake_qt5}
06b57d
06b57d
make %{?_smp_mflags}
06b57d
06b57d
%if 0%{?docs}
06b57d
make %{?_smp_mflags} docs
06b57d
%endif
06b57d
06b57d
06b57d
%install
06b57d
make install INSTALL_ROOT=%{buildroot}
06b57d
06b57d
%if 0%{?docs}
06b57d
make install_docs INSTALL_ROOT=%{buildroot}
06b57d
%endif
06b57d
06b57d
## .prl/.la file love
06b57d
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
06b57d
pushd %{buildroot}%{_qt5_libdir}
06b57d
for prl_file in libQt5*.prl ; do
06b57d
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
06b57d
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
06b57d
    rm -fv "$(basename ${prl_file} .prl).la"
06b57d
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
06b57d
  fi
06b57d
done
06b57d
popd
06b57d
06b57d
%post -p /sbin/ldconfig
06b57d
%postun -p /sbin/ldconfig
06b57d
06b57d
%files
06b57d
%license LICENSE.GPL* LICENSE.LGPL*
06b57d
%{_qt5_libdir}/libQt5Sensors.so.5*
06b57d
%{_qt5_plugindir}/sensorgestures/
06b57d
%{_qt5_plugindir}/sensors/
06b57d
%{_qt5_archdatadir}/qml/QtSensors/
06b57d
%dir %{_qt5_libdir}/cmake/Qt5Sensors/
06b57d
%{_qt5_libdir}/cmake/Qt5Sensors/Qt5Sensors_*Plugin.cmake
06b57d
06b57d
%files devel
06b57d
%{_qt5_headerdir}/QtSensors/
06b57d
%{_qt5_libdir}/libQt5Sensors.so
06b57d
%{_qt5_libdir}/libQt5Sensors.prl
06b57d
%{_qt5_libdir}/cmake/Qt5Sensors/Qt5SensorsConfig*.cmake
06b57d
%{_qt5_libdir}/pkgconfig/Qt5Sensors.pc
06b57d
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_sensors*.pri
06b57d
06b57d
%if 0%{?docs}
06b57d
%files doc
06b57d
%license LICENSE.FDL
06b57d
%{_qt5_docdir}/qtsensors.qch
06b57d
%{_qt5_docdir}/qtsensors/
06b57d
%endif
06b57d
06b57d
%if 0%{?_qt5_examplesdir:1}
06b57d
%files examples
06b57d
%{_qt5_examplesdir}/
06b57d
%endif
06b57d
06b57d
06b57d
%changelog
06b57d
* Thu Feb 07 2019 Jan Grulich <jgrulich@redhat.com> - 5.9.7-1
06b57d
- Update to 5.9.7
06b57d
  Resolves: bz#1564013
06b57d
06b57d
* Fri Oct 06 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.2-1
06b57d
- Update to 5.9.2
06b57d
  Resolves: bz#1482787
06b57d
06b57d
* Mon Aug 28 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.1-1
06b57d
- Update to 5.9.1
06b57d
  Resolves: bz#1482787
06b57d
06b57d
* Wed Jan 11 2017 Jan Grulich <jgrulich@redhat.com> - 5.6.2-1
06b57d
- Update to 5.6.2
06b57d
  Resolves: bz#1384826
06b57d
06b57d
* Tue Aug 30 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-10
06b57d
- Increase build version to have newer version than in EPEL
06b57d
  Resolves: bz#1317410
06b57d
06b57d
* Wed Jun 08 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
06b57d
- Update to 5.6.1
06b57d
  Resolves: bz#1317410
06b57d
06b57d
* Wed Apr 13 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.0-5
06b57d
- Enable documentation
06b57d
  Resolves: bz#1317410
06b57d
06b57d
* Thu Apr 07 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.0-4
06b57d
- Initial version for RHEL
06b57d
  Resolves: bz#1317410
06b57d
06b57d
* Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
06b57d
- rebuild
06b57d
06b57d
* Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
06b57d
- rebuild
06b57d
06b57d
* Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
06b57d
- 5.6.0 final release
06b57d
06b57d
* Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.9.rc
06b57d
- Update to final RC
06b57d
06b57d
* Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.8
06b57d
- Update RC release
06b57d
06b57d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.7.beta
06b57d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
06b57d
06b57d
* Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.6.beta
06b57d
- update source URL, BR: cmake, use %%license
06b57d
06b57d
* Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.5
06b57d
- Update to final beta release
06b57d
06b57d
* Fri Dec 11 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-0.4
06b57d
- restore bootstrap macro support
06b57d
- only BR: qt5-qdoc in -doc subpkg
06b57d
06b57d
* Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3
06b57d
- Official beta release
06b57d
06b57d
* Sun Dec 06 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.2
06b57d
- restore bootstrap macro support
06b57d
06b57d
* Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
06b57d
- Start to implement 5.6.0 beta
06b57d
06b57d
* Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
06b57d
- Update to final release 5.5.1
06b57d
06b57d
* Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
06b57d
- Update to Qt 5.5.1 RC1
06b57d
06b57d
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
06b57d
- -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
06b57d
06b57d
* Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
06b57d
- tighten qtbase dep (#1233829), (re)enable docs
06b57d
06b57d
* Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1
06b57d
- New final upstream release Qt 5.5.0
06b57d
06b57d
* Thu Jun 25 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
06b57d
- Update for official RC1 released packages
06b57d
06b57d
* Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1
06b57d
- 5.4.2
06b57d
06b57d
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3
06b57d
- Rebuilt for GCC 5 C++11 ABI change
06b57d
06b57d
* Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
06b57d
- rebuild (gcc5)
06b57d
06b57d
* Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
06b57d
- 5.4.1
06b57d
06b57d
* Mon Feb 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-3
06b57d
- rebuild (gcc5)
06b57d
06b57d
* Wed Dec 31 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-2
06b57d
- BR: pkgconfig(Qt5Qml) > 5.4.0 (#1177985)
06b57d
06b57d
* Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
06b57d
- 5.4.0 (final)
06b57d
06b57d
* Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
06b57d
- 5.4.0-rc
06b57d
06b57d
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
06b57d
- out-of-tree build, use %%qmake_qt5
06b57d
06b57d
* Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
06b57d
- 5.4.0-beta
06b57d
06b57d
* Tue Sep 16 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.2-1
06b57d
- 5.3.2
06b57d
06b57d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2
06b57d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
06b57d
06b57d
* Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
06b57d
- 5.3.1
06b57d
06b57d
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
06b57d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
06b57d
06b57d
* Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1
06b57d
- 5.3.0
06b57d
06b57d
* Mon May 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2
06b57d
- sanitize .prl files
06b57d
06b57d
* Thu Feb 06 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
06b57d
- 5.2.1
06b57d
06b57d
* Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
06b57d
- -examples subpkg
06b57d
06b57d
* Thu Jan 02 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
06b57d
- first try