[packages/qt5-qtsensors] - new

witekfl witekfl at pld-linux.org
Mon Dec 30 22:35:29 CET 2013


commit b03d19b4c96b24143bb3adcfc0802800aee3e7e9
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Mon Dec 30 22:35:09 2013 +0100

    - new

 qt5-qtsensors.spec | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 119 insertions(+)
---
diff --git a/qt5-qtsensors.spec b/qt5-qtsensors.spec
new file mode 100644
index 0000000..3ce2c4a
--- /dev/null
+++ b/qt5-qtsensors.spec
@@ -0,0 +1,119 @@
+# TODO:
+# - cleanup
+
+%define		orgname		qtsensors
+Summary:	The Qt5 Sensors
+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:	718606a6f76afa20c6cd2e0433356ac2
+URL:		http://qt-project.org/
+BuildRequires:	qt5-qtbase-devel = %{version}
+BuildRequires:	qt5-qtdeclarative-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 Sensors libraries.
+
+%package devel
+Summary:	The Qt5 Sensors - development files
+Group:		X11/Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Qt5 Sensors - development files.
+
+%package doc
+Summary:	The Qt5 Sensors - docs
+Group:		Documentation
+
+%description doc
+Qt5 Sensors - documentation.
+
+%package examples
+Summary:	Qt5 Sensors examples
+Group:		X11/Development/Libraries
+
+%description examples
+Qt5 Sensors - 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}/libQt5Sensors.so.?
+%attr(755,root,root) %{_libdir}/libQt5Sensors.so.*.*
+%attr(755,root,root) %{_qtdir}/plugins
+%attr(755,root,root) %{_qtdir}/qml
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libQt5Sensors.so
+%{_libdir}/libQt5Sensors.la
+%{_libdir}/libQt5Sensors.prl
+%{_libdir}/cmake/Qt5Sensors
+%{_includedir}/qt5/QtSensors
+%{_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-qtsensors.git/commitdiff/b03d19b4c96b24143bb3adcfc0802800aee3e7e9



More information about the pld-cvs-commit mailing list