[kde-plasma-nm] Initial import

Jan Grulich jgrulich at fedoraproject.org
Tue Jun 4 20:51:19 UTC 2013


commit 3b69e22cad564c23e22a39adcaadc34687ef4922
Author: Jan Grulich <jgrulich at redhat.com>
Date:   Tue Jun 4 22:51:01 2013 +0200

    Initial import

 .gitignore                  |    1 +
 kde-plasma-nm.spec          |  124 +++++++++++++++++++++++++++++++++++++++++++
 plasma-nm-disable-kcm.patch |   12 ++++
 sources                     |    1 +
 4 files changed, 138 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a0b15ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/plasma-nm-0.9.3.0-git649e5f4.tar.bz2
diff --git a/kde-plasma-nm.spec b/kde-plasma-nm.spec
new file mode 100644
index 0000000..f469566
--- /dev/null
+++ b/kde-plasma-nm.spec
@@ -0,0 +1,124 @@
+%global         git_commit 649e5f4
+Name:           kde-plasma-nm
+Version:        0.9.3.0
+Release:        1.20130604git%{git_commit}%{?dist}
+Summary:        Plasma applet written in QML for managing network connections
+License:        LGPLv2+ and GPLv2+
+URL:            https://projects.kde.org/projects/playground/network/plasma-nm
+# Package from git snapshots, create example:
+# git clone git://anongit.kde.org/plasma-nm-qt.git
+# cd plasma-nm
+# git archive --prefix=plasma-nm-%{version}/ master | bzip2 > ../%{name}-%{version}-git%{git_commit}.tar.bz2
+Source0:        plasma-nm-%{version}-git%{git_commit}.tar.bz2
+
+# Disable KCM
+Patch0:  plasma-nm-disable-kcm.patch
+
+BuildRequires:  gettext
+BuildRequires:  kdelibs4-devel
+BuildRequires:  kde-workspace-devel
+BuildRequires:  libmm-qt-devel >= 0.6.0
+BuildRequires:  libnm-qt-devel >= 0.9.8
+
+Requires:  NetworkManager >= 0.9.8
+Requires:  ModemManager >= 0.6.0
+Requires:  mobile-broadband-provider-info
+
+%description
+Plasma applet and editor for managing your network connections in KDE 4 using
+the default NetworkManager service.
+
+%if 0%{?fedora} || 0%{?epel}
+%package openvpn
+Summary:        OpenVPN support for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release} 
+Requires:       NetworkManager-openvpn
+%description openvpn
+%{summary}.
+
+%package vpnc
+Summary:        Vpnc support for %{name} 
+Requires:       %{name}%{?_isa} = %{version}-%{release} 
+Requires:       NetworkManager-vpnc
+%description vpnc
+%{summary}.
+%endif
+
+%prep
+%setup -qn plasma-nm-%{version}-git%{git_commit}
+%patch0 -p1 -b .disable-kcm
+
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%{cmake} ..
+popd
+
+make %{?_smp_mflags} -C %{_target_platform}
+
+
+%install
+rm -rf %{buildroot}
+
+make install/fast  DESTDIR=%{buildroot} -C %{_target_platform}
+
+find %{buildroot}%{_kde4_datadir} -name "kcm_network.mo" -exec rm -f {} \;
+
+%find_lang plasma_applet_org.kde.plasma-nm
+%find_lang plasmanm-kded
+%find_lang kde-nm-connection-editor
+%find_lang libplasmanm-editor
+%find_lang plasmanm_vpncui
+%find_lang plasmanm_openvpnui
+
+# clean unpackaged VPN related files in RHEL
+%if 0%{?rhel}
+rm -fv %{buildroot}%{_kde4_libdir}/kde4/plasmanm_open*
+rm -fv %{buildroot}%{_kde4_libdir}/kde4/nplasmanm_open*
+rm -fv %{buildroot}%{_kde4_datadir}/kde4/services/plasmanm_open*
+rm -fv %{buildroot}%{_kde4_datadir}/kde4/services/plasmanm_vpnc*
+%endif
+
+
+%files -f plasma_applet_org.kde.plasma-nm.lang -f plasmanm-kded.lang -f kde-nm-connection-editor.lang -f libplasmanm-editor.lang
+%defattr(-,root,root,-)
+# kde-nm-connection-editor
+%{_kde4_bindir}/kde-nm-connection-editor
+%{_kde4_libdir}/libplasmanm-editor.so
+%{_kde4_datadir}/kde4/apps/kde-nm-connection-editor/kde-nm-connection-editorui.rc
+%{_kde4_datadir}/applications/kde4/kde-nm-connection-editor.desktop
+# plasma-nm applet
+%{_kde4_libdir}/kde4/imports/org/kde/plasmanm/libplasmanmplugins.so
+%{_kde4_libdir}/kde4/imports/org/kde/plasmanm/qmldir
+%dir %{_kde4_datadir}/kde4/apps/plasma/plasmoids/org.kde.plasma-nm/
+%{_kde4_datadir}/kde4/apps/plasma/plasmoids/org.kde.plasma-nm/contents
+%{_kde4_datadir}/kde4/apps/plasma/plasmoids/org.kde.plasma-nm/metadata.desktop
+%{_kde4_datadir}/kde4/services/plasma-applet-nm.desktop
+%{_kde4_libdir}/kde4/plugins/designer/plasmanmwidgets.so
+%{_kde4_appsdir}/desktoptheme/default/icons/plasma-nm.svgz
+# plasma-nm notifications
+%{_kde4_datadir}/kde4/services/plasma_nm_notifications.desktop
+%{_kde4_libdir}/kde4/plasma_nm_notifications.so
+%{_kde4_datadir}/kde4/apps/plasma-nm/plasma-nm.notifyrc
+# plasma-nm kded
+%{_kde4_libdir}/kde4/kded_plasmanm.so
+%{_kde4_datadir}/kde4/services/kded/plasmanm.desktop
+# plasma-nm other
+%{_kde4_libdir}/libplasmanm-internal.so
+%{_kde4_datadir}/kde4/servicetypes/plasma-nm-vpnuiplugin.desktop
+
+
+%if 0%{?fedora} || 0%{?epel}
+%files openvpn -f plasmanm_openvpnui.lang
+%{_kde4_libdir}/kde4/plasmanm_openvpnui.so
+%{_kde4_datadir}/kde4/services/plasmanm_openvpnui.desktop
+
+%files vpnc -f plasmanm_vpncui.lang
+%{_kde4_libdir}/kde4/plasmanm_vpncui.so
+%{_kde4_datadir}/kde4/services/plasmanm_vpncui.desktop
+%endif
+
+%changelog
+* Tue Jun 4 2013 Jan Grulich <jgrulich at redhat.com> - 0.9.3.0-1.20130604git649e5f4
+- Initial package
+- Based on git snapshot 649e5f4b3e5b4f30df19aa0f908234355912eea7
diff --git a/plasma-nm-disable-kcm.patch b/plasma-nm-disable-kcm.patch
new file mode 100644
index 0000000..bb1fbb2
--- /dev/null
+++ b/plasma-nm-disable-kcm.patch
@@ -0,0 +1,12 @@
+diff -upr plasma-nm_new/CMakeLists.txt plasma-nm/CMakeLists.txt
+--- plasma-nm_new/CMakeLists.txt	2013-05-31 14:25:50.000000000 +0200
++++ plasma-nm/CMakeLists.txt	2013-06-03 22:18:57.551179183 +0200
+@@ -54,7 +54,7 @@ add_subdirectory(declarative-plugins)
+ add_subdirectory(editor)
+ add_subdirectory(vpn)
+ add_subdirectory(kded)
+-add_subdirectory(kcm)
++#add_subdirectory(kcm)
+ add_subdirectory(settings)
+ 
+ include(MacroOptionalAddSubdirectory)
diff --git a/sources b/sources
index e69de29..b5ce8fd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+26d8cdf8314d4d065bd855dd82cb57ba  plasma-nm-0.9.3.0-git649e5f4.tar.bz2


More information about the scm-commits mailing list