Skip to content

Latest commit

 

History

History
91 lines (77 loc) · 2.45 KB

mms-engine.spec

File metadata and controls

91 lines (77 loc) · 2.45 KB
 
Feb 17, 2014
Feb 17, 2014
1
2
Name: mms-engine
Summary: MMS engine
May 2, 2014
May 2, 2014
3
Version: 1.0.15
Feb 17, 2014
Feb 17, 2014
4
5
6
7
8
9
10
Release: 1
Group: Communications/Telephony and IM
License: GPLv2
URL: https://github.com/nemomobile/mms-engine
Source0: %{name}-%{version}.tar.bz2
Requires: dbus
Requires: ofono
Mar 5, 2014
Mar 5, 2014
11
#Requires: ImageMagick
Feb 17, 2014
Feb 17, 2014
12
13
BuildRequires: python
Feb 25, 2014
Feb 25, 2014
14
BuildRequires: file-devel
Apr 17, 2014
Apr 17, 2014
15
16
BuildRequires: libpng-devel
BuildRequires: libexif-devel
Mar 5, 2014
Mar 5, 2014
17
BuildRequires: libjpeg-turbo-devel
Feb 17, 2014
Feb 17, 2014
18
19
BuildRequires: pkgconfig(glib-2.0) >= 2.32
BuildRequires: pkgconfig(libsoup-2.4) >= 2.38
Apr 21, 2014
Apr 21, 2014
20
BuildRequires: pkgconfig(libwspcodec) >= 2.2
Mar 5, 2014
Mar 5, 2014
21
22
#BuildRequires: pkgconfig(ImageMagick)
BuildRequires: pkgconfig(Qt5Gui)
Feb 17, 2014
Feb 17, 2014
23
24
25
%define src mms-engine
%define exe mms-engine
May 13, 2014
May 13, 2014
26
%define schema org.nemomobile.mms.sim
Feb 17, 2014
Feb 17, 2014
27
28
29
%define dbusname org.nemomobile.MmsEngine
%define dbusconfig %{_datadir}/dbus-1/system-services
%define dbuspolicy %{_sysconfdir}/dbus-1/system.d
May 13, 2014
May 13, 2014
30
%define glibschemas %{_datadir}/glib-2.0/schemas
Feb 17, 2014
Feb 17, 2014
31
32
33
34
35
36
37
38
39
# Activation method:
%define pushconfig %{_sysconfdir}/ofono/push_forwarder.d
#define pushconfig {_sysconfdir}/push-agent
#Requires: push-agent >= 1.1
%description
MMS engine
Mar 20, 2014
Mar 20, 2014
40
41
42
43
44
45
46
%package tools
Summary: MMS tools
Group: Development/Tools
%description tools
MMS command line utilities
Feb 17, 2014
Feb 17, 2014
47
48
49
50
%prep
%setup -q -n %{name}-%{version}
%build
Apr 22, 2014
Apr 22, 2014
51
make -C %{src} KEEP_SYMBOLS=1 MMS_ENGINE_VERSION="%{version}" release
Mar 20, 2014
Mar 20, 2014
52
53
make -C mms-dump KEEP_SYMBOLS=1 release
make -C mms-send KEEP_SYMBOLS=1 release
Feb 17, 2014
Feb 17, 2014
54
55
56
57
58
59
60
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{dbusconfig}
mkdir -p %{buildroot}%{dbuspolicy}
mkdir -p %{buildroot}%{pushconfig}
May 13, 2014
May 13, 2014
61
mkdir -p %{buildroot}%{glibschemas}
Mar 21, 2014
Mar 21, 2014
62
mkdir -p %{buildroot}%{_prefix}/bin/
Feb 17, 2014
Feb 17, 2014
63
64
65
66
cp %{src}/build/release/%{exe} %{buildroot}%{_sbindir}/
cp %{src}/%{dbusname}.service %{buildroot}%{dbusconfig}/
cp %{src}/%{dbusname}.dbus.conf %{buildroot}%{dbuspolicy}/%{dbusname}.conf
cp %{src}/%{dbusname}.push.conf %{buildroot}%{pushconfig}/%{dbusname}.conf
May 13, 2014
May 13, 2014
67
cp mms-settings-dconf/spec/%{schema}.gschema.xml %{buildroot}%{glibschemas}/
Mar 21, 2014
Mar 21, 2014
68
69
cp mms-dump/build/release/mms-dump %{buildroot}%{_prefix}/bin/
cp mms-send/build/release/mms-send %{buildroot}%{_prefix}/bin/
Feb 17, 2014
Feb 17, 2014
70
May 13, 2014
May 13, 2014
71
72
73
74
75
76
%post
glib-compile-schemas %{glibschemas}
%postun
glib-compile-schemas %{glibschemas}
Apr 17, 2014
Apr 17, 2014
77
78
79
%check
make -C mms-lib/test test
Feb 17, 2014
Feb 17, 2014
80
81
%files
%defattr(-,root,root,-)
May 13, 2014
May 13, 2014
82
%config %{glibschemas}/%{schema}.gschema.xml
Feb 17, 2014
Feb 17, 2014
83
84
85
86
%config %{dbuspolicy}/%{dbusname}.conf
%config %{pushconfig}/%{dbusname}.conf
%{dbusconfig}/%{dbusname}.service
%{_sbindir}/%{exe}
Mar 20, 2014
Mar 20, 2014
87
88
89
%files tools
%defattr(-,root,root,-)
Mar 21, 2014
Mar 21, 2014
90
91
%{_prefix}/bin/mms-dump
%{_prefix}/bin/mms-send