ModemManager-vl.spec 14 KB

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