libqt-mobility/libqt-mobility.spec

141 lines
4.2 KiB
RPMSpec
Raw Normal View History

%define majver %(echo %version | cut -d. -f1-3)
Name: libqt-mobility
Version: 1.2.2.20120813
Release: 1mamba
Summary: Qt Mobility Framework
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://qt.nokia.com/products/qt-addons/mobility
# git clone git://gitorious.org/qt-mobility/qt-mobility.git
# git archive --prefix=qt-mobility-opensource-src-1.2.2/ master | xz -9 > qt-mobility-opensource-src-1.2.2.20120813.tar.xz
Source: http://get.qt.nokia.com/qt/add-ons/qt-mobility-opensource-src-%{version}.tar.xz
Source1: FindQtMobility.cmake
Patch0: %{name}-1.2.2-gcc-4.7.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libalsa-devel
BuildRequires: libblkid-devel
BuildRequires: libgcc
BuildRequires: libGL-devel
BuildRequires: libglib-devel
BuildRequires: libGLU-devel
BuildRequires: libgst-plugins-base-devel
BuildRequires: libgstreamer-devel
%if "%{stage1}" != "1"
BuildRequires: libpulseaudio-devel
%endif
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libxml2-devel
BuildRequires: libXrandr-devel
BuildRequires: libXv-devel
BuildRequires: udev-devel
## AUTOBUILDREQ-END
Provides: qt-mobility
Obsoletes: qt-mobility
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
These new Qt APIs, not only enable Qt developers to include standard mobile functionality in their applications, but also provide useful application functionality across desktop platforms.
* Create dynamic navigation applications with the location API;
* Support standard mobile applications such as messaging, contacts and multimedia;
* Enable network roaming using bearer management.
%package devel
Group: Development/Libraries
Summary: Qt Mobility Framework development files
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: qt-mobility-devel
Obsoletes: qt-mobility-devel
%description devel
%{summary}.
%package apidocs
Group: Documentation
Summary: API documentation for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: qt-mobility-apidocs
Obsoletes: qt-mobility-apidocs
%description apidocs
%{summary}.
%prep
%setup -q -n qt-mobility-opensource-src-%{majver}
%patch0 -p1
%build
PATH=%{_qt4_bindir}:$PATH; export PATH
./configure \
-prefix %{_qt4_prefix} \
-bindir %{_bindir} \
-headerdir %{_qt4_headerdir} \
-libdir %{_qt4_libdir} \
-plugindir %{_qt4_plugindir} \
-qmake-exec %{_qt4_qmake}
# -examples
%make
# CXXFLAGS="%{optflags} -fpermissive"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
make install INSTALL_ROOT=%{buildroot}
#install -p -m644 -D doc/qch/qtmobility.qch %{buildroot}%{_qt4_docdir}/qch/qtmobility.qch
#install -d %{buildroot}%{_qt4_docdir}/html/qtmobility
#cp -a doc/html/* %{buildroot}%{_qt4_docdir}/html/qtmobility/
install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindQtMobility.cmake
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_qt4_libdir}/libQt*.so.*
%{_qt4_libdir}/qt4/imports/QtMobility/
%{_qt4_libdir}/qt4/imports/QtMultimediaKit/
%{_qt4_plugindir}/*
%doc LICENSE.LGPL LGPL_EXCEPTION.txt
%files devel
%defattr(-,root,root)
%{_bindir}/icheck
%{_bindir}/ndefhandlergen
%{_bindir}/qcrmlgen
%{_bindir}/servicedbgen
%{_bindir}/servicefw
%{_bindir}/servicexmlgen
%{_bindir}/vsexplorer
%{_qt4_datadir}/mkspecs/features/mobility.prf
%{_qt4_datadir}/mkspecs/features/mobilityconfig.prf
%{_qt4_headerdir}/Qt*/
%{_qt4_libdir}/libQt*.prl
%{_qt4_libdir}/libQt*.so
%{_datadir}/cmake/Modules/FindQtMobility.cmake
#%doc changes*
#%files apidocs
#%defattr(-,root,root,-)
#%{_qt4_docdir}/qch/qtmobility.qch
#%{_qt4_docdir}/html/qtmobility/
%changelog
* Mon Aug 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.2.20120813-1mamba
- update to 1.2.2.20120813
* Mon Feb 27 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-2mamba
- renamed from qt-mobility to libqt-mobility
- added FindQtMobility.cmake file
* Sun Sep 18 2011 Davide Madrisan <davide.madrisan@gmail.com> 1.2.0-1mamba
- package created by autospec