[packages/qt5-qtlocation] - new - geoclue-sattelites not found
witekfl
witekfl at pld-linux.org
Tue Dec 31 15:58:08 CET 2013
commit 9bb89c72da6399f52c684665d3eefadf0caccb69
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Tue Dec 31 15:57:12 2013 +0100
- new
- geoclue-sattelites not found
qt5-qtlocation.spec | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 120 insertions(+)
---
diff --git a/qt5-qtlocation.spec b/qt5-qtlocation.spec
new file mode 100644
index 0000000..9878004
--- /dev/null
+++ b/qt5-qtlocation.spec
@@ -0,0 +1,120 @@
+# TODO:
+# - cleanup
+
+%define orgname qtlocation
+Summary: The Qt5 Location
+Name: qt5-%{orgname}
+Version: 5.2.0
+Release: 0.1
+License: LGPL v2.1 or GPL v3.0
+Group: X11/Libraries
+Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
+# Source0-md5: 1c05c198cc3e43da4692f9dfb43b45d6
+URL: http://qt-project.org/
+BuildRequires: geoclue-devel
+BuildRequires: gypsy-devel
+BuildRequires: qt5-qtbase-devel = %{version}
+BuildRequires: qt5-qttools-devel = %{version}
+BuildRequires: rpmbuild(macros) >= 1.654
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _noautoreqdep libGL.so.1 libGLU.so.1
+%define _noautostrip '.*_debug\\.so*'
+
+%define specflags -fno-strict-aliasing
+%define _qtdir %{_libdir}/qt5
+
+%description
+Qt5 Location libraries.
+
+%package devel
+Summary: The Qt5 Location - development files
+Group: X11/Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Qt5 Location - development files.
+
+%package doc
+Summary: The Qt5 Location - docs
+Group: Documentation
+
+%description doc
+Qt5 Location - documentation.
+
+%package examples
+Summary: Qt5 Location examples
+Group: X11/Development/Libraries
+
+%description examples
+Qt5 Location - examples.
+
+%prep
+%setup -q -n %{orgname}-opensource-src-%{version}
+
+%build
+qmake-qt5
+%{__make}
+%{__make} docs
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ INSTALL_ROOT=$RPM_BUILD_ROOT
+
+%{__make} install_docs \
+ INSTALL_ROOT=$RPM_BUILD_ROOT
+
+# Prepare some files list
+ifecho() {
+ RESULT=`echo $RPM_BUILD_ROOT$2 2>/dev/null`
+ [ "$RESULT" == "" ] && return # XXX this is never true due $RPM_BUILD_ROOT being set
+ r=`echo $RESULT | awk '{ print $1 }'`
+
+ if [ -d "$r" ]; then
+ echo "%%dir $2" >> $1.files
+ elif [ -x "$r" ] ; then
+ echo "%%attr(755,root,root) $2" >> $1.files
+ elif [ -f "$r" ]; then
+ echo "$2" >> $1.files
+ else
+ echo "Error generation $1 files list!"
+ echo "$r: no such file or directory!"
+ return 1
+ fi
+}
+
+echo "%defattr(644,root,root,755)" > examples.files
+ifecho examples %{_examplesdir}/qt5
+for f in `find $RPM_BUILD_ROOT%{_examplesdir}/qt5 -printf "%%P "`; do
+ ifecho examples %{_examplesdir}/qt5/$f
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %ghost %{_libdir}/libQt5Positioning.so.?
+%attr(755,root,root) %{_libdir}/libQt5Positioning.so.*.*
+%attr(755,root,root) %{_qtdir}/plugins
+%{_qtdir}/qml
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libQt5Positioning.so
+%{_libdir}/libQt5Positioning.la
+%{_libdir}/libQt5Positioning.prl
+%{_libdir}/cmake/Qt5Positioning
+%{_includedir}/qt5/QtPositioning
+%{_pkgconfigdir}/*.pc
+%{_qtdir}/mkspecs
+
+%files doc
+%defattr(644,root,root,755)
+%{_docdir}/qt5-doc
+
+%files examples -f examples.files
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/qt5-qtlocation.git/commitdiff/9bb89c72da6399f52c684665d3eefadf0caccb69
More information about the pld-cvs-commit
mailing list