NetworkManager-pptp-vl.spec 6.6 KB

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