mms-engine.spec 2.01 KB
Newer Older
Slava Monich's avatar
Slava Monich committed
1 2
Name:     mms-engine
Summary:  MMS engine
Slava Monich's avatar
Slava Monich committed
3
Version:  1.0.8
Slava Monich's avatar
Slava Monich committed
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
11
#Requires: ImageMagick
Slava Monich's avatar
Slava Monich committed
12 13

BuildRequires: python
Slava Monich's avatar
Slava Monich committed
14
BuildRequires: file-devel
15
BuildRequires: libjpeg-turbo-devel
Slava Monich's avatar
Slava Monich committed
16 17
BuildRequires: pkgconfig(glib-2.0) >= 2.32
BuildRequires: pkgconfig(libsoup-2.4) >= 2.38
18
BuildRequires: pkgconfig(libwspcodec) >= 2.1
19 20
#BuildRequires: pkgconfig(ImageMagick)
BuildRequires:  pkgconfig(Qt5Gui)
Slava Monich's avatar
Slava Monich committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

%define src mms-engine
%define exe mms-engine
%define dbusname org.nemomobile.MmsEngine
%define dbusconfig %{_datadir}/dbus-1/system-services
%define dbuspolicy %{_sysconfdir}/dbus-1/system.d

# Activation method:
%define pushconfig %{_sysconfdir}/ofono/push_forwarder.d
#define pushconfig {_sysconfdir}/push-agent
#Requires: push-agent >= 1.1

%description
MMS engine

36 37 38 39 40 41 42
%package tools
Summary:    MMS tools
Group:      Development/Tools

%description tools
MMS command line utilities

Slava Monich's avatar
Slava Monich committed
43 44 45 46
%prep
%setup -q -n %{name}-%{version}

%build
Slava Monich's avatar
Slava Monich committed
47
make -C %{src} KEEP_SYMBOLS=1 release
48 49
make -C mms-dump KEEP_SYMBOLS=1 release
make -C mms-send KEEP_SYMBOLS=1 release
Slava Monich's avatar
Slava Monich committed
50 51 52 53 54 55 56

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{dbusconfig}
mkdir -p %{buildroot}%{dbuspolicy}
mkdir -p %{buildroot}%{pushconfig}
57
mkdir -p %{buildroot}%{_prefix}/bin/
Slava Monich's avatar
Slava Monich committed
58 59 60 61
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
62 63
cp mms-dump/build/release/mms-dump %{buildroot}%{_prefix}/bin/
cp mms-send/build/release/mms-send %{buildroot}%{_prefix}/bin/
Slava Monich's avatar
Slava Monich committed
64 65 66 67 68 69 70

%files
%defattr(-,root,root,-)
%config %{dbuspolicy}/%{dbusname}.conf
%config %{pushconfig}/%{dbusname}.conf
%{dbusconfig}/%{dbusname}.service
%{_sbindir}/%{exe}
71 72 73

%files tools
%defattr(-,root,root,-)
74 75
%{_prefix}/bin/mms-dump
%{_prefix}/bin/mms-send