NetworkManager-pptp-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. %define nm_version 0.9.8.2
  2. %define dbus_version 1.4.14
  3. %define gtk3_version 3.0.0
  4. %define ppp_version 2.4.5
  5. %define shared_mime_version 0.16
  6. #define svn_snapshot %{nil}
  7. Summary: NetworkManager VPN plugin for pptp
  8. Name: NetworkManager-pptp
  9. Version: 0.9.8.2
  10. Release: 1%{?svn_snapshot}%{?_dist_release}
  11. License: GPLv2+
  12. Group: System Environment/Base
  13. URL: http://www.gnome.org/projects/NetworkManager/
  14. Source: %{name}-%{version}%{?svn_snapshot}.tar.xz
  15. Patch10: %{name}-0.7.1-dbus-permission.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: gtk3-devel >= %{gtk3_version}
  18. BuildRequires: dbus-devel >= %{dbus_version}
  19. BuildRequires: NetworkManager-devel >= %{nm_version}
  20. BuildRequires: NetworkManager-glib-devel >= %{nm_version}
  21. BuildRequires: GConf2-devel
  22. BuildRequires: libgnome-keyring-devel
  23. BuildRequires: libglade2-devel
  24. BuildRequires: intltool gettext
  25. BuildRequires: ppp-devel >= %{ppp_version}
  26. Requires: gtk3 >= %{gtk3_version}
  27. Requires: dbus >= %{dbus_version}
  28. Requires: NetworkManager >= %{nm_version}
  29. Requires: ppp >= %{ppp_version}
  30. Requires: shared-mime-info >= %{shared_mime_version}
  31. Requires: pptp
  32. Requires: GConf2
  33. Requires: libgnome-keyring
  34. Requires(post): /sbin/ldconfig desktop-file-utils
  35. Requires(postun): /sbin/ldconfig desktop-file-utils
  36. Vendor: Project Vine
  37. Distribution: Vine Linux
  38. Packager: daisuke
  39. %description
  40. This package contains software for integrating PPTP VPN support with
  41. the NetworkManager and the GNOME desktop.
  42. %prep
  43. %setup -q
  44. %patch10 -p1
  45. %build
  46. %configure \
  47. --disable-static \
  48. --enable-more-warnings=yes \
  49. --with-pppd-plugin-dir="%{_libdir}/pppd/%{ppp_version}"
  50. make %{?_smp_mflags}
  51. %install
  52. make install DESTDIR=$RPM_BUILD_ROOT
  53. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
  54. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.a
  55. rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/nm-pptp-pppd-plugin.la
  56. rm -f %{buildroot}%{_libdir}/pppd/%{ppp_version}/nm-pptp-pppd-plugin.a
  57. %find_lang %{name}
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %post
  61. /sbin/ldconfig
  62. /usr/bin/update-desktop-database &> /dev/null || :
  63. touch --no-create %{_datadir}/icons/hicolor
  64. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  65. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  66. fi
  67. %postun
  68. /sbin/ldconfig
  69. /usr/bin/update-desktop-database &> /dev/null || :
  70. touch --no-create %{_datadir}/icons/hicolor
  71. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  72. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  73. fi
  74. %files -f %{name}.lang
  75. %defattr(-, root, root)
  76. %doc AUTHORS ChangeLog
  77. %{_libdir}/NetworkManager/lib*.so*
  78. %{_libexecdir}/nm-pptp-auth-dialog
  79. %{_sysconfdir}/dbus-1/system.d/nm-pptp-service.conf
  80. %{_sysconfdir}/NetworkManager/VPN/nm-pptp-service.name
  81. %{_libexecdir}/nm-pptp-service
  82. %{_libdir}/pppd/%{ppp_version}/nm-pptp-pppd-plugin.so
  83. %{_datadir}/gnome-vpn-properties/pptp/nm-pptp-dialog.ui
  84. #%{_datadir}/applications/nm-pptp.desktop
  85. #%{_datadir}/icons/hicolor/48x48/apps/gnome-mime-application-x-pptp-settings.png
  86. %dir %{_datadir}/gnome-vpn-properties/pptp
  87. %changelog
  88. * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-1
  89. - new upstream release
  90. * Fri Aug 17 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6.0-1
  91. - new upstream release
  92. * Wed Nov 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.2.0-1
  93. - new upstream release
  94. * Tue Aug 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.0-1
  95. - new upstream release
  96. - remove Patch0
  97. * Thu Aug 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.999-1
  98. - new upstream release
  99. - change BuildRequires: gtk3-devel instead of gtk2-devel
  100. - add Patch0 (NetworkManager-pptp-0.8.999-gtk_box.patch)
  101. * Wed May 04 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.4-1
  102. - new upstream release
  103. * Sat Jan 01 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.2-1
  104. - new upstream release
  105. - change BuildRequires: libgnome-keyring-devel instead of gnome-keyring-devel
  106. - change Requires: libgnome-keyring instead of gnome-keyring
  107. - add configure option: --with-pppd-plugin-dir="%%{_libdir}/pppd/%%{ppp_version}"
  108. * Mon May 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8-1
  109. - new upstream release
  110. * Mon Aug 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-2
  111. - add Patch10 to fix dbus permission problem
  112. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-1
  113. - initial build for Vine Linux
  114. * Thu Mar 5 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.99-1
  115. - Update to 0.7.1rc3
  116. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.7.0.97-2
  117. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  118. * Thu Feb 19 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.97-1
  119. - Update to 0.7.1rc1
  120. - Set a reasonable MTU
  121. - Ensure 'noauth' is used
  122. - Fix domain-based logins
  123. - Fix saving MPPE values in connection editor
  124. * Sat Jan 3 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0-1.svn16
  125. - Rebuild for updated NetworkManager
  126. - Fix some specfile issues (rh #477153)
  127. - Allow the EAP authentication method
  128. * Fri Nov 21 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-12.svn4326
  129. - Rebuild for updated NetworkManager
  130. * Wed Oct 29 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-12.svn4229
  131. - Fix hang in auth dialog (rh #467007)
  132. * Mon Oct 27 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn4229
  133. - Rebuild for updated NetworkManager
  134. - Ensure that certain PPP options are always overriden
  135. * Sun Oct 12 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn4178
  136. - Rebuild for updated NetworkManager
  137. - Allow changing passwords from the connection editor
  138. * Sun Oct 05 2008 Lubomir Rintel <lkundrak@v3.sk> 1:0.7.0-11.svn4027
  139. - Add pptp dependency (#465644)
  140. * Fri Aug 29 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-10.svn4027
  141. - Resurrect from the dead
  142. * Mon Apr 21 2008 Lubomir Kundrak <lkundrak@redhat.com> 0.6.4-2
  143. - Take Dan Horak's review into account (#443807):
  144. - Do not install versioned .so-s for properties module
  145. - Do not do useless ldconfigs
  146. - Remove leftover dependencies
  147. * Mon Apr 21 2008 Lubomir Kundrak <lkundrak@redhat.com> 0.6.4-1
  148. - Branch this for EPEL, go back to:
  149. - 0.6.4
  150. - NetworkManager-pptp from NetworkManager-ppp_vpn
  151. - Install pppd plugin correctly
  152. * Wed Nov 21 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.7.0-0.3.svn3549
  153. - Update against trunk
  154. * Wed Nov 21 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.7.0-0.2.svn3085
  155. - Do not exclude .so for NM, and properly generate the .name file
  156. * Thu Nov 15 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.7.0-0.1.svn3085
  157. - Initial packaging attempt, inspired by NetworkManager-openvpn
  158. - Nearly completly rewritten spec, all bugs in it are solely my responsibility