File kImageAnnotator.spec of Package kImageAnnotator.16873
#
# spec file for package kImageAnnotator
#
# Copyright (c) 2020 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 0_2_1
%define libname libkImageAnnotator%{sover}
Name: kImageAnnotator
Version: 0.2.1
Release: 0
Summary: Tool for annotating images
License: GPL-2.0-or-later
Group: Development/Tools/Other
URL: https://github.com/ksnip/kImageAnnotator
Source: https://github.com/ksnip/kImageAnnotator/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM
Patch1: 0001-Improve-kcolorpicker-linking.patch
Patch2: 0001-Don-t-use-lowercase-Qt-keywords-in-public-headers.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: kColorPicker-devel >= 0.1.1
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(x11)
%description
kImageAnnotator is a tool for annotating images.
%package -n %{libname}
Summary: Tool for annotating images
Group: System/Libraries
%description -n %{libname}
kImageAnnotator is a tool for annotating images.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
Development files for %{name} including headers and libraries
%prep
%autosetup -p1
%build
%cmake \
-DBUILD_EXAMPLE=ON
make %{?_smp_mflags}
%install
%cmake_install
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license LICENSE
%{_libdir}/lib%{name}.so.%{version}
%files devel
%doc CHANGELOG.md README.md
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/%{name}
%{_includedir}/%{name}
%changelog