+#
+%define ppp_version 2.4.5
+#
Summary: Mobile broadband modem management service
Name: ModemManager
Version: 0.3
-Release: 2
+Release: 3
License: GPL v2
Group: Networking
Source0: http://ftp.gnome.org/pub/GNOME/sources/ModemManager/0.3/%{name}-%{version}.tar.bz2
BuildRequires: glib2-devel >= 1:2.18.0
BuildRequires: libtool
BuildRequires: pkgconfig
-BuildRequires: ppp-plugin-devel >= 3:2.4.4-2
+BuildRequires: ppp-plugin-devel >= 3:%{ppp_version}
BuildRequires: udev-glib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%{__autoconf}
%{__autoheader}
%{__automake}
-%configure
+%configure \
+ --with-pppd-plugin-dir=%{_libdir}/pppd/%{ppp_version}
%{__make}
%install
%attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-option.so
%attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-sierra.so
%attr(755,root,root) %{_libdir}/ModemManager/libmm-plugin-zte.so
-%attr(755,root,root) %{_libdir}/pppd/*.*.*/mm-test-pppd-plugin.so
+%attr(755,root,root) %{_libdir}/pppd/%{ppp_version}/mm-test-pppd-plugin.so
/lib/udev/rules.d/77-mm-ericsson-mbm.rules
/lib/udev/rules.d/77-mm-longcheer-port-types.rules
/lib/udev/rules.d/77-mm-zte-port-types.rules