2010-07-15 14:30:02 +00:00
|
|
|
|
2010-12-09 16:01:56 +00:00
|
|
|
# options
|
|
|
|
#define examples 1
|
|
|
|
|
2012-02-24 17:50:33 +00:00
|
|
|
%define snap 20120224git
|
2011-09-22 15:02:24 +00:00
|
|
|
|
2010-12-09 16:01:56 +00:00
|
|
|
Name: qt-mobility
|
2012-02-24 17:50:33 +00:00
|
|
|
Version: 1.2.2
|
2012-06-14 13:12:17 +00:00
|
|
|
Release: 0.2.%{snap}%{?dist}
|
2010-07-15 14:30:02 +00:00
|
|
|
Summary: Qt Mobility Framework
|
2010-12-09 16:01:56 +00:00
|
|
|
Group: System Environment/Libraries
|
2010-07-15 14:30:02 +00:00
|
|
|
License: LGPLv2 with exceptions
|
2010-12-09 16:01:56 +00:00
|
|
|
URL: http://qt.nokia.com/products/qt-addons/mobility
|
2011-09-22 15:02:24 +00:00
|
|
|
%if 0%{?snap:1}
|
|
|
|
# git clone git://gitorious.org/qt-mobility/qt-mobility.git
|
|
|
|
# cd qt-mobility; git archive --prefix=qt-mobility-opensource-src-1.2.0/ master | xz -9 > qt-mobility-opensources-src-1.2.0-20110922.tar.xz
|
2012-02-24 17:50:33 +00:00
|
|
|
Source0: qt-mobility-opensource-src-%{version}-%{snap}.tar.xz
|
2011-09-22 15:02:24 +00:00
|
|
|
%else
|
2010-12-09 16:01:56 +00:00
|
|
|
Source0: http://get.qt.nokia.com/qt/add-ons/qt-mobility-opensource-src-%{version}.tar.gz
|
2011-09-22 15:02:24 +00:00
|
|
|
%endif
|
2010-07-15 14:30:02 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
Provides: qt4-mobility = %{version}-%{release}
|
|
|
|
Provides: qt4-mobility%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
## upstreamable patches
|
2011-05-13 15:04:20 +00:00
|
|
|
Patch50: qt-mobility-opensource-src-1.2.0-translationsdir.patch
|
2011-10-29 16:57:35 +00:00
|
|
|
# add pkgconfig for linux-* platforms too
|
|
|
|
Patch51: qt-mobility-opensource-src-1.2.0-pkgconfig.patch
|
2012-02-24 15:21:11 +00:00
|
|
|
# gcc 4.7, missing unistd.h for getppid
|
|
|
|
Patch52: qt-mobility-opensource-src-1.2.0-include-unistdh.patch
|
2012-02-24 17:50:33 +00:00
|
|
|
# dso
|
|
|
|
Patch53: qt-mobility-opensource-src-1.1.0-pulseaudio-lib.patch
|
|
|
|
# -fpermissive hack around failed bluez checks
|
|
|
|
# see also https://bugzilla.redhat.com/show_bug.cgi?id=797266
|
2012-03-02 16:39:08 +00:00
|
|
|
#Patch54: qt-mobility-opensource-src-1.2.2-bluez_gcc47.patch
|
2010-07-15 14:30:02 +00:00
|
|
|
|
|
|
|
## upstream patches
|
|
|
|
|
|
|
|
BuildRequires: chrpath
|
2011-09-22 15:02:24 +00:00
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(blkid)
|
|
|
|
BuildRequires: pkgconfig(bluez)
|
|
|
|
BuildRequires: pkgconfig(gstreamer-plugins-bad-0.10)
|
|
|
|
BuildRequires: pkgconfig(gstreamer-app-0.10)
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
BuildRequires: pkgconfig(libudev)
|
|
|
|
BuildRequires: pkgconfig(NetworkManager)
|
|
|
|
BuildRequires: pkgconfig(QtCore) pkgconfig(QtGui) pkgconfig(QtOpenGL)
|
|
|
|
BuildRequires: pkgconfig(xv)
|
|
|
|
|
2010-12-09 16:01:56 +00:00
|
|
|
## under review, http://bugzilla.redhat.com/626122
|
|
|
|
# BuildRequires: libqmf-devel >= 1.0
|
2010-07-15 14:30:02 +00:00
|
|
|
|
|
|
|
%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Qt Mobility Project delivers a set of new APIs to Qt with features that are well
|
|
|
|
known from the mobile device world, in particular phones. However, these APIs
|
|
|
|
allow the developer to use these features with ease from one framework and apply
|
|
|
|
them to phones, netbooks and non-mobile personal computers. The framework not
|
|
|
|
only improves many aspects of a mobile experience, because it improves the use
|
|
|
|
of these technologies, but has applicability beyond the mobile device arena.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Qt Mobility Framework development files
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: qt4-devel
|
2010-12-09 16:01:56 +00:00
|
|
|
Provides: qt4-mobility-devel = %{version}-%{release}
|
|
|
|
Provides: qt4-mobility-devel%{?_isa} = %{version}-%{release}
|
|
|
|
Provides: %{name}-messaging-devel = %{version}-%{release}
|
|
|
|
Provides: %{name}-bearer-devel = %{version}-%{release}
|
|
|
|
Provides: %{name}-versit-devel = %{version}-%{release}
|
|
|
|
Provides: %{name}-contacts-devel = %{version}-%{release}
|
|
|
|
Provides: %{name}-location-devel = %{version}-%{release}
|
|
|
|
Provides: %{name}-multimedia-devel = %{version}-%{release}
|
|
|
|
Provides: %{name}-publishsubscribe-devel = %{version}-%{release}
|
|
|
|
Provides: %{name}-sensors-devel = %{version}-%{release}
|
|
|
|
Provides: %{name}-serviceframework-devel = %{version}-%{release}
|
|
|
|
Provides: %{name}-systeminfo-devel = %{version}-%{release}
|
2010-07-15 14:30:02 +00:00
|
|
|
%description devel
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: qt4
|
|
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
|
|
%{summary}.
|
|
|
|
|
2010-12-09 16:01:56 +00:00
|
|
|
%package examples
|
|
|
|
Summary: Qt Mobility Framework examples
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description examples
|
|
|
|
%{summary}.
|
|
|
|
|
2010-07-15 14:30:02 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-opensource-src-%{version}
|
|
|
|
|
|
|
|
%patch50 -p1 -b .translationsdir
|
2011-10-29 16:57:35 +00:00
|
|
|
%patch51 -p1 -b .pkgconfig
|
2012-02-24 15:21:11 +00:00
|
|
|
%patch52 -p1 -b .include-unistdh
|
2012-02-24 17:50:33 +00:00
|
|
|
%patch53 -p1 -b .pulseaudio_lib
|
|
|
|
#patch54 -p1 -b .bluez_gcc47
|
2010-07-15 14:30:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
PATH=%{_qt4_bindir}:$PATH; export PATH
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
-prefix %{_qt4_prefix} \
|
|
|
|
-bindir %{_bindir} \
|
|
|
|
-headerdir %{_qt4_headerdir} \
|
|
|
|
-libdir %{_qt4_libdir} \
|
2010-12-09 16:01:56 +00:00
|
|
|
-plugindir %{_qt4_plugindir} \
|
|
|
|
-qmake-exec %{_qt4_qmake} \
|
2012-02-24 15:37:49 +00:00
|
|
|
-release \
|
2010-12-09 16:01:56 +00:00
|
|
|
%{?examples:-examples}
|
2010-07-15 14:30:02 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2011-09-22 15:02:24 +00:00
|
|
|
make %{?_smp_mflags} qch_docs
|
|
|
|
|
2010-07-15 14:30:02 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
# manually install docs
|
|
|
|
install -p -m644 -D doc/qch/qtmobility.qch %{buildroot}%{_qt4_docdir}/qch/qtmobility.qch
|
|
|
|
mkdir -p %{buildroot}%{_qt4_docdir}/html/qtmobility
|
|
|
|
cp -a doc/html/* %{buildroot}%{_qt4_docdir}/html/qtmobility/
|
|
|
|
|
2010-12-09 16:01:56 +00:00
|
|
|
## WTF, translations went awol in 1.1.0 ? -- Rex
|
|
|
|
#find_lang %{name} --all-name --with-qt --without-mo
|
2010-07-15 14:30:02 +00:00
|
|
|
|
|
|
|
# die rpath, die
|
|
|
|
chrpath --delete %{buildroot}%{_bindir}/* ||:
|
|
|
|
chrpath --delete %{buildroot}%{_qt4_libdir}/libQt*.so ||:
|
|
|
|
chrpath --delete %{buildroot}%{_qt4_plugindir}/*/*.so ||:
|
2011-04-19 20:21:49 +00:00
|
|
|
chrpath --delete %{buildroot}%{_qt4_importdir}/*/*.so ||:
|
2010-12-09 16:01:56 +00:00
|
|
|
chrpath --delete %{buildroot}%{_qt4_importdir}/*/*/*.so ||:
|
2010-07-15 14:30:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2010-12-09 16:01:56 +00:00
|
|
|
%files
|
2010-07-15 14:30:02 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE.LGPL LGPL_EXCEPTION.txt
|
|
|
|
%{_qt4_libdir}/libQtBearer.so.1*
|
|
|
|
%{_qt4_libdir}/libQtContacts.so.1*
|
2011-05-13 15:04:20 +00:00
|
|
|
%{_qt4_libdir}/libQtConnectivity.so.1*
|
2010-12-09 16:01:56 +00:00
|
|
|
%{_qt4_libdir}/libQtFeedback.so.1*
|
|
|
|
%{_qt4_libdir}/libQtGallery.so.1*
|
2010-07-15 14:30:02 +00:00
|
|
|
%{_qt4_libdir}/libQtLocation.so.1*
|
|
|
|
%{_qt4_libdir}/libQtMultimediaKit.so.1*
|
2010-12-09 16:01:56 +00:00
|
|
|
%{_qt4_libdir}/libQtOrganizer.so.1*
|
2010-07-15 14:30:02 +00:00
|
|
|
%{_qt4_libdir}/libQtPublishSubscribe.so.1*
|
|
|
|
%{_qt4_libdir}/libQtSensors.so.1*
|
|
|
|
%{_qt4_libdir}/libQtServiceFramework.so.1*
|
|
|
|
%{_qt4_libdir}/libQtSystemInfo.so.1*
|
|
|
|
%{_qt4_libdir}/libQtVersit.so.1*
|
2010-12-09 16:01:56 +00:00
|
|
|
%{_qt4_libdir}/libQtVersitOrganizer.so.1*
|
|
|
|
%{_qt4_importdir}/QtMobility/
|
|
|
|
%{_qt4_importdir}/QtMultimediaKit/
|
2010-07-15 14:30:02 +00:00
|
|
|
%{_qt4_plugindir}/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2010-12-09 16:01:56 +00:00
|
|
|
%{_bindir}/icheck
|
2011-05-13 15:04:20 +00:00
|
|
|
%{_bindir}/ndefhandlergen
|
2010-12-09 16:01:56 +00:00
|
|
|
%{_bindir}/qcrmlgen
|
|
|
|
%{_bindir}/servicedbgen
|
|
|
|
%{_bindir}/servicefw
|
|
|
|
%{_bindir}/servicexmlgen
|
|
|
|
%{_bindir}/vsexplorer
|
|
|
|
%{_qt4_prefix}/mkspecs/features/mobility.prf
|
|
|
|
%{_qt4_prefix}/mkspecs/features/mobilityconfig.prf
|
2010-07-15 14:30:02 +00:00
|
|
|
%{_qt4_headerdir}/Qt*/
|
|
|
|
%{_qt4_libdir}/libQt*.prl
|
|
|
|
%{_qt4_libdir}/libQt*.so
|
2011-10-29 16:57:35 +00:00
|
|
|
%{_qt4_libdir}/pkgconfig/Qt*.pc
|
2010-07-15 14:30:02 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_qt4_docdir}/qch/qtmobility.qch
|
|
|
|
%{_qt4_docdir}/html/qtmobility/
|
|
|
|
|
2010-12-09 16:01:56 +00:00
|
|
|
%if 0%{?examples}
|
|
|
|
%files examples
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_qt4_bindir}/arrowkeys
|
|
|
|
%{_qt4_bindir}/audiodevices
|
|
|
|
%{_qt4_bindir}/audioinput
|
|
|
|
%{_qt4_bindir}/audiooutput
|
|
|
|
%{_qt4_bindir}/audiorecorder
|
|
|
|
%{_qt4_bindir}/battery-publisher
|
|
|
|
%{_qt4_bindir}/battery-subscriber
|
|
|
|
%{_qt4_bindir}/bearercloud
|
|
|
|
%{_qt4_bindir}/bearermonitor
|
|
|
|
%{_qt4_bindir}/cubehouse
|
|
|
|
%{_qt4_bindir}/flickrdemo
|
|
|
|
%{_qt4_bindir}/grueapp
|
|
|
|
%{_qt4_bindir}/logfilepositionsource
|
|
|
|
%{_qt4_bindir}/metadata
|
|
|
|
%{_qt4_bindir}/nmealog.txt
|
|
|
|
%{_qt4_bindir}/orientation
|
|
|
|
%{_qt4_bindir}/publish-subscribe
|
|
|
|
%{_qt4_bindir}/radio
|
|
|
|
%{_qt4_bindir}/samplephonebook
|
|
|
|
%{_qt4_bindir}/satellitedialog
|
|
|
|
%{_qt4_bindir}/sensor_explorer
|
|
|
|
%{_qt4_bindir}/servicebrowser
|
|
|
|
%{_qt4_bindir}/sfw-notes
|
|
|
|
%{_qt4_bindir}/show_acceleration
|
|
|
|
%{_qt4_bindir}/show_als
|
|
|
|
%{_qt4_bindir}/show_compass
|
|
|
|
%{_qt4_bindir}/show_magneticflux
|
|
|
|
%{_qt4_bindir}/show_orientation
|
|
|
|
%{_qt4_bindir}/show_proximity
|
|
|
|
%{_qt4_bindir}/show_rotation
|
|
|
|
%{_qt4_bindir}/show_tap
|
|
|
|
%{_qt4_bindir}/simplelog.txt
|
|
|
|
%{_qt4_bindir}/slideshow
|
|
|
|
%{_qt4_bindir}/videographicsitem
|
|
|
|
%{_qt4_bindir}/videowidget
|
|
|
|
%{_qt4_bindir}/xmldata
|
|
|
|
%{_qt4_plugindir}/serviceframework/libserviceframework_voipdialerservice.so
|
|
|
|
%{_qt4_plugindir}/serviceframework/libserviceframework_landlinedialerservice.so
|
|
|
|
%{_qt4_plugindir}/serviceframework/libserviceframework_filemanagerplugin.so
|
|
|
|
%{_qt4_plugindir}/serviceframework/libserviceframework_bluetoothtransferplugin.so
|
|
|
|
%{_qt4_plugindir}/serviceframework/libserviceframework_notesmanagerplugin.so
|
|
|
|
%{_qt4_plugindir}/sensors/libqtsensors_grueplugin.so
|
|
|
|
%endif
|
|
|
|
|
2010-07-15 14:30:02 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-06-14 13:12:17 +00:00
|
|
|
* Thu Jun 14 2012 Rex Dieter <rdieter@fedoraproject.org> 1.2.2-0.2.20120224git
|
|
|
|
- rebuild for newer libudev/systemd (#831991)
|
|
|
|
|
2012-02-24 17:50:33 +00:00
|
|
|
* Fri Feb 24 2012 Rex Dieter <rdieter@fedoraproject.org> 1.2.2-0.1.20120224git
|
|
|
|
- 1.2.2 20120224git snapshot
|
|
|
|
|
2012-02-24 15:37:49 +00:00
|
|
|
* Fri Feb 24 2012 Rex Dieter <rdieter@fedoraproject.org> 1.2.0-9.20110922
|
|
|
|
- build in release mode
|
|
|
|
|
2012-02-24 15:21:11 +00:00
|
|
|
* Fri Feb 24 2012 Jaroslav Reznik <jreznik@redhat.com> - 1.2.0-8.20110922
|
|
|
|
- fix FTBFS because of missing unistd.h include
|
|
|
|
|
2012-01-14 02:31:50 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-7.20110922
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-29 16:57:35 +00:00
|
|
|
* Sat Oct 29 2011 Rex Dieter <rdieter@fedoraproject.org> 1.2.0-6.20110922
|
|
|
|
- add pkgconfig support
|
|
|
|
|
2011-09-22 15:02:24 +00:00
|
|
|
* Thu Sep 22 2011 Rex Dieter <rdieter@fedoraproject.org> 1.2.0-5.20110922
|
|
|
|
- 20110922 snapshot
|
|
|
|
- use pkgconfig-style deps
|
|
|
|
|
2011-07-20 20:07:12 +00:00
|
|
|
* Wed Jul 20 2011 Rex Dieter <rdieter@fedoraproject.org> 1.2.0-4
|
|
|
|
- rebuild (qt48)
|
|
|
|
|
2011-05-23 18:20:33 +00:00
|
|
|
* Mon May 23 2011 Rex Dieter <rdieter@fedoraproject.org> 1.2.0-3
|
2011-05-23 18:05:53 +00:00
|
|
|
- drop BR: qt4-webkit-devel
|
2011-05-23 19:04:32 +00:00
|
|
|
- BR: libXv-devel
|
2011-05-23 18:05:53 +00:00
|
|
|
|
2011-05-17 19:55:58 +00:00
|
|
|
* Tue May 17 2011 Rex Dieter <rdieter@fedoraproject.org> 1.2.0-2
|
|
|
|
- BR: libudev-devel
|
|
|
|
- BR: gstreamer-plugins-bad-free-devel gstreamer-plugins-base-devel
|
|
|
|
|
2011-05-13 15:04:20 +00:00
|
|
|
* Fri May 13 2011 Jaroslav Reznik <jreznik@redhat.com> 1.2.0-1
|
|
|
|
- 1.2.0
|
|
|
|
|
2011-05-09 08:39:21 +00:00
|
|
|
* Mon May 09 2011 Jaroslav Reznik <jreznik@redhat.com> 1.1.3-1
|
|
|
|
- 1.1.3
|
|
|
|
|
2011-04-19 20:21:49 +00:00
|
|
|
* Tue Apr 19 2011 Rex Dieter <rdieter@fedoraproject.org> 1.1.1-1
|
|
|
|
- 1.1.1
|
|
|
|
|
2011-02-09 05:27:19 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-09 16:01:56 +00:00
|
|
|
* Thu Dec 09 2010 Rex Dieter <rdieter@fedoraproject.org> 1.1.0-1
|
|
|
|
- 1.1.0
|
|
|
|
|
2010-07-15 14:30:02 +00:00
|
|
|
* Wed Jul 14 2010 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-3
|
|
|
|
- License: LGPLv2 ...
|
|
|
|
- -doc subpkg
|
|
|
|
|
|
|
|
* Wed Jul 14 2010 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-2
|
|
|
|
- 1.0.1 (first try, based on work by heliocastro)
|
|
|
|
|