17bbf81
%define snapshot .git20100628
13470e9
%define ppp_version 2.4.5
dc94a44
dc94a44
Summary: Mobile broadband modem management service
dc94a44
Name: ModemManager
17bbf81
Version: 0.4
17bbf81
Release: 2%{snapshot}%{?dist}
dc94a44
#
dc94a44
# Source from git://anongit.freedesktop.org/ModemManager/ModemManager
dc94a44
# tarball built with:
dc94a44
#    ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
dc94a44
#    make distcheck
dc94a44
#
fd897c9
Source: %{name}-%{version}%{snapshot}.tar.bz2
dc94a44
License: GPLv2+
dc94a44
Group: System Environment/Base
dc94a44
dc94a44
URL: http://www.gnome.org/projects/NetworkManager/
dc94a44
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
13470e9
Requires: dbus-glib >= 0.82
13470e9
Requires: glib2 >= 2.18
13470e9
BuildRequires: glib2-devel >= 2.18
13470e9
BuildRequires: dbus-glib-devel >= 0.82
dc94a44
BuildRequires: libgudev-devel >= 143
13470e9
BuildRequires: ppp = %{ppp_version}
13470e9
BuildRequires: ppp-devel = %{ppp_version}
6c9e2f8
BuildRequires: polkit-devel
6c9e2f8
BuildRequires: automake autoconf intltool libtool
6a6644c
# for xsltproc
6a6644c
BuildRequires: libxslt
dc94a44
dc94a44
%description
dc94a44
The ModemManager service provides a consistent API to operate many different
dc94a44
modems, including mobile broadband (3G) devices.
dc94a44
dc94a44
%prep
dc94a44
%setup -q
dc94a44
dc94a44
%build
c05318e
c05318e
pppddir=`ls -1d %{_libdir}/pppd/2*`
dc94a44
%configure \
dc94a44
	--enable-more-warnings=yes \
dc94a44
	--with-udev-base-dir=/lib/udev \
13470e9
	--with-tests=yes \
13470e9
	--with-docs=yes \
c05318e
	--disable-static \
6c9e2f8
	--with-pppd-plugin-dir=$pppddir \
17bbf81
	--with-polkit=no \
17bbf81
	--with-dist-version=%{version}-%{release}
dc94a44
dc94a44
make %{?_smp_mflags}
dc94a44
dc94a44
%check
dc94a44
make check
dc94a44
dc94a44
%install
dc94a44
make install DESTDIR=$RPM_BUILD_ROOT
dc94a44
dc94a44
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
c05318e
rm -f $RPM_BUILD_ROOT%{_libdir}/pppd/2.*/*.la
c05318e
rm -f $RPM_BUILD_ROOT%{_libdir}/pppd/2.*/*.so
dc94a44
6c9e2f8
%post
6c9e2f8
/sbin/ldconfig
5850658
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
dc94a44
6c9e2f8
%postun
6c9e2f8
/sbin/ldconfig
5850658
if [ $1 -eq 0 ]; then
5850658
  touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
5850658
  gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
