Skip to content

Commit

Permalink
Merge branch 'aarch64-fix' into 'master'
Browse files Browse the repository at this point in the history
[buteo-sync-plugin-carddav] Fix plugin path for aarch64. JB#51189

See merge request mer-core/buteo-sync-plugin-carddav!27
  • Loading branch information
Matti Kosola committed Sep 14, 2020
2 parents 00e1baa + b12ad6c commit 6ef32f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions rpm/buteo-sync-plugin-carddav.spec
Expand Up @@ -2,7 +2,6 @@ Name: buteo-sync-plugin-carddav
Summary: Syncs contact data from CardDAV services
Version: 0.0.32
Release: 1
Group: System/Libraries
License: LGPLv2
URL: https://git.sailfishos.org/mer-core/buteo-sync-plugin-carddav
Source0: %{name}-%{version}.tar.bz2
Expand Down Expand Up @@ -38,9 +37,9 @@ This package contains unit tests for the CardDAV Buteo sync plugin.
%files
%defattr(-,root,root,-)
#out-of-process-plugin
/usr/lib/buteo-plugins-qt5/oopp/carddav-client
%{_libdir}/buteo-plugins-qt5/oopp/carddav-client
#in-process-plugin
#/usr/lib/buteo-plugins-qt5/libcarddav-client.so
#%%{_libdir}/buteo-plugins-qt5/libcarddav-client.so
%config %{_sysconfdir}/buteo/profiles/client/carddav.xml
%config %{_sysconfdir}/buteo/profiles/sync/carddav.Contacts.xml
%license LICENSE
Expand Down Expand Up @@ -81,18 +80,17 @@ This package contains unit tests for the CardDAV Buteo sync plugin.
/opt/tests/buteo/plugins/carddav/data/replyparser_contactdata_single-contact-multiple-xgender.xml

%prep
%setup -q -n %{name}-%{version}
%autosetup -n %{name}-%{version}

%build
%qmake5 "DEFINES+=BUTEO_OUT_OF_PROCESS_SUPPORT" "CONFIG+=build-tools"
make %{?jobs:-j%jobs}
%make_build

%pre
rm -f /home/nemo/.cache/msyncd/sync/client/carddav.xml || :
rm -f /home/nemo/.cache/msyncd/sync/carddav.Contacts.xml || :

%install
rm -rf %{buildroot}
%qmake5_install

%post
Expand Down
4 changes: 2 additions & 2 deletions src/src.pro
Expand Up @@ -10,12 +10,12 @@ QMAKE_CXXFLAGS = -Wall \
!contains (DEFINES, BUTEO_OUT_OF_PROCESS_SUPPORT) {
TEMPLATE = lib
CONFIG += plugin
target.path = /usr/lib/buteo-plugins-qt5
target.path = $$[QT_INSTALL_LIBS]/buteo-plugins-qt5
}

contains (DEFINES, BUTEO_OUT_OF_PROCESS_SUPPORT) {
TEMPLATE = app
target.path = /usr/lib/buteo-plugins-qt5/oopp
target.path = $$[QT_INSTALL_LIBS]/buteo-plugins-qt5/oopp
DEFINES += CLIENT_PLUGIN
DEFINES += "CLASSNAME=CardDavClient"
DEFINES += CLASSNAME_H=\\\"carddavclient.h\\\"
Expand Down

0 comments on commit 6ef32f3

Please sign in to comment.