File trojita.spec of Package trojita

#
# spec file for package trojita
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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:           trojita
Version:        0.7~git20250430
Release:        0
Summary:        Qt5 IMAP e-mail client
License:        (GPL-2.0-only OR GPL-3.0-only) AND BSD-3-Clause AND LGPL-2.0-only AND (LGPL-2.1-only OR GPL-3.0-only) AND LGPL-2.1-or-later AND GPL-2.0-only
URL:            https://invent.kde.org/pim/trojita
# n=trojita && cd /tmp && git clone --depth=1 https://invent.kde.org/pim/$n.git && pushd $n && v=0.7~git$(TZ=UTC date -d @`git log -1 --format=%at` +%Y%m%d) && d=$n-$v && rm -rf .??* && popd && mv $n $d && f=$d.tar.xz && tar c --remove-files "$d" | xz -9e > "$f"
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  libmimetic-devel
BuildRequires:  libqt5-linguist-devel
BuildRequires:  libqt5-sql-sqlite
BuildRequires:  pinentry
BuildRequires:  pkgconfig
BuildRequires:  qtkeychain-qt5-devel
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-Xvfb
BuildRequires:  cmake(KF5Sonnet)
BuildRequires:  cmake(QGpgme)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5WebKitWidgets)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(gpgmepp)
BuildRequires:  pkgconfig(xkeyboard-config)
BuildRequires:  pkgconfig(zlib)
%lang_package

%description
Trojita is a Qt IMAP e-mail client which:
  * Enables you to access your mail anytime, anywhere.
  * Does not slow you down. If we can improve the productivity of an e-mail user, we better do.
  * Respects open standards and facilitates modern technologies. We value the vendor-neutrality that IMAP provides and are committed to be as interoperable as possible.
  * Is efficient — be it at conserving the network bandwidth, keeping memory use at a reasonable level or not hogging the system's CPU.
  * Can be used on many platforms. One UI is not enough for everyone, but our IMAP core works fine on anything from desktop computers to cell phones and big ERP systems.
  * Plays well with the rest of the ecosystem. We don't like reinventing wheels, but when the existing wheels quite don't fit the tracks, we're not afraid of making them work.

%prep
%autosetup -p1
sed -e '/^#, fuzzy/d' -e 's/"чч:мм"/""/' -e 's/^"Сообщение"$/"Сообщения"/' po/ru/trojita_common.po > po/trojita_common_ru.po

%build
%cmake -LA \
       -DBUILD_TESTING=OFF \
       -DWITH_AKONADIADDRESSBOOK_PLUGIN=OFF \
       -DWITH_SONNET_PLUGIN=OFF
%cmake_build

%install
%cmake_install
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/org.kde.trojita.desktop

%find_lang %{name} --without-kde --with-qt --all-name --without-mo

%files
%license LICENSE
%doc README
%{_bindir}/%{name}
%{_bindir}/be.contacts
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_libdir}/libtrojita_plugins.so
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/trojita_plugin_*.so
%{_datadir}/applications/org.kde.%{name}.desktop
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/*
%dir %{_datadir}/icons/hicolor/*/apps
%{_datadir}/icons/hicolor/*/apps/%{name}.{png,svg}
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/org.kde.%{name}.appdata.xml
%dir %{_datadir}/%{name}

%files lang -f %{name}.lang
%dir %{_datadir}/%{name}/locale

%changelog
openSUSE Build Service is sponsored by