]>
Commit | Line | Data |
---|---|---|
1083a40b | 1 | # |
a085f693 | 2 | # Conditional build: |
3 | %bcond_with verbose # verbose build | |
4 | ||
9bbddbd1 | 5 | %define snap 1102779 |
8d80d541 | 6 | %define qtver 4.6.2 |
a085f693 | 7 | %define origname networkmanagement |
8 | ||
9 | Summary: Plasma applet that controls network via NetworkManager backend | |
10 | Name: kde4-knetworkmanager | |
837ab99b | 11 | Version: 4.4.1 |
a085f693 | 12 | Release: 0.%{snap}.1 |
13 | License: GPL v2 | |
14 | Group: X11/Applications | |
15 | # svn co svn://anonsvn.kde.org/home/kde/trunk/kdereview/networkmanagement | |
16 | Source0: %{origname}-%{snap}.tar.gz | |
9bbddbd1 | 17 | # Source0-md5: d7a4cdc57cd107713c44a99896615264 |
a085f693 | 18 | URL: http://en.opensuse.org/Projects/KNetworkManager |
837ab99b | 19 | BuildRequires: NetworkManager-devel >= 0.7.1 |
a085f693 | 20 | BuildRequires: Qt3Support-devel >= %{qtver} |
21 | BuildRequires: QtCore-devel >= %{qtver} | |
22 | BuildRequires: QtDBus-devel >= %{qtver} | |
23 | BuildRequires: QtGui-devel >= %{qtver} | |
24 | BuildRequires: QtNetwork-devel >= %{qtver} | |
25 | BuildRequires: QtXml-devel >= %{qtver} | |
26 | BuildRequires: automoc4 >= 0.9.88 | |
837ab99b | 27 | BuildRequires: cmake >= 2.8.0 |
a085f693 | 28 | BuildRequires: kde4-kdebase-workspace-devel >= %{version} |
29 | BuildRequires: kde4-kdelibs-devel >= %{version} | |
30 | BuildRequires: qt4-build >= %{qtver} | |
31 | BuildRequires: qt4-qmake >= %{qtver} | |
32 | BuildRequires: rpmbuild(macros) >= 1.293 | |
33 | Obsoletes: kde4-kdeplasma-addons-networkmanager | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
37 | Plasma applet that controls network via NetworkManager backend. | |
38 | ||
39 | %prep | |
40 | %setup -q -n %{origname}-%{snap} | |
41 | ||
42 | %build | |
43 | install -d build | |
44 | cd build | |
45 | %cmake \ | |
46 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ | |
47 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
48 | %{?with_verbose:-DCMAKE_VERBOSE_MAKEFILE=true} \ | |
49 | -DDBUS_SYSTEM_POLICY_DIR=/etc/dbus-1/system.d \ | |
50 | %if "%{_lib}" != "lib" | |
51 | -DLIB_SUFFIX=64 \ | |
52 | %endif | |
53 | ../ | |
54 | ||
55 | %{__make} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} -C build install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %post -p /sbin/ldconfig | |
67 | %postun -p /sbin/ldconfig | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc DESIGN TODO | |
1083a40b | 72 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*.conf |
a085f693 | 73 | %attr(755,root,root) %{_bindir}/knetworkmanager |
74 | %attr(755,root,root) %ghost %{_libdir}/libknmclient.so.? | |
75 | %attr(755,root,root) %{_libdir}/libknmclient.so.*.*.* | |
76 | %attr(755,root,root) %ghost %{_libdir}/libknminternals.so.? | |
77 | %attr(755,root,root) %{_libdir}/libknminternals.so.*.*.* | |
78 | %attr(755,root,root) %ghost %{_libdir}/libknmservice.so.? | |
79 | %attr(755,root,root) %{_libdir}/libknmservice.so.*.*.* | |
80 | %attr(755,root,root) %ghost %{_libdir}/libknmui.so.? | |
81 | %attr(755,root,root) %{_libdir}/libknmui.so.*.*.* | |
82 | %attr(755,root,root) %{_libdir}/libknm_nm.so | |
83 | %attr(755,root,root) %{_libdir}/libsolidcontrolfuture.so | |
84 | %attr(755,root,root) %{_libdir}/kde4/kcm_networkmanagement.so | |
85 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_openvpnui.so | |
86 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_vpncui.so | |
87 | %attr(755,root,root) %{_libdir}/kde4/plasma_applet_networkmanagement.so | |
88 | %attr(755,root,root) %{_libdir}/kde4/libexec/networkmanagement_configshell | |
89 | %attr(755,root,root) %{_libdir}/kde4/kcm_networkmanagement_tray.so | |
90 | %attr(755,root,root) %{_libdir}/kde4/kded_networkmanagement.so | |
91 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_novellvpnui.so | |
92 | %attr(755,root,root) %{_libdir}/kde4/networkmanagement_pptpui.so | |
93 | %{_datadir}/apps/networkmanagement | |
94 | %{_datadir}/kde4/services/*.desktop | |
95 | %{_datadir}/kde4/services/kded/*.desktop | |
96 | %{_datadir}/kde4/servicetypes/*.desktop | |
1083a40b | 97 | %{_desktopdir}/kde4/knetworkmanager.desktop |
a085f693 | 98 | %{_datadir}/autostart/kde4-knetworkmanager-autostart.desktop |
99 | %{_iconsdir}/oxygen/*x*/devices/network-wireless*.png | |
100 | %{_iconsdir}/oxygen/*x*/devices/network-wired-activated.png | |
101 | %{_iconsdir}/hicolor/32x32/apps/knetworkmanager.png |