File kImageAnnotator.spec of Package kImageAnnotator
#
# spec file for package kImageAnnotator
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define _ver 0
Name: kImageAnnotator
Version: @SERVICE@
Release: 0
Summary: Tool for annotating images
License: GPL-2.0-or-later
Group: Development/Tools/Other
URL: https://github.com/DamirPorobic/kImageAnnotator
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(x11)
BuildRequires: kColorPicker-devel
%description
kImageAnnotator is a tool for annotating images.
%package -n lib%{name}%{_ver}
Summary: Tool for annotating images
Group: System/Libraries
%description -n lib%{name}%{_ver}
kImageAnnotator is a tool for annotating images.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: lib%{name}%{_ver} = %{version}
%description devel
Development files for %{name} including headers and libraries
%lang_package
%prep
%setup -q
%build
%cmake \
-DCMAKE_INSTALL_DATAROOTDIR=share \
-DBUILD_EXAMPLE=ON
make %{?_smp_mflags}
%install
%cmake_install
%fdupes -s %{buildroot}/%{_datadir}/%{name}/translations/
%find_lang %{name} --with-qt
%post -n lib%{name}%{_ver} -p /sbin/ldconfig
%postun -n lib%{name}%{_ver} -p /sbin/ldconfig
%files -n lib%{name}%{_ver}
%{_libdir}/lib%{name}.so.*
%files lang -f %{name}.lang
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/translations
%files devel
%doc CHANGELOG.md README.md
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/%{name}
%{_includedir}/%{name}
%license LICENSE
%changelog