From a01d8be30913a0f3ff251e0303c2181db889d50c910dd50f97e5bb5ee03dcdd1 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Fri, 10 Apr 2015 01:07:11 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/bluez-qt?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + bluez-qt-5.2.95.tar.xz | 3 ++ bluez-qt.changes | 5 ++ bluez-qt.spec | 102 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 bluez-qt-5.2.95.tar.xz create mode 100644 bluez-qt.changes create mode 100644 bluez-qt.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/bluez-qt-5.2.95.tar.xz b/bluez-qt-5.2.95.tar.xz new file mode 100644 index 0000000..86d355b --- /dev/null +++ b/bluez-qt-5.2.95.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b754dd3b4b6454aee739566063fd9170d461292903cd57c643f356f80436c1d +size 62128 diff --git a/bluez-qt.changes b/bluez-qt.changes new file mode 100644 index 0000000..b47e30b --- /dev/null +++ b/bluez-qt.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Apr 10 01:04:03 UTC 2015 - hrvoje.senjan@gmail.com + +- Initial package + diff --git a/bluez-qt.spec b/bluez-qt.spec new file mode 100644 index 0000000..c760aa0 --- /dev/null +++ b/bluez-qt.spec @@ -0,0 +1,102 @@ +# +# spec file for package bluez-qt +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define sonum 5 +%define rname bluez-qt +%define _libname KF5BluezQt + +Name: bluez-qt +Version: 5.2.95 +Release: 0 +Summary: Async Bluez wrapper library +License: LGPL-2.1+ +Group: System/GUI/KDE +Url: https://projects.kde.org/attica +Source: %{rname}-%{version}.tar.xz +BuildRequires: cmake >= 2.8.12 +BuildRequires: extra-cmake-modules >= 1.8.0 +BuildRequires: fdupes +BuildRequires: kf5-filesystem +BuildRequires: pkgconfig(Qt5Core) >= 5.4.0 +BuildRequires: pkgconfig(Qt5DBus) >= 5.4.0 +BuildRequires: pkgconfig(Qt5Network) >= 5.4.0 +BuildRequires: pkgconfig(Qt5Qml) >= 5.4.0 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Async Bluez wrapper library. + +%package -n lib%{_libname}%{sonum} +Summary: Async Bluez wrapper library - development files +Group: System/GUI/KDE + +%description -n lib%{_libname}%{sonum} +Async Bluez wrapper library. + +%package imports +Summary: Async Bluez wrapper library +Group: System/GUI/KDE +Supplements: packageand(lib%{_libname}%{sonum}:libQtQuick5) +%requires_ge libQtQuick5 + +%description imports +Async Bluez wrapper library. +QML imports. + +%package devel +Summary: Async Bluez wrapper library - development files +Group: Development/Libraries/C and C++ +Requires: lib%{_libname}%{sonum} = %{version} +Requires: pkgconfig(Qt5Core) >= 5.4.0 + +%description devel +Development files for QBluez Async Bluez wrapper library. + +%prep +%setup -q -n %{rname}-%{version} + +%build + %cmake_kf5 -d build + %make_jobs + +%install + %kf5_makeinstall -C build + %fdupes -s %{buildroot} + +%post -n lib%{_libname}%{sonum} -p /sbin/ldconfig + +%postun -n lib%{_libname}%{sonum} -p /sbin/ldconfig + +%files -n lib%{_libname}%{sonum} +%defattr(-,root,root) +%doc README* COPYING.LIB +%{_libqt5_libdir}/lib%{_libname}*.so.* + +%files imports +%defattr(-,root,root) +%doc README* COPYING.LIB +%{_kf5_qmldir}/ + +%files devel +%defattr(-,root,root) +%{_kf5_libdir}/cmake/%{_libname}/ +%{_kf5_libdir}/lib%{_libname}*.so +%{_kf5_includedir}/ +%{_kf5_mkspecsdir}/qt_BluezQt.pri + +%changelog