NetworkManager-pptp-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. %define nm_version 0.8.4.0
  2. %define dbus_version 1.4
  3. %define gtk2_version 2.22.1
  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.8.4
  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.bz2
  15. Patch10: %{name}-0.7.1-dbus-permission.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: gtk2-devel >= %{gtk2_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: gtk2 >= %{gtk2_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. * Wed May 04 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.4-1
  89. - new upstream release
  90. * Sat Jan 01 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.2-1
  91. - new upstream release
  92. - change BuildRequires: libgnome-keyring-devel instead of gnome-keyring-devel
  93. - change Requires: libgnome-keyring instead of gnome-keyring
  94. - add configure option: --with-pppd-plugin-dir="%%{_libdir}/pppd/%%{ppp_version}"
  95. * Mon May 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8-1
  96. - new upstream release
  97. * Mon Aug 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-2
  98. - add Patch10 to fix dbus permission problem
  99. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-1
  100. - initial build for Vine Linux
  101. * Thu Mar 5 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.99-1
  102. - Update to 0.7.1rc3
  103. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.7.0.97-2
  104. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  105. * Thu Feb 19 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.97-1
  106. - Update to 0.7.1rc1
  107. - Set a reasonable MTU
  108. - Ensure 'noauth' is used
  109. - Fix domain-based logins
  110. - Fix saving MPPE values in connection editor
  111. * Sat Jan 3 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0-1.svn16
  112. - Rebuild for updated NetworkManager
  113. - Fix some specfile issues (rh #477153)
  114. - Allow the EAP authentication method
  115. * Fri Nov 21 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-12.svn4326
  116. - Rebuild for updated NetworkManager
  117. * Wed Oct 29 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-12.svn4229
  118. - Fix hang in auth dialog (rh #467007)
  119. * Mon Oct 27 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn4229
  120. - Rebuild for updated NetworkManager
  121. - Ensure that certain PPP options are always overriden
  122. * Sun Oct 12 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn4178
  123. - Rebuild for updated NetworkManager
  124. - Allow changing passwords from the connection editor
  125. * Sun Oct 05 2008 Lubomir Rintel <lkundrak@v3.sk> 1:0.7.0-11.svn4027
  126. - Add pptp dependency (#465644)
  127. * Fri Aug 29 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-10.svn4027
  128. - Resurrect from the dead
  129. * Mon Apr 21 2008 Lubomir Kundrak <lkundrak@redhat.com> 0.6.4-2
  130. - Take Dan Horak's review into account (#443807):
  131. - Do not install versioned .so-s for properties module
  132. - Do not do useless ldconfigs
  133. - Remove leftover dependencies
  134. * Mon Apr 21 2008 Lubomir Kundrak <lkundrak@redhat.com> 0.6.4-1
  135. - Branch this for EPEL, go back to:
  136. - 0.6.4
  137. - NetworkManager-pptp from NetworkManager-ppp_vpn
  138. - Install pppd plugin correctly
  139. * Wed Nov 21 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.7.0-0.3.svn3549
  140. - Update against trunk
  141. * Wed Nov 21 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.7.0-0.2.svn3085
  142. - Do not exclude .so for NM, and properly generate the .name file
  143. * Thu Nov 15 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.7.0-0.1.svn3085
  144. - Initial packaging attempt, inspired by NetworkManager-openvpn
  145. - Nearly completly rewritten spec, all bugs in it are solely my responsibility