NetworkManager-pptp-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. %define nm_version 0.8
  2. %define dbus_version 1.1
  3. %define gtk2_version 2.10.0
  4. %define ppp_version 2.4.4
  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
  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: gnome-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: gnome-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 --disable-static --enable-more-warnings=yes
  47. make %{?_smp_mflags}
  48. %install
  49. make install DESTDIR=$RPM_BUILD_ROOT
  50. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la
  51. rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.a
  52. rm -f %{buildroot}%{_libdir}/pppd/2.4.4/nm-pptp-pppd-plugin.la
  53. rm -f %{buildroot}%{_libdir}/pppd/2.4.4/nm-pptp-pppd-plugin.a
  54. %find_lang %{name}
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. %post
  58. /sbin/ldconfig
  59. /usr/bin/update-desktop-database &> /dev/null || :
  60. touch --no-create %{_datadir}/icons/hicolor
  61. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  62. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  63. fi
  64. %postun
  65. /sbin/ldconfig
  66. /usr/bin/update-desktop-database &> /dev/null || :
  67. touch --no-create %{_datadir}/icons/hicolor
  68. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  69. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  70. fi
  71. %files -f %{name}.lang
  72. %defattr(-, root, root)
  73. %doc AUTHORS ChangeLog
  74. %{_libdir}/NetworkManager/lib*.so*
  75. %{_libexecdir}/nm-pptp-auth-dialog
  76. %{_sysconfdir}/dbus-1/system.d/nm-pptp-service.conf
  77. %{_sysconfdir}/NetworkManager/VPN/nm-pptp-service.name
  78. %{_libexecdir}/nm-pptp-service
  79. %{_libdir}/pppd/2.4.4/nm-pptp-pppd-plugin.so
  80. %{_datadir}/gnome-vpn-properties/pptp/nm-pptp-dialog.glade
  81. #%{_datadir}/applications/nm-pptp.desktop
  82. #%{_datadir}/icons/hicolor/48x48/apps/gnome-mime-application-x-pptp-settings.png
  83. %dir %{_datadir}/gnome-vpn-properties/pptp
  84. %changelog
  85. * Mon May 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8-1
  86. - new upstream release
  87. * Mon Aug 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-2
  88. - add Patch10 to fix dbus permission problem
  89. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-1
  90. - initial build for Vine Linux
  91. * Thu Mar 5 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.99-1
  92. - Update to 0.7.1rc3
  93. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.7.0.97-2
  94. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  95. * Thu Feb 19 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0.97-1
  96. - Update to 0.7.1rc1
  97. - Set a reasonable MTU
  98. - Ensure 'noauth' is used
  99. - Fix domain-based logins
  100. - Fix saving MPPE values in connection editor
  101. * Sat Jan 3 2009 Dan Williams <dcbw@redhat.com> 1:0.7.0-1.svn16
  102. - Rebuild for updated NetworkManager
  103. - Fix some specfile issues (rh #477153)
  104. - Allow the EAP authentication method
  105. * Fri Nov 21 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-12.svn4326
  106. - Rebuild for updated NetworkManager
  107. * Wed Oct 29 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-12.svn4229
  108. - Fix hang in auth dialog (rh #467007)
  109. * Mon Oct 27 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn4229
  110. - Rebuild for updated NetworkManager
  111. - Ensure that certain PPP options are always overriden
  112. * Sun Oct 12 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn4178
  113. - Rebuild for updated NetworkManager
  114. - Allow changing passwords from the connection editor
  115. * Sun Oct 05 2008 Lubomir Rintel <lkundrak@v3.sk> 1:0.7.0-11.svn4027
  116. - Add pptp dependency (#465644)
  117. * Fri Aug 29 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-10.svn4027
  118. - Resurrect from the dead
  119. * Mon Apr 21 2008 Lubomir Kundrak <lkundrak@redhat.com> 0.6.4-2
  120. - Take Dan Horak's review into account (#443807):
  121. - Do not install versioned .so-s for properties module
  122. - Do not do useless ldconfigs
  123. - Remove leftover dependencies
  124. * Mon Apr 21 2008 Lubomir Kundrak <lkundrak@redhat.com> 0.6.4-1
  125. - Branch this for EPEL, go back to:
  126. - 0.6.4
  127. - NetworkManager-pptp from NetworkManager-ppp_vpn
  128. - Install pppd plugin correctly
  129. * Wed Nov 21 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.7.0-0.3.svn3549
  130. - Update against trunk
  131. * Wed Nov 21 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.7.0-0.2.svn3085
  132. - Do not exclude .so for NM, and properly generate the .name file
  133. * Thu Nov 15 2007 Lubomir Kundrak <lkundrak@redhat.com> 0.7.0-0.1.svn3085
  134. - Initial packaging attempt, inspired by NetworkManager-openvpn
  135. - Nearly completly rewritten spec, all bugs in it are solely my responsibility