[packages/qt5-qtxmlpatterns] - new

witekfl witekfl at pld-linux.org
Mon Dec 30 21:54:06 CET 2013


commit 8a1c70dd8da12c0ab2eb574e27f0615bed41ee4f
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Mon Dec 30 21:53:43 2013 +0100

    - new

 qt5-qtxmlpatterns.spec | 117 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 117 insertions(+)
---
diff --git a/qt5-qtxmlpatterns.spec b/qt5-qtxmlpatterns.spec
new file mode 100644
index 0000000..fb70d08
--- /dev/null
+++ b/qt5-qtxmlpatterns.spec
@@ -0,0 +1,117 @@
+# TODO:
+# - cleanup
+
+%define		orgname		qtxmlpatterns
+Summary:	The Qt5 XmlPatterns
+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:	7c3e94cd04603c3f81e50d47daf5bbc7
+URL:		http://qt-project.org/
+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 XmlPatterns libraries.
+
+%package devel
+Summary:	The Qt5 XmlPatterns - development files
+Group:		X11/Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Qt5 XmlPatterns - development files.
+
+%package doc
+Summary:	The Qt5 XmlPatterns - docs
+Group:		Documentation
+
+%description doc
+Qt5 XmlPatterns - documentation.
+
+%package examples
+Summary:	Qt5 XmlPatterns examples
+Group:		X11/Development/Libraries
+
+%description examples
+Qt5 XmlPatterns - 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}/libQt5XmlPatterns.so.?
+%attr(755,root,root) %{_libdir}/libQt5XmlPatterns.so.*.*
+%attr(755,root,root) %{_qtdir}/bin/xmlpatterns*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libQt5XmlPatterns.so
+%{_libdir}/libQt5XmlPatterns.la
+%{_libdir}/libQt5XmlPatterns.prl
+%{_libdir}/cmake/Qt5XmlPatterns
+%{_includedir}/qt5/QtXmlPatterns
+%{_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-qtxmlpatterns.git/commitdiff/8a1c70dd8da12c0ab2eb574e27f0615bed41ee4f



More information about the pld-cvs-commit mailing list