6c9e2f8
fi
dc94a44
5850658
%posttrans
5850658
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
5850658
dc94a44
%files
dc94a44
%defattr(0644, root, root, 0755)
dc94a44
%doc COPYING README
dc94a44
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ModemManager.conf
dc94a44
%{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager.service
dc94a44
%attr(0755,root,root) %{_sbindir}/modem-manager
dc94a44
%dir %{_libdir}/%{name}
dc94a44
%attr(0755,root,root) %{_libdir}/%{name}/*.so*
dc94a44
/lib/udev/rules.d/*
6c9e2f8
%{_datadir}/polkit-1/actions/*.policy
6c9e2f8
%{_datadir}/icons/hicolor/22x22/apps/modem-manager.png
dc94a44
dc94a44
%changelog
17bbf81
* Mon Jun 28 2010 Dan Williams <dcbw@redhat.com> - 0.4-2.git20100628
17bbf81
- core: fix crash during probing when a plugin doesn't support all ports (rh #603294)
17bbf81
- gsm: better registration state checking when devices don't support AT+CREG (Blackberries)
17bbf81
- gsm: add support for getting remaining unlock retry counts
17bbf81
17bbf81
* Tue Jun 22 2010 Dan Williams <dcbw@redhat.com> - 0.4-1.git20100622
17bbf81
- core: fix occasional crash when device is unplugged (rh #591728)
17bbf81
- core: ensure errors are correctly returned when device is unplugged
17bbf81
- core: ensure claimed ports don't fall back to Generic (rh #597296)
17bbf81
- gsm: better compatibility with various phones
17bbf81
- mbm: better detection of connection errors
17bbf81
- simtech: add plugin for Simtech devices (like Airlink 3GU)
17bbf81
- sierra: fix CDMA roaming detection
17bbf81
cea52fa
* Fri May  7 2010 Dan Williams <dcbw@redhat.com> - 0.3-13.git20100507
cea52fa
- core: fix crash when plugging in some Sierra and Option NV devices (rh #589798)
cea52fa
- gsm: better compatibility with various Sony Ericsson phones
cea52fa
- longcheer: better support for Alcatel X060s modems
cea52fa
17aac2e
* Tue May  4 2010 Dan Williams <dcbw@redhat.com> - 0.3-12.git20100504
17aac2e
- core: fix data port assignments (rh #587400)
17aac2e
5850658
* Sun May  2 2010 Dan Williams <dcbw@redhat.com> - 0.3-11.git20100502
5850658
- core: ignore some failures on disconnect (rh #578280)
5850658
- core: add support for platform serial devices
5850658
- gsm: better Blackberry DUN support
5850658
- gsm: periodically poll access technology
5850658
- cdma: prevent crash on modem removal (rh #571921)
5850658
- mbm: add support for Sony Ericsson MD400, Dell 5541, and Dell 5542 modems
5850658
- novatel: better signal strength reporting on CDMA cards
5850658
- novatel: add access technology and mode preference support on GSM cards
5850658
- zte: fix mode preference retrieval
5850658
- longcheer: add support for Zoom modems (4595, 4596, etc)
5850658
- longcheer: add access technology and mode preference support
5850658
5850658
* Fri Apr 30 2010 Matthias Clasen <mclasen@redhat.com> - 0.3-10.git20100409
5850658
- Silence %%post
5850658
- Update scripts
5850658
9dc4727
* Fri Apr  9 2010 Dan Williams <dcbw@redhat.com> - 0.3-9.git20100409
9dc4727
- gsm: fix parsing Blackberry supported character sets response
9dc4727
e00b850
* Thu Apr  8 2010 Dan Williams <dcbw@redhat.com> - 0.3-8.git20100408
e00b850
- mbm: fix retrieval of current allowed mode
e00b850
- gsm: fix initialization issues with some devices (like Blackberries)
e00b850
106f46b
* Mon Apr  5 2010 Dan Williams <dcbw@redhat.com> - 0.3-7.git20100405
106f46b
- core: fix detection of some generic devices (rh #579247)
106f46b
- core: fix detection regression of some Huawei devices in 0.3-5
106f46b
- cdma: periodically poll registration state and signal quality
106f46b
- cdma: really fix registration detection on various devices (rh #569067)
106f46b
d6d516a
* Wed Mar 31 2010 Dan Williams <dcbw@redhat.com> - 0.3-6.git20100331
d6d516a
- core: fix PPC/SPARC/etc builds
d6d516a
341e87e
* Wed Mar 31 2010 Dan Williams <dcbw@redhat.com> - 0.3-5.git20100331
341e87e
- core: only export a modem when all its ports are handled (rh #540438, rh #569067, rh #552121)
341e87e
- cdma: handle signal quality requests while connected for more devices
341e87e
- cdma: handle serving system requests while connected for more devices
341e87e
- gsm: determine current access technology earlier
341e87e
- huawei: work around automatic registration issues on some devices
341e87e
6c9e2f8
* Tue Mar 23 2010 Dan Williams <dcbw@redhat.com> - 0.3-4.git20100323
6c9e2f8
- core: ensure enabled modems are disabled when MM stops
6c9e2f8
- core: better capability detection for Blackberry devices (rh #573510)
6c9e2f8
- cdma: better checking of registration states (rh #540438, rh #569067, rh #552121)
6c9e2f8
- gsm: don't block modem when it requires PIN2
6c9e2f8
- option: fix access technology updates
6c9e2f8
6c9e2f8
* Wed Mar 17 2010 Dan Williams <dcbw@redhat.com> - 0.3-3.git20100317
6c9e2f8
- mbm: add device IDs for C3607w
6c9e2f8
- mbm: fail earlier during connection failures
6c9e2f8
- mbm: fix username/password authentication when checked by the network
6c9e2f8
- hso: implement asynchronous signal quality updates
6c9e2f8
- option: implement asynchronous signal quality updates
6c9e2f8
- novatel: correctly handle CDMA signal quality
6c9e2f8
- core: basic PolicyKit support
6c9e2f8
- core: fix direct GSM registration information requests
6c9e2f8
- core: general GSM PIN/PUK unlock fixes
6c9e2f8
- core: poll GSM registration state internally for quicker status updates
6c9e2f8
- core: implement GSM 2G/3G preference
6c9e2f8
- core: implement GSM roaming allowed/disallowed preference
6c9e2f8
- core: emit signals on access technology changes
6c9e2f8
- core: better handling of disconnections
6c9e2f8
- core: fix simple CDMA status requests
6c9e2f8
6dd206a
* Thu Feb 11 2010 Dan Williams <dcbw@redhat.com> - 0.3-2.git20100211
6dd206a
- core: startup speed improvements
6dd206a
- core: GSM PIN checking improvements
6dd206a
- huawei: fix EVDO-only connections on various devices (rh #553199)
6dd206a
- longcheer: add support for more devices
6dd206a
13470e9
* Tue Jan 19 2010 Dan Williams <dcbw@redhat.com> - 0.3-1.git20100119
13470e9
- anydata: new plugin for AnyData CDMA modems (rh #547294)
13470e9
- core: fix crashes when devices are unplugged during operation (rh #553953)
13470e9
- cdma: prefer primary port for status/registration queries
13470e9
- core: fix probing/detection of some PIN-locked devices (rh #551376)
13470e9
- longcheer: add plugin for Alcatel (X020, X030, etc) and other devices
13470e9
- gsm: fix Nokia N80 network scan parsing
13470e9
c05318e
* Fri Jan  1 2010 Dan Williams <dcbw@redhat.com> - 0.2.997-5.git20100101
c05318e
- core: fix apparent hangs by limiting retried serial writes
c05318e
- gsm: ensure modem state is reset when disabled
c05318e
06d5917
* Fri Dec 18 2009 Dan Williams <dcbw@redhat.com> - 0.2.997-4.git20091218
06d5917
- sierra: fix CDMA registration detection in some cases (rh #547513)
06d5917
84cd924
* Wed Dec 16 2009 Dan Williams <dcbw@redhat.com> - 0.2.997-3.git20091216
84cd924
- sierra: ensure CDMA device is powered up when trying to use it
84cd924
- cdma: better signal quality parsing (fixes ex Huawei EC168C)
84cd924
- zte: handle unsolicited messages better during probing
84cd924
e982add
* Mon Dec 14 2009 Dan Williams <dcbw@redhat.com> - 0.2.997-2.git20091214
e982add
- cdma: fix signal strength reporting on some devices
e982add
- cdma: better registration state detection when dialing (ex Sierra 5275)
84cd924
- option: always use the correct tty for dialing commands
e982add
fd897c9
* Mon Dec  7 2009 Dan Williams <dcbw@redhat.com> - 0.2.997-1
fd897c9
- core: fix reconnect after manual disconnect (rh #541314)
fd897c9
- core: fix various segfaults during registration
fd897c9
- core: fix probing of various modems on big-endian architectures (ie PPC)
fd897c9
- core: implement modem states to avoid duplicate operations
fd897c9
- hso: fix authentication for Icera-based devices like iCON 505
fd897c9
- zte: use correct port for new devices
fd897c9
- nozomi: fix detection
fd897c9
bb3c718
* Thu Nov  5 2009 Dan Williams <dcbw@redhat.com> - 0.2-4.20091105
bb3c718
- Update to latest git
bb3c718
- core: fix pppd 2.4.5 errors about 'baudrate 0'
bb3c718
- cdma: wait for network registration before trying to connect
bb3c718
- gsm: add cell access technology reporting
bb3c718
- gsm: allow longer-running network scans
bb3c718
- mbm: various fixes for Ericsson F3507g/F3607gw/Dell 5530
bb3c718
- nokia: don't power down phones on disconnect
bb3c718
- hso: fix disconnection/disable
bb3c718
56e5de3
* Wed Aug 26 2009 Dan Williams <dcbw@redhat.com> - 0.2-3.20090826
56e5de3
- Fixes for Motorola and Ericsson devices
56e5de3
- Fixes for CDMA "serving-system" command parsing
56e5de3
154e894
* Fri Jul 31 2009 Matthias Clasen <mclasen@redhat.com>
154e894
- Fix a typo in one of the udev rules files
154e894
c54b002
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-2.20090707
c54b002
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c54b002
dc94a44
* Tue Jul 7 2009 Dan Williams <dcbw@redhat.com> - 0.2-1.20090707
dc94a44
- Fix source repo location
dc94a44
- Fix directory ownership
dc94a44
dc94a44
* Tue Jul 7 2009 Dan Williams <dcbw@redhat.com> - 0.2-0.20090707
dc94a44
- Initial version
dc94a44