NetworkManager-pptp-vl.spec 6.9 KB

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