Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Modified spec file for Sailfish syncevolution
Name: syncevolution
Summary: SyncEvolution - a SyncML and CalDAV/CardDAV client
Release: 1
License: GPL
Source: syncevolution-%{version}-%{release}.tar.gz
BuildRequires: gettext glib2-devel boost-devel pcre-devel cppunit-devel
BuildRequires: libcurl-devel sqlite-devel libxml2-devel openssl-devel zlib-devel
BuildRequires: mkcal-qt5-devel kcalcore-qt5-devel libical-devel
BuildRequires: libaccounts-glib-devel libsignon-glib-devel dbus-glib-devel
BuildRequires: intltool
SyncEvolution allows you to sync your contacts and calendar with SyncML
and CalDAV/CardDAV servers on the Internet, such as Funambol, Ovi,
Google Contacts, and Google Calendar.
# Host is used for DAV autoconfiguration
%global hostdir host-20000331
%global host_bin %{hostdir}/host
# Neon is used for DAV connections
%global neondir neon27-0.29.3
%global neon_build %{neondir}/src/
%global neon_flags --disable-shared --enable-static --enable-threadsafe-ssl=posix --with-libxml2 --with-ssl=openssl
%global neon_cflags -I%{neondir}/src -D_LARGEFILE64_SOURCE -DNE_LFS
%global neon_libs -L%{neondir}/src -lneon -lssl -lcrypto -lxml2 -lz
%setup -q -n syncevolution
# build Host
(cd %{hostdir} && make)
# build Neon
(cd %{neondir} && ./configure --disable-shared --enable-static \
--enable-threadsafe-ssl=posix --with-libxml2 --with-ssl=openssl \
--prefix=/usr --docdir=/usr/share/syncevolution/doc --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
--sysconfdir=/etc && make)
# build SyncEvolution itself
LDFLAGS="-Wl,--as-needed" \
NEON_CFLAGS="%{neon_cflags}" \
NEON_LIBS="%{neon_libs}" \
./configure --enable-sailfish --enable-shared --disable-static \
--disable-ssl-certificate-check --disable-goa \
--disable-libsoup --enable-libcurl --disable-ecal --disable-ebook \
--enable-qtcontacts --enable-kcalextended \
--disable-bluetooth --enable-dav --with-synthesis-src=libsynthesis \
--enable-dbus-service --enable-qt-dbus \
--prefix=/usr --docdir=/usr/share/syncevolution/doc --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
--sysconfdir=/etc && make
# build the Sailfish UI
(cd qt-ui && qmake && make)
make DESTDIR=%{buildroot} install
install %{host_bin} %{buildroot}/usr/lib/syncevolution
install qt-ui/sync-ui %{buildroot}/usr/bin
cp -r qt-ui/sailfish/qml %{buildroot}/usr/share/syncevolution
install -d %{buildroot}/usr/share/applications
install -d %{buildroot}/usr/share/icons/hicolor/86x86/apps
install qt-ui/sailfish/syncevolution.desktop %{buildroot}/usr/share/applications
install qt-ui/sailfish/syncevolution.png %{buildroot}/usr/share/icons/hicolor/86x86/apps
%find_lang %{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
# The VirtualBox filesystem doesn't preserve Unix permissions,
# so it's best to explicitly set the permissions to use.
%defattr(755, root, root, 755)
# The process that needs to access PIM data must be sgid "privileged".
# If D-Bus is enabled, that would be syncevo-dbus-server,
# otherwise it would be syncevolution itself.
%defattr(644, root, root, 755)
# The following files are only generated with --enable-dbus-service
%defattr(755, root, root, 755)
%attr(2755, -, privileged) /usr/libexec/syncevo-dbus-server
%defattr(644, root, root, 755)
# The following files are only generated with --enable-qt-dbus
%package devel
Summary: SynceEvolution development files
%description devel
Headers and libraries for SyncEvolution development.
%files devel
%defattr(644, root, root, 755)
# The following files are only generated with --enable-qt-dbus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.