Commit 02b6c123 authored by sage's avatar sage

Merge pull request #28 from nemomobile/boosting

Boosting
parents 7546e354 ad8ac5bb
[D-BUS Service]
Interface=/org/nemo/transferengine
Name=org.nemo.transferengine
Exec=/usr/bin/invoker --type=generic /usr/bin/nemo-transfer-engine
Exec=/usr/bin/invoker --type=qt5 --global-syms /usr/bin/nemo-transfer-engine
SystemdService=transferengine.service
......@@ -20,6 +20,7 @@ BuildRequires: qt5-qttools-linguist
BuildRequires: qt5-qttools-qthelp-devel
BuildRequires: qt5-plugin-platform-minimal
BuildRequires: qt5-plugin-sqldriver-sqlite
BuildRequires: pkgconfig(qt5-boostable)
Requires: libnemotransferengine-qt5 = %{version}
Provides: nemo-transferengine > 0.0.19
Obsoletes: nemo-transferengine <= 0.0.19
......@@ -29,6 +30,7 @@ Obsoletes: nemo-transferengine <= 0.0.19
%files
%defattr(-,root,root,-)
%{_libdir}/systemd/user/transferengine.service
%dir %{_datadir}/nemo-transferengine
%{_bindir}/nemo-transfer-engine
%{_datadir}/dbus-1/services/org.nemo.transferengine.service
......
Name: nemo-transferengine
Version: 0.0.23
Release: 0
Summary: Transfer Engine for uploading media content and tracking transfers.
Group: System Environment/Daemon
License: LGPLv2.1
URL: https://github.com/nemomobile/transfer-engine
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(accounts-qt)
BuildRequires: pkgconfig(QtSystemInfo)
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig(mlite)
BuildRequires: pkgconfig(accounts-qt)
BuildRequires: pkgconfig(quillmetadata)
BuildRequires: qt-devel-tools
Requires: libnemotransferengine = %{version}
%description
%{summary}
%package -n libnemotransferengine
Summary: Transfer engine library.
Group: Development/Libraries
Requires: nemo-transferengine-qt5
%description -n libnemotransferengine
%{summary}
%files -n libnemotransferengine
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%package -n libnemotransferengine-devel
Summary: Development headers for transfer engine library.
Group: Development/Libraries
Requires: libnemotransferengine = %{version}
%description -n libnemotransferengine-devel
%{summary}
%files -n libnemotransferengine-devel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_includedir}/TransferEngine/*.h
%{_qt_datadir}/mkspecs/features/nemotransferengine-plugin.prf
%{_libdir}/pkgconfig/nemotransferengine.pc
%package tests
Summary: Unit tests for Nemo TransferEngine
License: LGPLv2.1
Group: System Environment/Daemon
%description tests
Unit tests for Nemo TransferEngine
%files tests
%defattr(-,root,root,-)
/opt/tests/nemo-transfer-engine/*
%prep
%setup -q -n %{name}-%{version}
%build
%qmake
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%qmake_install
%post -n libnemotransferengine
/sbin/ldconfig
%postun -n libnemotransferengine
/sbin/ldconfig
......@@ -30,7 +30,7 @@
#include "transferengine.h"
int main(int argc, char *argv[])
Q_DECL_EXPORT int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
......
......@@ -5,6 +5,12 @@ INCLUDEPATH += . ../lib
QT += dbus sql
packagesExist(qt5-boostable) {
PKGCONFIG += qt5-boostable
} else {
warning("qt5-boostable not available; startup times will be slower")
}
equals(QT_MAJOR_VERSION, 4): LIBS += -L../lib -lnemotransferengine
equals(QT_MAJOR_VERSION, 5): LIBS += -L../lib -lnemotransferengine-qt5
......
......@@ -11,9 +11,14 @@ equals(QT_MAJOR_VERSION, 4): SUBDIRS -= src
# docs only for Qt 5
equals(QT_MAJOR_VERSION, 5): include(doc/doc.pri)
systemd.files = transferengine.service
systemd.path = /usr/lib/systemd/user/
OTHER_FILES += \
rpm/*.spec \
nemo-transfer-engine.conf \
doc/src/* \
doc/config/*
INSTALLS += systemd
[Unit]
Description=Transfer engine
After=dbus.socket booster-qt5.service
Requires=dbus.socket
[Service]
ExecStart=/usr/bin/invoker --type=qt5 --global-syms /usr/bin/nemo-transfer-engine
Type=dbus
BusName=org.nemo.transferengine
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment