From 800efb20f9aa78142660392891253dcfd67cd969 Mon Sep 17 00:00:00 2001 From: Daniel Williams Date: Fri, 29 Aug 2008 14:07:37 +0000 Subject: [PATCH] - Resurrect from the dead --- NetworkManager-pptp.spec | 128 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 NetworkManager-pptp.spec diff --git a/NetworkManager-pptp.spec b/NetworkManager-pptp.spec new file mode 100644 index 0000000..fc8ac52 --- /dev/null +++ b/NetworkManager-pptp.spec @@ -0,0 +1,128 @@ +%define nm_version 1:0.7.0-0.11.svn4022 +%define dbus_version 1.1 +%define gtk2_version 2.10.0 +%define ppp_version 2.2.4 +%define shared_mime_version 0.16-3 + +%define svn_snapshot svn4027 + +Summary: NetworkManager VPN integration for pptp +Name: NetworkManager-pptp +Epoch: 1 +Version: 0.7.0 +Release: 0.10.%{svn_snapshot}%{?dist} +License: GPLv2+ +Group: System Environment/Base +URL: http://www.gnome.org/projects/NetworkManager/ +Source: %{name}-%{version}.%{svn_snapshot}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +BuildRequires: gtk2-devel >= %{gtk2_version} +BuildRequires: dbus-devel >= %{dbus_version} +BuildRequires: NetworkManager-devel >= %{nm_version} +BuildRequires: NetworkManager-glib-devel >= %{nm_version} +BuildRequires: GConf2-devel +BuildRequires: libgnomeui-devel +BuildRequires: gnome-keyring-devel +BuildRequires: libglade2-devel +BuildRequires: intltool gettext +BuildRequires: ppp-devel >= %{ppp_version} + +Requires: gtk2 >= %{gtk2_version} +Requires: dbus >= %{dbus_version} +Requires: NetworkManager >= %{nm_version} +Requires: ppp >= %{ppp_version} +Requires: shared-mime-info >= %{shared_mime_version} +Requires: GConf2 +Requires: gnome-keyring +Requires(post): /sbin/ldconfig desktop-file-utils +Requires(postun): /sbin/ldconfig desktop-file-utils + + +%description +This package contains software for integrating PPTP VPN support with +the NetworkManager and the GNOME desktop. + +%prep +%setup -q + + +%build +%configure --enable-more-warnings=yes +make %{?_smp_mflags} + +%install + +make install DESTDIR=$RPM_BUILD_ROOT + +rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la +rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.a + +rm -f %{buildroot}%{_libdir}/pppd/2.4.4/nm-pptp-pppd-plugin.la +rm -f %{buildroot}%{_libdir}/pppd/2.4.4/nm-pptp-pppd-plugin.a + +%find_lang %{name} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +/sbin/ldconfig +/usr/bin/update-desktop-database &> /dev/null || : +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + + +%postun +/sbin/ldconfig +/usr/bin/update-desktop-database &> /dev/null || : +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + + +%files -f %{name}.lang +%defattr(-, root, root) + +%doc AUTHORS ChangeLog +%{_libdir}/NetworkManager/lib*.so* +%{_libexecdir}/nm-pptp-auth-dialog +%{_sysconfdir}/dbus-1/system.d/nm-pptp-service.conf +%{_sysconfdir}/NetworkManager/VPN/nm-pptp-service.name +%{_libexecdir}/nm-pptp-service +%{_libdir}/pppd/2.4.4/nm-pptp-pppd-plugin.so +%{_datadir}/gnome-vpn-properties/pptp/nm-pptp-dialog.glade +%{_datadir}/applications/nm-pptp.desktop +%{_datadir}/icons/hicolor/48x48/apps/gnome-mime-application-x-pptp-settings.png + +%changelog +* Fri Aug 29 2008 Dan Williams 1:0.7.0-10.svn4027 +- Resurrect from the dead + +* Mon Apr 21 2008 Lubomir Kundrak 0.6.4-2 +- Take Dan Horak's review into account (#443807): +- Do not install versioned .so-s for properties module +- Do not do useless ldconfigs +- Remove leftover dependencies + +* Mon Apr 21 2008 Lubomir Kundrak 0.6.4-1 +- Branch this for EPEL, go back to: +- 0.6.4 +- NetworkManager-pptp from NetworkManager-ppp_vpn +- Install pppd plugin correctly + +* Wed Nov 21 2007 Lubomir Kundrak 0.7.0-0.3.svn3549 +- Update against trunk + +* Wed Nov 21 2007 Lubomir Kundrak 0.7.0-0.2.svn3085 +- Do not exclude .so for NM, and properly generate the .name file + +* Thu Nov 15 2007 Lubomir Kundrak 0.7.0-0.1.svn3085 +- Initial packaging attempt, inspired by NetworkManager-openvpn +- Nearly completly rewritten spec, all bugs in it are solely my responsibility +