Files
libregraphapi/libregraphapi.spec
Christophe Marin 4adb3ee41a Accepting request 1146012 from home:kfreitag:branches:KDE:Extra
- remove unneeded build requires for compilers 

- use qt6 build macros as suggested by reviewer 

- Disabled multibuild, only Qt6 build for efficiency. oC is the 
  only consumer and is switching to Qt6

  * Removed patch 0001-cmake_fixes.patch - changes went upstream 
  * Enabled multibuild for Qt5 and Qt6

OBS-URL: https://build.opensuse.org/request/show/1146012
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/libregraphapi?expand=0&rev=7
2024-02-22 17:19:14 +00:00

77 lines
2.3 KiB
RPMSpec

#
# spec file for package libregraphapi
#
# Copyright (c) 2024 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/
#
%define sover 1
Name: libregraphapi
Version: 1.0.4
Release: 0
Summary: A client library for the LibreGraphAPI library
License: Apache-2.0
URL: https://github.com/owncloud/libre-graph-api-cpp-qt-client
Source: https://github.com/owncloud/libre-graph-api-cpp-qt-client/archive/v%{version}.tar.gz#/libre-graph-api-cpp-qt-client-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6Network)
BuildRequires: pkgconfig(zlib)
%description
Libregraphapi is a MS Graph API influenced API for cloud collaboration.
%package -n libLibreGraphAPI%{sover}
Summary: A client library for the LibreGraphAPI library
%description -n libLibreGraphAPI%{sover}
Libregraphapi is a MS Graph API influenced API for cloud collaboration.
%package devel
Summary: Development files for the libregraphAPI library
Requires: libLibreGraphAPI%{sover} = %{version}
%description devel
Libregraphapi is a MS Graph API influenced API for cloud collaboration.
This package contains development files for libregraphapi.
%prep
%autosetup -p1 -n libre-graph-api-cpp-qt-client-%{version}
%build
cd client
%cmake_qt6 -DBUILD_SHARED_LIBS=ON
%qt6_build
%install
cd client
%qt6_install
%ldconfig_scriptlets -n libLibreGraphAPI%{sover}
%files -n libLibreGraphAPI%{sover}
%license LICENSE
%doc README.md
%{_libdir}/libLibreGraphAPI.so.%{sover}
%{_libdir}/libLibreGraphAPI.so.%{version}
%files devel
%{_includedir}/OpenAPI
%{_libdir}/cmake/LibreGraphAPI
%{_libdir}/libLibreGraphAPI.so
%changelog