Blame SPECS/qt5-qtsensors.spec

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