commit 46fe860a336ade8ffc8b36c244a5b2980ab10709ddfa16a24dc6551f310b62b3 Author: Christophe Marin Date: Fri Oct 6 07:22:47 2023 +0000 osc copypac from project:home:krop:kf6:external_libs package:kdsingleapplication revision:5 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt6/kdsingleapplication?expand=0&rev=1 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/_multibuild b/_multibuild new file mode 100644 index 0000000..0467171 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + qt6 + diff --git a/kdab.keyring b/kdab.keyring new file mode 100644 index 0000000..3ef6ce1 Binary files /dev/null and b/kdab.keyring differ diff --git a/kdsingleapplication-1.0.0.tar.gz b/kdsingleapplication-1.0.0.tar.gz new file mode 100644 index 0000000..2c76f32 --- /dev/null +++ b/kdsingleapplication-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c92355dc10f3ebd39363458458fb5bdd9662e080cf77d91f0437763c4d936520 +size 67545 diff --git a/kdsingleapplication-1.0.0.tar.gz.asc b/kdsingleapplication-1.0.0.tar.gz.asc new file mode 100644 index 0000000..8febad2 --- /dev/null +++ b/kdsingleapplication-1.0.0.tar.gz.asc @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- + +iQJCBAABCAAsFiEE6GwAA3CxueKpGRrVPb+2iCyTWPsFAmS64kEOHGluZm9Aa2Rh +Yi5jb20ACgkQPb+2iCyTWPujeQ//ff1O6n9sVS4Nfy4R6M92+0lQ18Sw4XFj9/Za +U9Fk8F6ZGSKxc1GmmJpMsUeeZuQidyVicnOfcor8TAhoISF0idUCoP1UNF3ZiZZ1 +GGwy0OP9Eqn/LPi9f2Xb3yxzutLfe0oNtbC2Pu2PSkFlkrLWHMADN6224bk4vMzh +wOQKXraJ6u/sfPpucN5wKhXw99KmTE9EHa14nsM1xDjGusB8uc9hQdrrTVZ379nG +4JYqlbJVsKCxOGuNxZnB7xPHSbHqZXZ9nCYe5ocWscqnzUF8w4pL5hX3nSUQEdVK +hkIb0j1yE1mCY5kmSoivUFJy1avVnMDZbwTE2ffn6rzOLS1MbveKJ71RlNfUxn6e +PTcm+XBiMNGKdVhCPXA/HnhppfLWDAgi/bqzuS5xwV5Z9xcEgISqQBzuO8hUIcCk +eBMLevJkA9KJVKlKAxv2NJfY0HGBQnqiBPAj2IVD78FqY6KLlFuf/oQcl2sbpouk +WqaSUoPxS2A8pL5s5QgnG+ObyevMPXDAmKx4lyi8zUysGveNMv1wDVzA6z6twSPX +KbDad07ffRhhO4LjfA8YVNjyd/EscgDXM30VR/nbvOvJqu2KbVSw2FBXcx/Fjx1W +IkOXOCOEtWa6TMa0F/Dsg7qBTVL8BtikVzQenDBVjb0ZX8VAylaxTaNzWmperOCp +lFi12oU= +=fmCy +-----END PGP SIGNATURE----- diff --git a/kdsingleapplication.changes b/kdsingleapplication.changes new file mode 100644 index 0000000..1922c51 --- /dev/null +++ b/kdsingleapplication.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Oct 6 07:09:09 UTC 2023 - Christophe Marin + +- Init kdsingleapplication diff --git a/kdsingleapplication.spec b/kdsingleapplication.spec new file mode 100644 index 0000000..1b84683 --- /dev/null +++ b/kdsingleapplication.spec @@ -0,0 +1,114 @@ +# +# spec file for package kdsingleapplication +# +# Copyright (c) 2023 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%global rname kdsingleapplication +%define flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "qt6" +%define qt6 1 +%define pkg_suffix -qt6 +%endif +Name: kdsingleapplication%{?pkg_suffix} +Version: 1.0.0 +Release: 0 +Summary: Helper class for single-instance policy applications +License: MIT +URL: https://github.com/KDAB/KDSingleApplication +Source0: https://github.com/KDAB/KDSingleApplication/releases/download/v%{version}/%{rname}-%{version}.tar.gz +Source1: https://github.com/KDAB/KDSingleApplication/releases/download/v%{version}/%{rname}-%{version}.tar.gz.asc +Source2: kdab.keyring +%if 0%{?qt6} +BuildRequires: cmake(Qt6Core) +BuildRequires: cmake(Qt6Network) +BuildRequires: cmake(Qt6Test) +BuildRequires: cmake(Qt6Widgets) +%else +BuildRequires: cmake(Qt5Core) +BuildRequires: cmake(Qt5Network) +BuildRequires: cmake(Qt5Test) +BuildRequires: cmake(Qt5Widgets) +%endif + +%description +KDSingleApplication is a helper class for single-instance policy applications. + +%package -n libkdsingleapplication%{?pkg_suffix} +Summary: Helper class for single-instance policy applications + +%description -n libkdsingleapplication%{?pkg_suffix} +KDSingleApplication is a helper class for single-instance policy applications. + +%package devel +Summary: Development files for libkdsingleapplication%{?pkg_suffix} +Requires: libkdsingleapplication%{?pkg_suffix} = %{version} +%if 0%{?qt6} +Requires: cmake(Qt6Network) +Requires: cmake(Qt6Widgets) +%else +Requires: cmake(Qt5Network) +Requires: cmake(Qt5Widgets) +%endif + +%description devel +Development files for libkdsingleapplication%{?pkg_suffix}. + +%prep +%autosetup -p1 -n %{rname}-%{version} + +%build +%if 0%{?qt6} +%cmake_qt6 \ + -DKDSingleApplication_QT6:BOOL=TRUE \ + -DKDSingleApplication_TESTS:BOOL=TRUE + +%qt6_build +%else +%cmake -DKDSingleApplication_TESTS:BOOL=TRUE + +%cmake_build +%endif + +%install +%if 0%{?qt6} +%qt6_install +%else +%cmake_install +%endif + +# Packaged using %%license and %%doc +rm -r %{buildroot}%{_datadir}/doc + +%check +%ctest + +%ldconfig_scriptlets -n libkdsingleapplication%{?pkg_suffix} + +%files -n libkdsingleapplication%{?pkg_suffix} +%license LICENSES/* +%doc README.md +%{_libdir}/libkdsingleapplication%{?pkg_suffix}.so + +%files devel +%{_includedir}/kdsingleapplication%{?pkg_suffix}/ +%{_libdir}/cmake/KDSingleApplication%{?pkg_suffix}/ +%if 0%{?qt6} +%{_qt6_mkspecsdir}/modules/qt_KDSingleApplication.pri +%else +%{_libqt5_archdatadir}/mkspecs/modules/qt_KDSingleApplication.pri +%endif + +%changelog