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