]>
Commit | Line | Data |
---|---|---|
1083a40b | 1 | # |
a085f693 | 2 | # Conditional build: |
3 | %bcond_with verbose # verbose build | |
4 | ||
7e7dd977 | 5 | %define qtver 4.6.4 |
a085f693 | 6 | %define origname networkmanagement |
7 | ||
8 | Summary: Plasma applet that controls network via NetworkManager backend | |
9 | Name: kde4-knetworkmanager | |
685f9e94 BZ |
10 | Version: 0.9.0.10 |
11 | Release: 1 | |
d2cd6ab5 | 12 | Epoch: 1 |
a085f693 | 13 | License: GPL v2 |
14 | Group: X11/Applications | |
6248bc32 | 15 | # git clone git://anongit.kde.org/networkmanagement.git |
7e7dd977 | 16 | # git checkout nm09 (until is merged to master) |
685f9e94 BZ |
17 | Source0: ftp://ftp.kde.org/pub/kde/unstable/networkmanagement/%{version}/src/%{origname}-%{version}.tar.xz |
18 | # Source0-md5: 9b75b0b731a75fd6c43a85d087d36bf4 | |
6a7387ce | 19 | Patch0: %{origname}-kill_rest_sr.patch |
a085f693 | 20 | URL: http://en.opensuse.org/Projects/KNetworkManager |
685f9e94 | 21 | BuildRequires: NetworkManager-devel >= 2:0.9.8 |
a085f693 | 22 | BuildRequires: Qt3Support-devel >= %{qtver} |
23 | BuildRequires: QtCore-devel >= %{qtver} | |
24 | BuildRequires: QtDBus-devel >= %{qtver} | |
25 | BuildRequires: QtGui-devel >= %{qtver} | |
26 | BuildRequires: QtNetwork-devel >= %{qtver} | |
27 | BuildRequires: QtXml-devel >= %{qtver} | |
28 | BuildRequires: automoc4 >= 0.9.88 | |
837ab99b | 29 | BuildRequires: cmake >= 2.8.0 |
a085f693 | 30 | BuildRequires: kde4-kdebase-workspace-devel >= %{version} |
31 | BuildRequires: kde4-kdelibs-devel >= %{version} | |
e60e58f6 | 32 | BuildRequires: mobile-broadband-provider-info-devel |
7e7dd977 AM |
33 | BuildRequires: openconnect-devel >= 3.12 |
34 | BuildRequires: openssl-devel | |
a085f693 | 35 | BuildRequires: qt4-build >= %{qtver} |
36 | BuildRequires: qt4-qmake >= %{qtver} | |
37 | BuildRequires: rpmbuild(macros) >= 1.293 | |
d2cd6ab5 | 38 | Requires: NetworkManager >= 2:0.9.0 |
a085f693 | 39 | Obsoletes: kde4-kdeplasma-addons-networkmanager |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %description | |
43 | Plasma applet that controls network via NetworkManager backend. | |
44 | ||
45 | %prep | |
6248bc32 | 46 | %setup -q -n %{origname}-%{version} |
6a7387ce | 47 | %patch0 -p1 |
a085f693 | 48 | |
49 | %build | |
50 | install -d build | |
51 | cd build | |
52 | %cmake \ | |
53 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ | |
54 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
55 | %{?with_verbose:-DCMAKE_VERBOSE_MAKEFILE=true} \ | |
56 | -DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d \ | |
57 | %if "%{_lib}" != "lib" | |
58 | -DLIB_SUFFIX=64 \ | |
59 | %endif | |
60 | ../ | |
61 | ||
62 | %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %{__make} -C build install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
5071f8da BZ |
70 | %find_lang %{name} --all-name |
71 | ||
a085f693 | 72 | %clean |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %post -p /sbin/ldconfig | |
76 | %postun -p /sbin/ldconfig | |
77 | ||
5071f8da | 78 | %files -f %{name}.lang |
a085f693 | 79 | %defattr(644,root,root,755) |
80 | %doc DESIGN TODO | |
5071f8da BZ |
81 | #%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*.conf |
82 | ||
a085f693 | 83 | %attr(755,root,root) %{_libdir}/kde4/kcm_networkmanagement.so |
a085f693 | 84 | %attr(755,root,root) %{_libdir}/kde4/kcm_networkmanagement_tray.so |
85 | %attr(755,root,root) %{_libdir}/kde4/kded_networkmanagement.so | |
5071f8da | 86 | %attr(755,root,root) %{_libdir}/kde4/libexec/networkmanagement_configshell |
a085f693 | 87 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_novellvpnui.so |
7e7dd977 | 88 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_openconnectui.so |
5071f8da | 89 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_openvpnui.so |
a085f693 | 90 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_pptpui.so |
29856f56 | 91 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_strongswanui.so |
e60e58f6 | 92 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_vpncui.so |
5071f8da BZ |
93 | %attr(755,root,root) %{_libdir}/kde4/plasma_applet_networkmanagement.so |
94 | %attr(755,root,root) %{_libdir}/kde4/plasma_engine_networkmanagement.so | |
7e7dd977 | 95 | %attr(755,root,root) %{_libdir}/kde4/solid_networkmanager09.so |
5071f8da BZ |
96 | %attr(755,root,root) %{_libdir}/libknmclient.so |
97 | %attr(755,root,root) %{_libdir}/libknmclient.so.*.*.* | |
98 | %attr(755,root,root) %ghost %{_libdir}/libknmclient.so.? | |
99 | %attr(755,root,root) %{_libdir}/libknminternals.so | |
100 | %attr(755,root,root) %{_libdir}/libknminternals.so.*.*.* | |
101 | %attr(755,root,root) %ghost %{_libdir}/libknminternals.so.? | |
102 | %attr(755,root,root) %{_libdir}/libknm_nm.so | |
103 | %attr(755,root,root) %{_libdir}/libknmservice.so | |
104 | %attr(755,root,root) %{_libdir}/libknmservice.so.*.*.* | |
105 | %attr(755,root,root) %ghost %{_libdir}/libknmservice.so.? | |
106 | %attr(755,root,root) %{_libdir}/libknmui.so | |
107 | %attr(755,root,root) %{_libdir}/libknmui.so.*.*.* | |
108 | %attr(755,root,root) %ghost %{_libdir}/libknmui.so.? | |
109 | %attr(755,root,root) %{_libdir}/libsolidcontrolfuture.so | |
110 | %attr(755,root,root) %{_libdir}/libsolidcontrolnm09ifaces.so | |
111 | %attr(755,root,root) %{_libdir}/libsolidcontrolnm09ifaces.so.*.*.* | |
112 | %attr(755,root,root) %ghost %{_libdir}/libsolidcontrolnm09ifaces.so.? | |
113 | %attr(755,root,root) %{_libdir}/libsolidcontrolnm09.so | |
114 | %attr(755,root,root) %{_libdir}/libsolidcontrolnm09.so.*.*.* | |
115 | %attr(755,root,root) %ghost %{_libdir}/libsolidcontrolnm09.so.? | |
116 | ||
117 | %{_datadir}/apps/desktoptheme/default/icons/network2.svgz | |
a085f693 | 118 | %{_datadir}/apps/networkmanagement |
119 | %{_datadir}/kde4/services/*.desktop | |
120 | %{_datadir}/kde4/services/kded/*.desktop | |
121 | %{_datadir}/kde4/servicetypes/*.desktop | |
7e7dd977 | 122 | %{_datadir}/kde4/services/solidbackends/*.desktop |
a085f693 | 123 | %{_iconsdir}/oxygen/*x*/devices/network-wireless*.png |
124 | %{_iconsdir}/oxygen/*x*/devices/network-wired-activated.png | |
29856f56 | 125 | %{_iconsdir}/oxygen/*x*/devices/network-defaultroute.png |