Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alveus:kde:extra
kdsingleapplication
kdsingleapplication.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdsingleapplication.spec of Package kdsingleapplication
# # 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 %define sover -1_1 %else %define sover 1_1 %endif Name: kdsingleapplication%{?pkg_suffix} Version: 1.1.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}%{sover} Summary: Helper class for single-instance policy applications # kdsingleapplication 1.0.0 wasn't versioned Provides: libkdsingleapplication%{?pkg_suffix} = 1.0.0 Obsoletes: libkdsingleapplication%{?pkg_suffix} <= 1.0.0 %description -n libkdsingleapplication%{?pkg_suffix}%{sover} KDSingleApplication is a helper class for single-instance policy applications. %package devel Summary: Development files for libkdsingleapplication%{?pkg_suffix} Requires: libkdsingleapplication%{?pkg_suffix}%{sover} = %{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}%{sover} %files -n libkdsingleapplication%{?pkg_suffix}%{sover} %license LICENSES/* %doc README.md %{_libdir}/libkdsingleapplication%{?pkg_suffix}.so.* %files devel %{_includedir}/kdsingleapplication%{?pkg_suffix}/ %{_libdir}/cmake/KDSingleApplication%{?pkg_suffix}/ %{_libdir}/libkdsingleapplication%{?pkg_suffix}.so %if 0%{?qt6} %{_qt6_mkspecsdir}/modules/qt_KDSingleApplication.pri %else %{_libqt5_archdatadir}/mkspecs/modules/qt_KDSingleApplication.pri %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor