[packages/qt5-qtsvg] - new

witekfl witekfl at pld-linux.org
Mon Dec 30 23:03:37 CET 2013


commit f5135eb65af3efe935213f71cc2e01afe280fe2f
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Mon Dec 30 23:03:14 2013 +0100

    - new

 qt5-qtsvg.spec | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 118 insertions(+)
---
diff --git a/qt5-qtsvg.spec b/qt5-qtsvg.spec
new file mode 100644
index 0000000..24f8128
--- /dev/null
+++ b/qt5-qtsvg.spec
@@ -0,0 +1,118 @@
+# TODO:
+# - cleanup
+
+%define		orgname		qtsvg
+Summary:	The Qt5 Svg
+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:	3f6132475f6edcd7b6cfb57650846185
+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 Svg libraries.
+
+%package devel
+Summary:	The Qt5 Svg - development files
+Group:		X11/Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Qt5 Svg - development files.
+
+%package doc
+Summary:	The Qt5 Svg - docs
+Group:		Documentation
+
+%description doc
+Qt5 Svg - documentation.
+
+%package examples
+Summary:	Qt5 Svg examples
+Group:		X11/Development/Libraries
+
+%description examples
+Qt5 Svg - 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}/libQt5Svg.so.?
+%attr(755,root,root) %{_libdir}/libQt5Svg.so.*.*
+%attr(755,root,root) %{_qtdir}/plugins
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libQt5Svg.so
+%{_libdir}/libQt5Svg.la
+%{_libdir}/libQt5Svg.prl
+%{_libdir}/cmake/Qt5Gui
+%{_libdir}/cmake/Qt5Svg
+%{_includedir}/qt5/QtSvg
+%{_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-qtsvg.git/commitdiff/f5135eb65af3efe935213f71cc2e01afe280fe2f



More information about the pld-cvs-commit mailing list