2 # - add a working(!) pld backend...
3 # - many files are not packaged (including init.d)
5 Summary: Network Manager for GNOME
6 Summary(pl): Zarz±dca sieci dla GNOME
11 Group: X11/Applications
12 Source0: http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/0.5/%{name}-%{version}.tar.bz2
13 # Source0-md5: 3bf0266bf9d1caa7b5962a996a74c1f1
15 Patch0: %{name}-pld.patch
16 BuildRequires: dbus-glib-devel >= 0.33
18 BuildRequires: gnome-panel-devel
19 BuildRequires: hal-devel >= 0.5.2
20 BuildRequires: libiw-devel >= 28
21 BuildRequires: rpmbuild(macros) >= 1.268
22 Requires(post): /sbin/ldconfig
23 Requires(post,preun): /sbin/chkconfig
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Network Manager for GNOME.
32 Zarz±dca sieci dla GNOME.
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
49 DESTDIR=$RPM_BUILD_ROOT
51 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/NetworkManager
53 %find_lang %{name} --with-gnome --all-name
56 rm -rf $RPM_BUILD_ROOT
61 /sbin/chkconfig --add NetworkManager
62 %service NetworkManager restart "NetworkManager daemon"
65 if [ "$1" = "0" ]; then
66 %service NetworkManager stop
67 /sbin/chkconfig --del NetworkManager
70 %postun -p /sbin/ldconfig
72 %files -f %{name}.lang
73 %defattr(644,root,root,755)
74 %doc AUTHORS ChangeLog NEWS README TODO
75 %attr(755,root,root) %{_bindir}/*
76 %attr(755,root,root) %{_datadir}/nm-applet
77 %attr(755,root,root) %{_datadir}/gnome-vpn-properties
78 %attr(755,root,root) %{_libdir}/lib*so.*
79 %attr(754,root,root) /etc/rc.d/init.d/NetworkManager
80 %{_sysconfdir}/dbus-1/system.d/*
81 %{_iconsdir}/*/*/apps/*.png