]>
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 | |
6e69af9d | 10 | Version: 0.9.0.4 |
6248bc32 | 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) |
6248bc32 | 17 | Source0: ftp://ftp.kde.org/pub/kde/unstable/networkmanagement/%{version}/src/%{origname}-%{version}.tar.bz2 |
6e69af9d | 18 | # Source0-md5: b2e016a293e412807ec9571617d53b84 |
a085f693 | 19 | URL: http://en.opensuse.org/Projects/KNetworkManager |
ffaa452c | 20 | BuildRequires: NetworkManager-devel >= 2:0.9.0 |
a085f693 | 21 | BuildRequires: Qt3Support-devel >= %{qtver} |
22 | BuildRequires: QtCore-devel >= %{qtver} | |
23 | BuildRequires: QtDBus-devel >= %{qtver} | |
24 | BuildRequires: QtGui-devel >= %{qtver} | |
25 | BuildRequires: QtNetwork-devel >= %{qtver} | |
26 | BuildRequires: QtXml-devel >= %{qtver} | |
27 | BuildRequires: automoc4 >= 0.9.88 | |
837ab99b | 28 | BuildRequires: cmake >= 2.8.0 |
a085f693 | 29 | BuildRequires: kde4-kdebase-workspace-devel >= %{version} |
30 | BuildRequires: kde4-kdelibs-devel >= %{version} | |
e60e58f6 | 31 | BuildRequires: mobile-broadband-provider-info-devel |
7e7dd977 AM |
32 | BuildRequires: openconnect-devel >= 3.12 |
33 | BuildRequires: openssl-devel | |
a085f693 | 34 | BuildRequires: qt4-build >= %{qtver} |
35 | BuildRequires: qt4-qmake >= %{qtver} | |
36 | BuildRequires: rpmbuild(macros) >= 1.293 | |
d2cd6ab5 | 37 | Requires: NetworkManager >= 2:0.9.0 |
a085f693 | 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 | |
6248bc32 | 45 | %setup -q -n %{origname}-%{version} |
a085f693 | 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 | ||
5071f8da BZ |
68 | %find_lang %{name} --all-name |
69 | ||
a085f693 | 70 | %clean |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
5071f8da | 76 | %files -f %{name}.lang |
a085f693 | 77 | %defattr(644,root,root,755) |
78 | %doc DESIGN TODO | |
5071f8da BZ |
79 | #%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*.conf |
80 | ||
a085f693 | 81 | %attr(755,root,root) %{_libdir}/kde4/kcm_networkmanagement.so |
a085f693 | 82 | %attr(755,root,root) %{_libdir}/kde4/kcm_networkmanagement_tray.so |
83 | %attr(755,root,root) %{_libdir}/kde4/kded_networkmanagement.so | |
5071f8da | 84 | %attr(755,root,root) %{_libdir}/kde4/libexec/networkmanagement_configshell |
a085f693 | 85 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_novellvpnui.so |
7e7dd977 | 86 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_openconnectui.so |
5071f8da | 87 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_openvpnui.so |
a085f693 | 88 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_pptpui.so |
29856f56 | 89 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_strongswanui.so |
e60e58f6 | 90 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_vpncui.so |
5071f8da BZ |
91 | %attr(755,root,root) %{_libdir}/kde4/plasma_applet_networkmanagement.so |
92 | %attr(755,root,root) %{_libdir}/kde4/plasma_engine_networkmanagement.so | |
7e7dd977 | 93 | %attr(755,root,root) %{_libdir}/kde4/solid_networkmanager09.so |
5071f8da BZ |
94 | %attr(755,root,root) %{_libdir}/libknmclient.so |
95 | %attr(755,root,root) %{_libdir}/libknmclient.so.*.*.* | |
96 | %attr(755,root,root) %ghost %{_libdir}/libknmclient.so.? | |
97 | %attr(755,root,root) %{_libdir}/libknminternals.so | |
98 | %attr(755,root,root) %{_libdir}/libknminternals.so.*.*.* | |
99 | %attr(755,root,root) %ghost %{_libdir}/libknminternals.so.? | |
100 | %attr(755,root,root) %{_libdir}/libknm_nm.so | |
101 | %attr(755,root,root) %{_libdir}/libknmservice.so | |
102 | %attr(755,root,root) %{_libdir}/libknmservice.so.*.*.* | |
103 | %attr(755,root,root) %ghost %{_libdir}/libknmservice.so.? | |
104 | %attr(755,root,root) %{_libdir}/libknmui.so | |
105 | %attr(755,root,root) %{_libdir}/libknmui.so.*.*.* | |
106 | %attr(755,root,root) %ghost %{_libdir}/libknmui.so.? | |
107 | %attr(755,root,root) %{_libdir}/libsolidcontrolfuture.so | |
108 | %attr(755,root,root) %{_libdir}/libsolidcontrolnm09ifaces.so | |
109 | %attr(755,root,root) %{_libdir}/libsolidcontrolnm09ifaces.so.*.*.* | |
110 | %attr(755,root,root) %ghost %{_libdir}/libsolidcontrolnm09ifaces.so.? | |
111 | %attr(755,root,root) %{_libdir}/libsolidcontrolnm09.so | |
112 | %attr(755,root,root) %{_libdir}/libsolidcontrolnm09.so.*.*.* | |
113 | %attr(755,root,root) %ghost %{_libdir}/libsolidcontrolnm09.so.? | |
114 | ||
115 | %{_datadir}/apps/desktoptheme/default/icons/network2.svgz | |
a085f693 | 116 | %{_datadir}/apps/networkmanagement |
117 | %{_datadir}/kde4/services/*.desktop | |
118 | %{_datadir}/kde4/services/kded/*.desktop | |
119 | %{_datadir}/kde4/servicetypes/*.desktop | |
7e7dd977 | 120 | %{_datadir}/kde4/services/solidbackends/*.desktop |
a085f693 | 121 | %{_iconsdir}/oxygen/*x*/devices/network-wireless*.png |
122 | %{_iconsdir}/oxygen/*x*/devices/network-wired-activated.png | |
29856f56 | 123 | %{_iconsdir}/oxygen/*x*/devices/network-defaultroute.png |