From: Erwan Le Blond Date: Thu, 2 May 2013 12:40:16 +0000 (+0200) Subject: fix packaging and add ofono.manifest X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8138c99efe395480e87ccdf70edc89d864691c19;p=platform%2Fupstream%2Fofono.git fix packaging and add ofono.manifest --- diff --git a/packaging/ofono.manifest b/packaging/ofono.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/ofono.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/ofono.spec b/packaging/ofono.spec index 19b5627..2fa49c4 100644 --- a/packaging/ofono.spec +++ b/packaging/ofono.spec @@ -6,7 +6,7 @@ Summary: Open Source Telephony Url: http://ofono.org Group: Telephony/Cellular Source0: %{name}-%{version}.tar.bz2 - +Source1012: ofono.manifest BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool @@ -16,9 +16,14 @@ BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libudev) >= 145 BuildRequires: pkgconfig(mobile-broadband-provider-info) Requires: dbus +Requires: systemd +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd + %description -Oprn Source Telephony stack. +Open Source Telephony stack. %package devel Summary: Headers for oFono @@ -42,12 +47,14 @@ Scripts for testing oFono and its functionality %prep %setup -q +cp %{SOURCE1012} . + %build autoreconf --force --install %configure --disable-static \ --enable-test \ - --with-systemdunitdir="/usr/lib/systemd/system" + --with-systemdunitdir=%{_unitdir} make %{?_smp_mflags} @@ -57,13 +64,17 @@ make %{?_smp_mflags} mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/network.target.wants ln -s ../ofono.service %{buildroot}%{_prefix}/lib/systemd/system/network.target.wants/ofono.service +%install_service multi-user.target.wants ofono.service + %docs_package %files -%config(noreplace) %{_sysconfdir}/dbus-1/system.d/*.conf +%manifest ofono.manifest +%config %{_sysconfdir}/dbus-1/system.d/*.conf %{_sbindir}/* -%{_prefix}/lib/systemd/system/network.target.wants/ofono.service -%{_prefix}/lib/systemd/system/ofono.service +%{_unitdir}/network.target.wants/ofono.service +%{_unitdir}/ofono.service +%{_unitdir}/multi-user.target.wants/ofono.service %config %{_sysconfdir}/ofono/phonesim.conf %files devel