ModemManager-vl.spec 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. #%define snapshot .git20100720
  2. %define snapshot %{nil}
  3. %define ppp_version 2.4.5
  4. Summary: Mobile broadband modem management service
  5. Summary(ja): Mobile broadband modem management service
  6. Name: ModemManager
  7. Version: 0.5
  8. Release: 1%{?snapshot}%{?_dist_release}
  9. License: GPLv2+
  10. Group: System Environment/Base
  11. URL: http://www.gnome.org/projects/NetworkManager/
  12. #
  13. # Source from git://anongit.freedesktop.org/ModemManager/ModemManager
  14. # tarball built with:
  15. # ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  16. # make distcheck
  17. #
  18. Source: %{name}-%{version}%{?snapshot}.tar.xz
  19. Patch1: %{name}-0.3-jp-modems.patch
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  21. Requires: dbus-glib
  22. Requires: glib2
  23. BuildRequires: glib2-devel >= 2.26.1
  24. BuildRequires: dbus-glib-devel >= 0.92
  25. BuildRequires: libgudev-devel >= 143
  26. BuildRequires: ppp = %{ppp_version}
  27. BuildRequires: ppp-devel = %{ppp_version}
  28. BuildRequires: polkit-devel
  29. BuildRequires: automake autoconf intltool libtool
  30. # for xsltproc
  31. BuildRequires: libxslt
  32. %description
  33. The ModemManager service provides a consistent API to operate many different
  34. modems, including mobile broadband (3G) devices.
  35. %prep
  36. %setup -q
  37. %patch1 -p1 -b .jp-modems
  38. %build
  39. autoreconf -i
  40. pppddir=`ls -1d %{_libdir}/pppd/2*`
  41. %configure \
  42. --enable-more-warnings=yes \
  43. --with-udev-base-dir=/lib/udev \
  44. --with-tests=yes \
  45. --with-docs=yes \
  46. --disable-static \
  47. --with-pppd-plugin-dir=$pppddir \
  48. --with-polkit=no
  49. make %{?_smp_mflags}
  50. %check
  51. make check
  52. %install
  53. make install DESTDIR=$RPM_BUILD_ROOT
  54. rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
  55. rm -f $RPM_BUILD_ROOT%{_libdir}/pppd/2.*/*.la
  56. rm -f $RPM_BUILD_ROOT%{_libdir}/pppd/2.*/*.so
  57. rm -f $RPM_BUILD_ROOT%{_includedir}/mm/mm-modem.h
  58. %post
  59. /sbin/ldconfig
  60. touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
  61. %postun
  62. /sbin/ldconfig
  63. if [ $1 -eq 0 ]; then
  64. touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
  65. gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
  66. fi
  67. %posttrans
  68. gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
  69. %files
  70. %defattr(0644, root, root, 0755)
  71. %doc COPYING README
  72. %{_sysconfdir}/dbus-1/system.d/org.freedesktop.ModemManager.conf
  73. %{_datadir}/dbus-1/interfaces/*.xml
  74. %{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager.service
  75. %attr(0755,root,root) %{_sbindir}/modem-manager
  76. %dir %{_libdir}/%{name}
  77. %attr(0755,root,root) %{_libdir}/%{name}/*.so*
  78. /lib/udev/rules.d/*
  79. %{_datadir}/polkit-1/actions/*.policy
  80. %{_datadir}/icons/hicolor/22x22/apps/modem-manager.png
  81. %changelog
  82. * Tue Aug 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5-1
  83. - new upstream release
  84. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.998-1
  85. - delete Patch20
  86. * Wed May 04 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4-2
  87. - update Patch20 (ModemManager-0.4-git20110428.patch)
  88. - delete Patch21,22
  89. * Sat Jan 01 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4-1
  90. - update to 0.4
  91. - add Patch20 (ModemManager-0.4-git20100720.patch)
  92. - add Patch21 (ModemManager-0.4-glib2-2.25.12.patch)
  93. - add Patch22 (ModemManager-0.4-dbus-glib-property-access-bug.patch)
  94. * Fri May 07 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3-1.git20100502
  95. - initial build for Vine Linux
  96. * Sun May 2 2010 Dan Williams <dcbw@redhat.com> - 0.3-11.git20100502
  97. - core: ignore some failures on disconnect (rh #578280)
  98. - core: add support for platform serial devices
  99. - gsm: better Blackberry DUN support
  100. - gsm: periodically poll access technology
  101. - cdma: prevent crash on modem removal (rh #571921)
  102. - mbm: add support for Sony Ericsson MD400, Dell 5541, and Dell 5542 modems
  103. - novatel: better signal strength reporting on CDMA cards
  104. - novatel: add access technology and mode preference support on GSM cards
  105. - zte: fix mode preference retrieval
  106. - longcheer: add support for Zoom modems (4595, 4596, etc)
  107. - longcheer: add access technology and mode preference support
  108. * Fri Apr 30 2010 Matthias Clasen <mclasen@redhat.com> - 0.3-10.git20100409
  109. - Silence %%post
  110. - Update scripts
  111. * Fri Apr 9 2010 Dan Williams <dcbw@redhat.com> - 0.3-9.git20100409
  112. - gsm: fix parsing Blackberry supported character sets response
  113. * Thu Apr 8 2010 Dan Williams <dcbw@redhat.com> - 0.3-8.git20100408
  114. - mbm: fix retrieval of current allowed mode
  115. - gsm: fix initialization issues with some devices (like Blackberries)
  116. * Mon Apr 5 2010 Dan Williams <dcbw@redhat.com> - 0.3-7.git20100405
  117. - core: fix detection of some generic devices (rh #579247)
  118. - core: fix detection regression of some Huawei devices in 0.3-5
  119. - cdma: periodically poll registration state and signal quality
  120. - cdma: really fix registration detection on various devices (rh #569067)
  121. * Wed Mar 31 2010 Dan Williams <dcbw@redhat.com> - 0.3-6.git20100331
  122. - core: fix PPC/SPARC/etc builds
  123. * Wed Mar 31 2010 Dan Williams <dcbw@redhat.com> - 0.3-5.git20100331
  124. - core: only export a modem when all its ports are handled (rh #540438, rh #569067, rh #552121)
  125. - cdma: handle signal quality requests while connected for more devices
  126. - cdma: handle serving system requests while connected for more devices
  127. - gsm: determine current access technology earlier
  128. - huawei: work around automatic registration issues on some devices
  129. * Tue Mar 23 2010 Dan Williams <dcbw@redhat.com> - 0.3-4.git20100323
  130. - core: ensure enabled modems are disabled when MM stops
  131. - core: better capability detection for Blackberry devices (rh #573510)
  132. - cdma: better checking of registration states (rh #540438, rh #569067, rh #552121)
  133. - gsm: don't block modem when it requires PIN2
  134. - option: fix access technology updates
  135. * Wed Mar 17 2010 Dan Williams <dcbw@redhat.com> - 0.3-3.git20100317
  136. - mbm: add device IDs for C3607w
  137. - mbm: fail earlier during connection failures
  138. - mbm: fix username/password authentication when checked by the network
  139. - hso: implement asynchronous signal quality updates
  140. - option: implement asynchronous signal quality updates
  141. - novatel: correctly handle CDMA signal quality
  142. - core: basic PolicyKit support
  143. - core: fix direct GSM registration information requests
  144. - core: general GSM PIN/PUK unlock fixes
  145. - core: poll GSM registration state internally for quicker status updates
  146. - core: implement GSM 2G/3G preference
  147. - core: implement GSM roaming allowed/disallowed preference
  148. - core: emit signals on access technology changes
  149. - core: better handling of disconnections
  150. - core: fix simple CDMA status requests
  151. * Thu Feb 11 2010 Dan Williams <dcbw@redhat.com> - 0.3-2.git20100211
  152. - core: startup speed improvements
  153. - core: GSM PIN checking improvements
  154. - huawei: fix EVDO-only connections on various devices (rh #553199)
  155. - longcheer: add support for more devices
  156. * Tue Jan 19 2010 Dan Williams <dcbw@redhat.com> - 0.3-1.git20100119
  157. - anydata: new plugin for AnyData CDMA modems (rh #547294)
  158. - core: fix crashes when devices are unplugged during operation (rh #553953)
  159. - cdma: prefer primary port for status/registration queries
  160. - core: fix probing/detection of some PIN-locked devices (rh #551376)
  161. - longcheer: add plugin for Alcatel (X020, X030, etc) and other devices
  162. - gsm: fix Nokia N80 network scan parsing
  163. * Fri Jan 1 2010 Dan Williams <dcbw@redhat.com> - 0.2.997-5.git20100101
  164. - core: fix apparent hangs by limiting retried serial writes
  165. - gsm: ensure modem state is reset when disabled
  166. * Fri Dec 18 2009 Dan Williams <dcbw@redhat.com> - 0.2.997-4.git20091218
  167. - sierra: fix CDMA registration detection in some cases (rh #547513)
  168. * Wed Dec 16 2009 Dan Williams <dcbw@redhat.com> - 0.2.997-3.git20091216
  169. - sierra: ensure CDMA device is powered up when trying to use it
  170. - cdma: better signal quality parsing (fixes ex Huawei EC168C)
  171. - zte: handle unsolicited messages better during probing
  172. * Mon Dec 14 2009 Dan Williams <dcbw@redhat.com> - 0.2.997-2.git20091214
  173. - cdma: fix signal strength reporting on some devices
  174. - cdma: better registration state detection when dialing (ex Sierra 5275)
  175. - option: always use the correct tty for dialing commands
  176. * Mon Dec 7 2009 Dan Williams <dcbw@redhat.com> - 0.2.997-1
  177. - core: fix reconnect after manual disconnect (rh #541314)
  178. - core: fix various segfaults during registration
  179. - core: fix probing of various modems on big-endian architectures (ie PPC)
  180. - core: implement modem states to avoid duplicate operations
  181. - hso: fix authentication for Icera-based devices like iCON 505
  182. - zte: use correct port for new devices
  183. - nozomi: fix detection
  184. * Thu Nov 5 2009 Dan Williams <dcbw@redhat.com> - 0.2-4.20091105
  185. - Update to latest git
  186. - core: fix pppd 2.4.5 errors about 'baudrate 0'
  187. - cdma: wait for network registration before trying to connect
  188. - gsm: add cell access technology reporting
  189. - gsm: allow longer-running network scans
  190. - mbm: various fixes for Ericsson F3507g/F3607gw/Dell 5530
  191. - nokia: don't power down phones on disconnect
  192. - hso: fix disconnection/disable
  193. * Wed Aug 26 2009 Dan Williams <dcbw@redhat.com> - 0.2-3.20090826
  194. - Fixes for Motorola and Ericsson devices
  195. - Fixes for CDMA "serving-system" command parsing
  196. * Fri Jul 31 2009 Matthias Clasen <mclasen@redhat.com>
  197. - Fix a typo in one of the udev rules files
  198. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-2.20090707
  199. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  200. * Tue Jul 7 2009 Dan Williams <dcbw@redhat.com> - 0.2-1.20090707
  201. - Fix source repo location
  202. - Fix directory ownership
  203. * Tue Jul 7 2009 Dan Williams <dcbw@redhat.com> - 0.2-0.20090707
  204. - Initial version