network-manager-applet-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. %define dbus_version 1.4.20
  2. %define dbus_glib_version 0.96
  3. %define gtk3_version 3.10.0
  4. %define wireless_tools_version 29
  5. %define libnl3_version 3.2.14
  6. %define ppp_version 2.4.5
  7. %define applet_version 1.0.6
  8. #define snapshot .git20090414
  9. #define applet_snapshot %{nil}
  10. Name: network-manager-applet
  11. Summary: GNOME applications for use with NetworkManager
  12. Summary(ja): NetworkManager 用 GNOME アプリケーション
  13. Version: 1.0.10
  14. Release: 1%{?snapshot}%{?_dist_release}
  15. Group: Applications/Internet
  16. License: GPLv2+
  17. URL: http://www.gnome.org/projects/NetworkManager/
  18. Source: %{name}-%{version}.tar.xz
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  20. BuildRequires: NetworkManager-glib-devel >= %{version}
  21. BuildRequires: ModemManager-glib-devel
  22. BuildRequires: dbus-devel >= %{dbus_version}
  23. BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
  24. BuildRequires: gtk3-devel
  25. BuildRequires: GConf2-devel
  26. BuildRequires: libgnome-keyring-devel
  27. #BuildRequires: gettext
  28. BuildRequires: libnotify-devel >= 0.7
  29. BuildRequires: libgudev1-devel
  30. BuildRequires: libsecret-devel
  31. BuildRequires: iso-codes
  32. Requires(post): chkconfig
  33. Requires(preun): chkconfig
  34. Requires: libnm-gtk = %{version}-%{release}
  35. Requires: NetworkManager >= %{version}
  36. Requires: dbus
  37. Requires: dbus-glib
  38. Requires: libnotify
  39. Requires: gnome-keyring
  40. Requires: nss
  41. Requires: gnome-icon-theme
  42. Obsoletes: NetworkManager-gnome < 0.9.7.0
  43. Provides: NetworkManager-gnome = 0.9.7.0
  44. Vendor: Project Vine
  45. Distribution: Vine Linux
  46. Packager: Takemikaduchi
  47. %description
  48. This package contains GNOME utilities and applications for use with
  49. NetworkManager, including a panel applet for wireless networks.
  50. %package -n libnm-gtk
  51. Summary: Private libraries for NetworkManager GUI support
  52. Group: System Environment/Libraries
  53. Requires: gtk3 >= %{gtk3_version}
  54. Obsoletes: NetworkManager-gtk < 0.9.7.0
  55. Provides: NetworkManager-gtk = 0.9.7.0
  56. %description -n libnm-gtk
  57. This package contains private libraries to be used only by nm-applet and
  58. the GNOME Control Center.
  59. %package -n libnm-gtk-devel
  60. Summary: Private header files for NetworkManager GUI support
  61. Group: Development/Libraries
  62. Requires: libnm-gtk = %{version}-%{release}
  63. Requires: gtk3-devel
  64. Requires: dbus-glib-devel
  65. Requires: pkgconfig
  66. Obsoletes: NetworkManager-gtk-devel < 0.9.7.0
  67. Provides: NetworkManager-gtk-devel = 0.9.7.0
  68. %description -n libnm-gtk-devel
  69. This package contains private header and pkg-config files to be used only by
  70. nm-applet and the GNOME control center.
  71. %prep
  72. %setup -q
  73. %build
  74. export CFLAGS="$CFLAGS -Wno-error=deprecated-declarations"
  75. NOCONFIGURE=1 ./autogen.sh
  76. %configure --disable-static
  77. make
  78. %install
  79. %{__rm} -rf $RPM_BUILD_ROOT
  80. # install the applet
  81. make install DESTDIR=$RPM_BUILD_ROOT
  82. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  83. mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties
  84. %find_lang nm-applet
  85. %clean
  86. rm -rf $RPM_BUILD_ROOT
  87. %post
  88. touch --no-create %{_datadir}/icons/hicolor
  89. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  90. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  91. fi
  92. %postun
  93. touch --no-create %{_datadir}/icons/hicolor
  94. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  95. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  96. fi
  97. if [ $1 -eq 0 ]; then
  98. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  99. fi
  100. %posttrans
  101. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  102. %post -n libnm-gtk -p /sbin/ldconfig
  103. %postun -n libnm-gtk -p /sbin/ldconfig
  104. %files -f nm-applet.lang
  105. %defattr(-,root,root,0755)
  106. %{_bindir}/nm-applet
  107. %{_bindir}/nm-connection-editor
  108. %{_libexecdir}/nm-applet-migration-tool
  109. %{_datadir}/appdata/org.gnome.nm-connection-editor.appdata.xml
  110. %{_datadir}/applications/*.desktop
  111. %{_datadir}/nm-applet/
  112. %{_datadir}/GConf/gsettings/nm-applet.convert
  113. %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
  114. %{_datadir}/icons/hicolor/16x16/apps/*.png
  115. %{_datadir}/icons/hicolor/22x22/apps/*.png
  116. %{_datadir}/icons/hicolor/32x32/apps/*.png
  117. %{_datadir}/icons/hicolor/48x48/apps/*.png
  118. %{_datadir}/icons/hicolor/scalable/apps/*.svg
  119. %{_sysconfdir}/xdg/autostart/nm-applet.desktop
  120. %dir %{_datadir}/gnome-vpn-properties
  121. ##%{_libdir}/gnome-bluetooth/plugins/libnma.so
  122. %{_mandir}/man1/nm-applet.1.gz
  123. %{_mandir}/man1/nm-connection-editor.1.gz
  124. %files -n libnm-gtk
  125. %defattr(-,root,root,-)
  126. %{_libdir}/libnm-gtk.so.*
  127. %{_libdir}/girepository-1.0/NMGtk-1.0.typelib
  128. %dir %{_datadir}/libnm-gtk
  129. %{_datadir}/libnm-gtk/*.ui
  130. %files -n libnm-gtk-devel
  131. %defattr(-,root,root,-)
  132. %{_includedir}/libnm-gtk
  133. %{_libdir}/pkgconfig/libnm-gtk.pc
  134. %{_libdir}/libnm-gtk.so
  135. %{_datadir}/gir-1.0/NMGtk-1.0.gir
  136. %changelog
  137. * Sun Dec 27 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.10-1
  138. - new upstream release
  139. * Wed Nov 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.8-1
  140. - new upstream release
  141. * Sun Aug 30 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.6-1
  142. - new upstream release
  143. * Mon Jul 20 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.4-1
  144. - new upstream release
  145. * Sat May 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.2-1
  146. - new upstream release
  147. * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.10.2-1
  148. - new upstream release
  149. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.10.0-1
  150. - new upstream release
  151. * Tue Oct 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.8.10-2
  152. - moved libnm-gtk to System Environment/Libraries Group
  153. * Fri May 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.10-1
  154. - new upstream release
  155. * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.9-1
  156. - new upstream release
  157. * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.8-1
  158. - new upstream release
  159. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.4-1
  160. - new upstream release
  161. - remove Patch0 (network-manager-applet--0.9.8.2-git20130801.patch)
  162. - add BuildRequires: ModemManager-glib-devel
  163. * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-2
  164. - add Patch0 (network-manager-applet--0.9.8.2-git20130801.patch)
  165. * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-1
  166. - update to 0.9.8.2
  167. - add BuildRequires: libsecret-devel
  168. * Sun Apr 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.0-1
  169. - initial package split from NetworkManager