ModemManager-vl.spec 12 KB

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