network-manager-applet-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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 0.9.8.10
  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: 0.9.10.0
  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}/applications/*.desktop
  110. %{_datadir}/nm-applet/
  111. %{_datadir}/GConf/gsettings/nm-applet.convert
  112. %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
  113. %{_datadir}/icons/hicolor/16x16/apps/*.png
  114. %{_datadir}/icons/hicolor/22x22/apps/*.png
  115. %{_datadir}/icons/hicolor/32x32/apps/*.png
  116. %{_datadir}/icons/hicolor/48x48/apps/*.png
  117. %{_datadir}/icons/hicolor/scalable/apps/*.svg
  118. %{_sysconfdir}/xdg/autostart/nm-applet.desktop
  119. %dir %{_datadir}/gnome-vpn-properties
  120. ##%{_libdir}/gnome-bluetooth/plugins/libnma.so
  121. %{_mandir}/man1/nm-applet.1.gz
  122. %{_mandir}/man1/nm-connection-editor.1.gz
  123. %files -n libnm-gtk
  124. %defattr(-,root,root,-)
  125. %{_libdir}/libnm-gtk.so.*
  126. %{_libdir}/girepository-1.0/NMGtk-1.0.typelib
  127. %dir %{_datadir}/libnm-gtk
  128. %{_datadir}/libnm-gtk/*.ui
  129. %files -n libnm-gtk-devel
  130. %defattr(-,root,root,-)
  131. %{_includedir}/libnm-gtk
  132. %{_libdir}/pkgconfig/libnm-gtk.pc
  133. %{_libdir}/libnm-gtk.so
  134. %{_datadir}/gir-1.0/NMGtk-1.0.gir
  135. %changelog
  136. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.10.0-1
  137. - new upstream release
  138. * Tue Oct 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.9.8.10-2
  139. - moved libnm-gtk to System Environment/Libraries Group
  140. * Fri May 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.10-1
  141. - new upstream release
  142. * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.9-1
  143. - new upstream release
  144. * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.8-1
  145. - new upstream release
  146. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.4-1
  147. - new upstream release
  148. - remove Patch0 (network-manager-applet--0.9.8.2-git20130801.patch)
  149. - add BuildRequires: ModemManager-glib-devel
  150. * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-2
  151. - add Patch0 (network-manager-applet--0.9.8.2-git20130801.patch)
  152. * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-1
  153. - update to 0.9.8.2
  154. - add BuildRequires: libsecret-devel
  155. * Sun Apr 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.0-1
  156. - initial package split from NetworkManager