Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Vesuri/master
Allow building on Qt5
- Loading branch information
Showing
10 changed files
with
161 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*.o | ||
moc_* | ||
Makefile | ||
lib/*.so* | ||
lib/transferengineinterface.* | ||
src/*.ts | ||
src/*.qm | ||
src/nemo-transfer-engine | ||
src/transferengineadaptor.* | ||
tests/ut_nemo-transfer-engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
prefix=/usr | ||
exec_prefix=${prefix} | ||
libdir=${exec_prefix}/lib | ||
includedir=${prefix}/include/TransferEngine-qt5 | ||
|
||
Name: libnemotransferengine-qt5 | ||
Description: Nemo transfer engine library for share plugins and transfer engine API | ||
Version: 0.0.1 | ||
Requires: Qt5Core Qt5DBus | ||
Libs: -L${libdir} -lnemotransferengine-qt5 | ||
Cflags: -I${includedir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
Name: nemo-transferengine-qt5 | ||
Version: 0.0.16 | ||
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(Qt5Core) | ||
BuildRequires: pkgconfig(accounts-qt5) | ||
BuildRequires: desktop-file-utils | ||
BuildRequires: pkgconfig(mlite5) | ||
BuildRequires: pkgconfig(quillmetadata-qt5) | ||
|
||
%description | ||
%{summary}. | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%dir %{_datadir}/nemo-transferengine | ||
%{_libdir}/*.so* | ||
%{_bindir}/nemo-transfer-engine | ||
%{_datadir}/dbus-1/services/org.nemo.transferengine.service | ||
%{_datadir}/translations/nemo-transfer-engine_eng_en.qm | ||
|
||
|
||
|
||
%package devel | ||
Summary: Development headers for transfer engine library. | ||
Group: Development/Libraries | ||
Requires: nemo-transferengine = %{version} | ||
|
||
%description -n nemo-transferengine-qt5-devel | ||
%{summary}. | ||
|
||
%files devel | ||
%defattr(-,root,root,-) | ||
%{_includedir}/TransferEngine-qt5/*.h | ||
%{_qt_datadir}/mkspecs/features/nemotransferengine-plugin.prf | ||
%{_libdir}/pkgconfig/nemotransferengine-qt5.pc | ||
|
||
%package ts-devel | ||
Summary: Translation source for Nemo TransferEngine | ||
License: LGPLv2.1 | ||
Group: System Environment/Daemon | ||
|
||
%description ts-devel | ||
Translation source for Nemo TransferEngine | ||
|
||
%files ts-devel | ||
%defattr(-,root,root,-) | ||
%{_datadir}/translations/source/nemo-transfer-engine.ts | ||
|
||
%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/* | ||
|
||
%package doc | ||
Summary: Documentation for Nemo TransferEngine | ||
License: BSD | ||
Group: System Environment/Daemon | ||
|
||
%description doc | ||
Documentation for Nemo TransferEngine | ||
|
||
%files doc | ||
%defattr(-,root,root,-) | ||
%{_datadir}/doc/nemo-transferengine/* | ||
|
||
|
||
|
||
%prep | ||
%setup -q -n %{name}-%{version} | ||
|
||
%build | ||
|
||
%qmake5 | ||
|
||
make %{?jobs:-j%jobs} | ||
make docs | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
mkdir -p %{buildroot}/%{_datadir}/nemo-transferengine | ||
%qmake_install | ||
|
||
mkdir -p %{buildroot}/%{_docdir}/%{name} | ||
cp -R doc/html/* %{buildroot}/%{_docdir}/%{name}/ | ||
|
||
%define def_uid $(grep "^UID_MIN" /etc/login.defs | tr -s " " | cut -d " " -f2) | ||
%define def_user $(getent passwd %def_uid | sed 's/:.*//') | ||
%define db_file /home/%{def_user}/.local/nemo-transferengine/transferdb.sqlite | ||
%define te_pid $(pgrep -f nemo-transfer-engine) | ||
|
||
%post -n nemo-transferengine-qt5 | ||
/sbin/ldconfig | ||
if [ -n "%{te_pid}" ] | ||
then | ||
kill -s 10 %{te_pid} | ||
fi | ||
|
||
exit 0 | ||
|
||
%postun -n nemo-transferengine-qt5 | ||
/sbin/ldconfig | ||
|
||
if [ -f "%{db_file}" ] | ||
then | ||
rm %{db_file} | ||
fi | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters