Skip to content

Latest commit

 

History

History
127 lines (98 loc) · 2.89 KB

transfer-engine-qt5.spec

File metadata and controls

127 lines (98 loc) · 2.89 KB
 
1
Name: nemo-transferengine-qt5
May 13, 2013
May 13, 2013
2
Version: 0.0.17
3
4
5
6
7
8
9
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)
May 13, 2013
May 13, 2013
10
11
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Sql)
May 13, 2013
May 13, 2013
12
BuildRequires: pkgconfig(Qt5Test)
13
14
15
16
BuildRequires: pkgconfig(accounts-qt5)
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig(mlite5)
BuildRequires: pkgconfig(quillmetadata-qt5)
May 13, 2013
May 13, 2013
17
BuildRequires: qt5-qttools-linguist
May 13, 2013
May 13, 2013
18
19
20
BuildRequires: qt5-qttools-qthelp-devel
BuildRequires: qt5-plugin-platform-minimal
BuildRequires: qt5-plugin-sqldriver-sqlite
21
22
23
24
25
26
27
%description
%{summary}.
%files
%defattr(-,root,root,-)
%dir %{_datadir}/nemo-transferengine
May 13, 2013
May 13, 2013
28
%{_libdir}/*.so.*
29
30
31
32
33
34
35
36
37
%{_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
May 13, 2013
May 13, 2013
38
Requires: nemo-transferengine-qt5 = %{version}
39
40
41
42
43
44
%description -n nemo-transferengine-qt5-devel
%{summary}.
%files devel
%defattr(-,root,root,-)
May 13, 2013
May 13, 2013
45
%{_libdir}/*.so
46
%{_includedir}/TransferEngine-qt5/*.h
May 13, 2013
May 13, 2013
47
%{_datadir}/qt5/mkspecs/features/nemotransferengine-plugin-qt5.prf
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
%{_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,-)
May 13, 2013
May 13, 2013
84
%{_datadir}/doc/nemo-transferengine-qt5/*
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
%prep
%setup -q -n %{name}-%{version}
%build
%qmake5
make %{?jobs:-j%jobs}
make docs
%install
rm -rf %{buildroot}
May 13, 2013
May 13, 2013
100
mkdir -p %{buildroot}/%{_datadir}/nemo-transferengine
May 13, 2013
May 13, 2013
101
%qmake5_install
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
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