Update packaging
authorAnas Nashif <anas.nashif@intel.com>
Wed, 13 Feb 2013 14:38:27 +0000 (06:38 -0800)
committerCaiwen Zhang <caiwen.zhang@intel.com>
Tue, 13 Jan 2015 03:02:32 +0000 (11:02 +0800)
packaging/ofono.spec [new file with mode: 0644]

diff --git a/packaging/ofono.spec b/packaging/ofono.spec
new file mode 100644 (file)
index 0000000..19b5627
--- /dev/null
@@ -0,0 +1,75 @@
+Name:           ofono
+Version:        1.12
+Release:        0
+License:        GPL-2.0
+Summary:        Open Source Telephony
+Url:            http://ofono.org
+Group:          Telephony/Cellular
+Source0:        %{name}-%{version}.tar.bz2
+
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  libtool
+BuildRequires:  pkgconfig(bluez) >= 4.85
+BuildRequires:  pkgconfig(dbus-1)
+BuildRequires:  pkgconfig(glib-2.0)
+BuildRequires:  pkgconfig(libudev) >= 145
+BuildRequires:  pkgconfig(mobile-broadband-provider-info)
+Requires:       dbus
+
+%description
+Oprn Source Telephony stack.
+
+%package devel
+Summary:        Headers for oFono
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+
+%description devel
+Development headers and libraries for oFono
+
+%package test
+Summary:        Test Scripts for oFono
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+Requires:       dbus-python
+Requires:       python-gobject
+Requires:       python-xml
+
+%description test
+Scripts for testing oFono and its functionality
+
+%prep
+%setup -q
+
+%build
+autoreconf --force --install
+
+%configure --disable-static \
+    --enable-test \
+    --with-systemdunitdir="/usr/lib/systemd/system"
+
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/network.target.wants
+ln -s ../ofono.service %{buildroot}%{_prefix}/lib/systemd/system/network.target.wants/ofono.service
+
+%docs_package
+
+%files
+%config(noreplace) %{_sysconfdir}/dbus-1/system.d/*.conf
+%{_sbindir}/*
+%{_prefix}/lib/systemd/system/network.target.wants/ofono.service
+%{_prefix}/lib/systemd/system/ofono.service
+%config %{_sysconfdir}/ofono/phonesim.conf
+
+%files devel
+%{_includedir}/ofono/*.h
+%{_libdir}/pkgconfig/ofono.pc
+
+%files test
+%{_libdir}/%{name}/test/*
+