File mlinpxplugin.spec of Package mlinpxplugin
#
# spec file for package mlinpxplugin
#
# Copyright (c) 2025 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/
#
Name: mlinpxplugin
Version: @SERVICE@
Release: 0
Summary: Imports collection from .inpx files
License: GPL-3.0-or-later
Group: Productivity/Other
URL: https://github.com/ProfessorNavigator/mlinpxplugin
Source0: %{name}-%{version}.tar.xz
Source1: %{name}.rpmlintrc
BuildRequires: cmake
BuildRequires: cmake(MLPluginIfc)
BuildRequires: cmake(MLBookProc)
%if 0%{?suse_version} >= 1600
BuildRequires: gcc-c++ >= 10.2.1
%else
BuildRequires: gcc10-c++
%endif
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ddjvuapi)
BuildRequires: pkgconfig(gtkmm-4.0)
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(libgcrypt)
BuildRequires: pkgconfig(poppler-cpp)
%description
Plugin for MyLibrary. This plugin imports books collections from .inpx
files.
%package -n mylibrary-plugin-inpx-lang
Summary: Translations for package %{name}
Group: System/Localization
Requires: mylibrary-plugin-inpx = %{version}
Provides: mylibrary-plugin-inpx-lang-all = %{version}
BuildArch: noarch
%description -n mylibrary-plugin-inpx-lang
Provides translations for the "%{name}" package.
%package -n mylibrary-plugin-inpx
Summary: Imports collection from .inpx files
Requires: mylibrary
Recommends: mylibrary-plugin-inpx-lang
%description -n mylibrary-plugin-inpx
Plugin for MyLibrary. This plugin imports books collections from .inpx
files.
%prep
%autosetup -p1
%build
%cmake \
%if 0%{?sle_version} >= 150500
-DCMAKE_CXX_COMPILER=%{_bindir}/g++-10
%endif
%{nil}
%cmake_build
%install
%cmake_install
rm -fv %{buildroot}%{_libdir}/libmlinpxplugin.so
%find_lang MLInpxPlugin
%ldconfig_scriptlets -n mylibrary-plugin-inpx
%files -n mylibrary-plugin-inpx
%doc README*.md
%{_libdir}/libmlinpxplugin.so.*
%license COPYING
%files -n mylibrary-plugin-inpx-lang -f MLInpxPlugin.lang
%changelog