forked from sailfishos/ofono
Compare commits
4 Commits
mer/1.14+g
...
mer/1.14+g
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf6278f5cc | ||
|
|
dd3b0c5aca | ||
|
|
988a759e4c | ||
|
|
555585c17f |
@@ -1,13 +1,5 @@
|
|||||||
#
|
|
||||||
# Do NOT Edit the Auto-generated Part!
|
|
||||||
# Generated by: spectacle version 0.26
|
|
||||||
#
|
|
||||||
|
|
||||||
Name: ofono
|
Name: ofono
|
||||||
|
|
||||||
# >> macros
|
|
||||||
# << macros
|
|
||||||
|
|
||||||
Summary: Open Source Telephony
|
Summary: Open Source Telephony
|
||||||
Version: 1.14
|
Version: 1.14
|
||||||
Release: 1
|
Release: 1
|
||||||
@@ -15,7 +7,6 @@ Group: Communications/Connectivity Adaptation
|
|||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: http://ofono.org
|
URL: http://ofono.org
|
||||||
Source0: http://www.kernel.org/pub/linux/network/ofono/ofono-%{version}.tar.xz
|
Source0: http://www.kernel.org/pub/linux/network/ofono/ofono-%{version}.tar.xz
|
||||||
Source100: ofono.yaml
|
|
||||||
Requires: dbus
|
Requires: dbus
|
||||||
Requires: systemd
|
Requires: systemd
|
||||||
Requires: ofono-configs
|
Requires: ofono-configs
|
||||||
@@ -66,14 +57,10 @@ This package provides default configs for ofono
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}/%{name}
|
%setup -q -n %{name}-%{version}/%{name}
|
||||||
|
|
||||||
# >> setup
|
|
||||||
./bootstrap
|
./bootstrap
|
||||||
# << setup
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# >> build pre
|
|
||||||
autoreconf --force --install
|
autoreconf --force --install
|
||||||
# << build pre
|
|
||||||
|
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
--enable-dundee \
|
--enable-dundee \
|
||||||
@@ -82,35 +69,30 @@ autoreconf --force --install
|
|||||||
|
|
||||||
make %{?jobs:-j%jobs}
|
make %{?jobs:-j%jobs}
|
||||||
|
|
||||||
# >> build post
|
|
||||||
# << build post
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
# >> install pre
|
|
||||||
# << install pre
|
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
# >> install post
|
|
||||||
mkdir -p %{buildroot}/%{_lib}/systemd/system/network.target.wants
|
mkdir -p %{buildroot}/%{_lib}/systemd/system/network.target.wants
|
||||||
ln -s ../ofono.service %{buildroot}/%{_lib}/systemd/system/network.target.wants/ofono.service
|
ln -s ../ofono.service %{buildroot}/%{_lib}/systemd/system/network.target.wants/ofono.service
|
||||||
# << install post
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" -eq 0 ]; then
|
if [ "$1" -eq 0 ]; then
|
||||||
systemctl stop ofono.service
|
systemctl stop ofono.service ||:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload ||:
|
||||||
systemctl reload-or-try-restart ofono.service
|
# Do not restart during update
|
||||||
|
# We don't want to break anything during update
|
||||||
|
# New daemon is taken in use after reboot
|
||||||
|
# systemctl reload-or-try-restart ofono.service ||:
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload ||:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
# >> files
|
|
||||||
%doc COPYING ChangeLog AUTHORS README
|
%doc COPYING ChangeLog AUTHORS README
|
||||||
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/*.conf
|
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/*.conf
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
@@ -122,23 +104,16 @@ systemctl daemon-reload
|
|||||||
%exclude %{_sysconfdir}/ofono/phonesim.conf
|
%exclude %{_sysconfdir}/ofono/phonesim.conf
|
||||||
%doc /usr/share/man/man8/ofonod.8.gz
|
%doc /usr/share/man/man8/ofonod.8.gz
|
||||||
%dir %attr(775,radio,radio) /var/lib/ofono
|
%dir %attr(775,radio,radio) /var/lib/ofono
|
||||||
# << files
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_includedir}/ofono/
|
%{_includedir}/ofono/
|
||||||
%{_libdir}/pkgconfig/ofono.pc
|
%{_libdir}/pkgconfig/ofono.pc
|
||||||
# >> files devel
|
|
||||||
# << files devel
|
|
||||||
|
|
||||||
%files tests
|
%files tests
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/%{name}/test/*
|
%{_libdir}/%{name}/test/*
|
||||||
# >> files tests
|
|
||||||
# << files tests
|
|
||||||
|
|
||||||
%files configs-mer
|
%files configs-mer
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%config /etc/ofono/ril_subscription.conf
|
%config /etc/ofono/ril_subscription.conf
|
||||||
# >> files ofono-configs-mer
|
|
||||||
# << files ofono-configs-mer
|
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
Name: ofono
|
|
||||||
Summary: Open Source Telephony
|
|
||||||
Description: Telephony stack
|
|
||||||
Version: 1.14
|
|
||||||
Release: 1
|
|
||||||
Group: Communications/Connectivity Adaptation
|
|
||||||
License: GPLv2
|
|
||||||
URL: http://ofono.org
|
|
||||||
Sources:
|
|
||||||
- http://www.kernel.org/pub/linux/network/ofono/ofono-%{version}.tar.xz
|
|
||||||
Requires:
|
|
||||||
- dbus
|
|
||||||
PkgBR:
|
|
||||||
- libtool
|
|
||||||
- automake
|
|
||||||
- autoconf
|
|
||||||
PkgConfigBR:
|
|
||||||
- glib-2.0
|
|
||||||
- dbus-1
|
|
||||||
- libudev >= 145
|
|
||||||
- bluez >= 4.85
|
|
||||||
- mobile-broadband-provider-info
|
|
||||||
SetupOptions: -q -n %{name}-%{version}/%{name}
|
|
||||||
ConfigOptions:
|
|
||||||
- --enable-dundee
|
|
||||||
- --enable-test
|
|
||||||
- --with-systemdunitdir="/%{_lib}/systemd/system"
|
|
||||||
SubPackages:
|
|
||||||
- Name: devel
|
|
||||||
Summary: Headers for oFono
|
|
||||||
Group: Development/Libraries
|
|
||||||
Description: Development headers and libraries for oFono
|
|
||||||
Files:
|
|
||||||
- "%{_includedir}/ofono/"
|
|
||||||
- "%{_libdir}/pkgconfig/ofono.pc"
|
|
||||||
|
|
||||||
- Name: tests
|
|
||||||
Summary: Test Scripts for oFono
|
|
||||||
Group: Development/Libraries
|
|
||||||
Description: Scripts for testing oFono and its functionality
|
|
||||||
Obsoletes:
|
|
||||||
- "ofono-test < 1.0"
|
|
||||||
Provides:
|
|
||||||
- "ofono-test >= 1.0"
|
|
||||||
Requires:
|
|
||||||
- dbus-python
|
|
||||||
- pygobject2
|
|
||||||
Files:
|
|
||||||
- "%{_libdir}/%{name}/test/*"
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user