90 lines
1.8 KiB
RPMSpec
90 lines
1.8 KiB
RPMSpec
|
|
||
|
Name: ofono
|
||
|
Summary: Open Source Telephony
|
||
|
Version: 1.14
|
||
|
Release: 1%{?dist}
|
||
|
|
||
|
License: GPLv2
|
||
|
URL: http://ofono.org/
|
||
|
Source0: http://www.kernel.org/pub/linux/network/ofono/ofono-%{version}.tar.xz
|
||
|
|
||
|
BuildRequires: pkgconfig(glib-2.0)
|
||
|
BuildRequires: pkgconfig(dbus-1)
|
||
|
BuildRequires: pkgconfig(libudev) >= 145
|
||
|
BuildRequires: pkgconfig(bluez)
|
||
|
BuildRequires: pkgconfig(libusb-1.0)
|
||
|
BuildRequires: pkgconfig(mobile-broadband-provider-info)
|
||
|
|
||
|
BuildRequires: systemd
|
||
|
Requires(post): systemd
|
||
|
Requires(preun): systemd
|
||
|
Requires(postun): systemd
|
||
|
|
||
|
%description
|
||
|
oFono.org is a place to bring developers together around designing an
|
||
|
infrastructure for building mobile telephony (GSM/UMTS) applications.
|
||
|
oFono includes a high-level D-Bus API for use by telephony applications.
|
||
|
oFono also includes a low-level plug-in API for integrating with telephony
|
||
|
stacks, cellular modems and storage back-ends.
|
||
|
|
||
|
%package devel
|
||
|
Summary: Development files for oFono
|
||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||
|
%description devel
|
||
|
%{summary}.
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
|
||
|
%build
|
||
|
%configure \
|
||
|
--enable-bluetooth \
|
||
|
--enable-pie \
|
||
|
--disable-silent-rules
|
||
|
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
|
||
|
%install
|
||
|
%make_install
|
||
|
|
||
|
# create/own this
|
||
|
mkdir -p %{buildroot}%{_libdir}/ofono/plugins
|
||
|
|
||
|
|
||
|
%check
|
||
|
make check
|
||
|
|
||
|
|
||
|
%post
|
||
|
%systemd_post ofono.service
|
||
|
|
||
|
%preun
|
||
|
%systemd_preun ofono.service
|
||
|
|
||
|
%postun
|
||
|
%systemd_postun_with_restart ofono.service
|
||
|
|
||
|
%files
|
||
|
%doc COPYING ChangeLog AUTHORS README
|
||
|
%{_sysconfdir}/dbus-1/system.d/ofono.conf
|
||
|
%dir %{_sysconfdir}/ofono/
|
||
|
%config(noreplace) %{_sysconfdir}/ofono/phonesim.conf
|
||
|
%{_sbindir}/ofonod
|
||
|
%{_unitdir}/ofono.service
|
||
|
%{_mandir}/man8/ofonod.8*
|
||
|
%dir %{_libdir}/ofono/
|
||
|
%dir %{_libdir}/ofono/plugins/
|
||
|
|
||
|
%files devel
|
||
|
%{_includedir}/ofono/
|
||
|
%{_libdir}/pkgconfig/ofono.pc
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Tue Feb 04 2014 Rex Dieter <rdieter@fedoraproject.org> 1.14-1
|
||
|
- first try (borrowed from obs)
|
||
|
|