$ git show --format=fuller --patch-with-stat --summary 1f2491161a26694ba61906d849409f1d82db9aa7
commit 1f2491161a26694ba61906d849409f1d82db9aa7
Author: Bernhard Rosenkränzer <bero@lindev.ch>
AuthorDate: Sat Sep 5 19:49:29 2020 +0200
Commit: Bernhard Rosenkränzer <bero@lindev.ch>
CommitDate: Sat Sep 5 19:49:29 2020 +0200
Replace the obsolete, unmaintained gtk app with the Maui app by the same name
---
.abf.yml | 2 +-
contacts-0.11-fix-str-fmt.patch | 12 -----
contacts-0.12-fix-build.patch | 19 --------
contacts.spec | 100 +++++++++++++++-------------------------
4 files changed, 39 insertions(+), 94 deletions(-)
delete mode 100644 contacts-0.11-fix-str-fmt.patch
delete mode 100644 contacts-0.12-fix-build.patch
diff --git a/.abf.yml b/.abf.yml
index 8179afc..c755e93 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
sources:
- "contacts-0.12.tar.bz2:" f836963997c9dbdb34a6491a9f5a5431375a710c
+ communicator-v1.1.1.tar.bz2: f8f94fc2367df20974abba24a4d5f15cab280928
diff --git a/contacts-0.11-fix-str-fmt.patch b/contacts-0.11-fix-str-fmt.patch
deleted file mode 100644
index b402260..0000000
--- a/contacts-0.11-fix-str-fmt.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -p -up contacts-0.11/src/contacts-callbacks-ui.c~ contacts-0.11/src/contacts-callbacks-ui.c
---- src/contacts-callbacks-ui.c~ 2009-07-14 16:00:54.000000000 +0200
-+++ src/contacts-callbacks-ui.c 2009-11-10 15:06:57.000000000 +0100
-@@ -221,7 +221,7 @@ contacts_delete_cb (GtkWidget *source, C
- dialog = gtk_message_dialog_new (GTK_WINDOW (main_window),
- 0, GTK_MESSAGE_QUESTION,
- GTK_BUTTONS_CANCEL,
-- message);
-+ "%s", message);
- gtk_dialog_add_buttons (GTK_DIALOG (dialog), GTK_STOCK_DELETE,
- GTK_RESPONSE_YES, NULL);
-
diff --git a/contacts-0.12-fix-build.patch b/contacts-0.12-fix-build.patch
deleted file mode 100644
index 1a5eb05..0000000
--- a/contacts-0.12-fix-build.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- Makefile.am.gnu 2010-09-04 14:57:22.000000000 +0200
-+++ Makefile.am 2010-09-04 14:57:33.000000000 +0200
-@@ -11,4 +11,4 @@
- MAINTAINERCLEANFILES = aclocal.m4 compile config.guess config.sub configure depcomp $(INTLTOOL_BUILT:=.in) install-sh ltmain.sh mkinstalldirs Makefile.in missing
-
- snapshot:
-- $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
-+ $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
---- Makefile.in.gnu 2010-09-04 14:57:39.000000000 +0200
-+++ Makefile.in 2010-09-04 14:57:50.000000000 +0200
-@@ -739,7 +739,7 @@
-
-
- snapshot:
-- $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
-+ $(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
-
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/contacts.spec b/contacts.spec
index 89d81a4..2a74dde 100644
--- a/contacts.spec
+++ b/contacts.spec
@@ -1,71 +1,47 @@
-%define name contacts
-%define version 0.12
-%define release %mkrel 3
-
-Summary: Small, lightweight addressbook
-Name: %{name}
-Version: %{version}
-Release: %{release}
-Source0: http://ftp.gnome.org/pub/GNOME/sources/contacts/%{version}/%{name}-%{version}.tar.bz2
-Patch0: contacts-0.11-fix-str-fmt.patch
-Patch1: contacts-0.12-fix-build.patch
-License: GPLv2+
-Group: Graphical desktop/GNOME
-Url: http://pimlico-project.org/contacts.html
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
-BuildRequires: libedataserver-devel
-BuildRequires: libgtk+2-devel intltool gnome-vfs2-devel
+Name: contacts
+Version: 1.1.1
+Release: 1
+Source0: https://invent.kde.org/maui/communicator/-/archive/v%{version}/communicator-v%{version}.tar.bz2
+Group: Applications/Productivity
+Summary: Contact management for Plasma Mobile
+License: GPLv3
+BuildRequires: ninja
+BuildRequires: cmake(ECM)
+BuildRequires: cmake(MauiKit)
+BuildRequires: cmake(Qt5Qml)
+BuildRequires: cmake(Qt5Quick)
+BuildRequires: cmake(Qt5Sql)
+BuildRequires: cmake(Qt5Svg)
+BuildRequires: cmake(Qt5QuickControls2)
+BuildRequires: cmake(Qt5Widgets)
+BuildRequires: cmake(Qt5Concurrent)
+BuildRequires: cmake(KF5I18n)
+BuildRequires: cmake(KF5Notifications)
+BuildRequires: cmake(KF5Config)
+BuildRequires: cmake(KF5KIO)
+BuildRequires: cmake(KF5Attica)
+BuildRequires: cmake(KF5Contacts)
+BuildRequires: cmake(KF5People)
+BuildRequires: cmake(KF5SyntaxHighlighting)
+BuildRequires: cmake(Qt5WebEngine)
+BuildRequires: cmake(PhoneNumber)
+BuildRequires: %{_lib}phonenumber-devel
%description
-Contacts is a small, lightweight addressbook that uses libebook, part of EDS.
-This is the same library that GNOME Evolution uses, so all contact data that
-exists in your Evolution addressbook is accessible via Contacts.
+Contact management for Plasma Mobile
%prep
-%setup -q
-%patch0 -p0
-%patch1 -p0
+%autosetup -p1 -n communicator-v%{version}
+%cmake_kde5
%build
-%configure2_5x
-%make
+%ninja_build -C build
%install
-rm -rf $RPM_BUILD_ROOT
-%makeinstall_std
-%find_lang %name
-
-%define schemas %name
-
-%if %mdkversion < 200900
-%post
-%update_icon_cache hicolor
-%update_menus
-%post_install_gconf_schemas %{schemas}
-%endif
-
-%preun
-%preun_uninstall_gconf_schemas %{schemas}
-
-%if %mdkversion < 200900
-%postun
-%clean_icon_cache hicolor
-%clean_menus
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files -f %name.lang
-%defattr(-,root,root)
-%doc README AUTHORS ChangeLog
-%_sysconfdir/gconf/schemas/
-%_bindir/%{name}
-%_datadir/applications/%{name}.desktop
-%_mandir/man1/*
-%_iconsdir/*/*/apps/*.png
-%_iconsdir/*/*/apps/*.svg
-
-%lang(all) %{_datadir}/locale/*/LC_MESSAGES/*
-
+%ninja_install -C build
+%files
+%{_bindir}/contacts
+%{_datadir}/applications/org.kde.contacts.desktop
+%{_datadir}/icons/hicolor/scalable/apps/contacts.svg
+%{_datadir}/maui-accounts