%define _requires_exceptions devel\(libnss3.*\)\\|devel\(libnspr4.*\)\\|devel\(libsmime3.*\) %define major 0 %define libnm_glib %mklibname nm_glib %{major} %define libnm_glib_devel %mklibname -d nm_glib %define libnm_util %mklibname nm_util %{major} %define libnm_util_devel %mklibname -d nm_util %define rname NetworkManager %define svnrel 3675 Name: networkmanager Summary: Network connection manager and user applications Version: 0.7.0 Release: %mkrel 0.%{svnrel}.3 Group: System/Base License: GPLv2+ URL: http://www.gnome.org/projects/NetworkManager/ Source0: %{rname}-%{version}.svn%{svnrel}.tar.gz Patch0: NetworkManager-0.7.0-64-bit-fix.patch Patch1: NetworkManager-0.7.0-fix-parallel-build.patch Patch2: NetworkManager-0.7.0-optionally-wait-for-network.patch BuildRequires: libnl-devel wpa_supplicant libiw-devel dbus-glib-devel BuildRequires: hal-devel >= 0.5.0 nss-devel intltool BuildRequires: ppp-devel polkit-devel policykit-gnome-devel Requires: wpa_supplicant wireless-tools Obsoletes: dhcdbd Requires(post): rpm-helper Requires(preun):rpm-helper BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description NetworkManager attempts to keep an active network connection available at all times. It is intended only for the desktop use-case, and is not intended for usage on servers. The point of NetworkManager is to make networking configuration and setup as painless and automatic as possible. If using DHCP, NetworkManager is _intended_ to replace default routes, obtain IP addresses from a DHCP server, and change nameservers whenever it sees fit. %package -n %{libnm_util} Summary: Shared library for nm_util Group: System/Libraries Obsoletes: %{mklibname networkmanager-util 0} %description -n %{libnm_util} Shared library for nm_util. %package -n %{libnm_util_devel} Summary: Development files for nm_util Group: Development/C Obsoletes: %{mklibname networkmanager-util 0 -d} Provides: libnm_util-devel = %{version}-%{release} Requires: %libnm_util = %version-%release %description -n %{libnm_util_devel} Development files for nm_util. %package -n %{libnm_glib} Summary: Shared library for nm_glib Group: System/Libraries Obsoletes: %{mklibname networkmanager-glib 0} %description -n %{libnm_glib} This package contains the libraries that make it easier to use some NetworkManager functionality from applications that use glib. %package -n %{libnm_glib_devel} Summary: Development files for nm_glib Group: Development/C Provides: libnm_glib-devel = %{version}-%{release} Obsoletes: %{mklibname networkmanager-glib 0 -d} Requires: %libnm_glib = %version-%release %description -n %{libnm_glib_devel} Development files for nm_glib. %prep %setup -q -n %{rname}-%{version} #%patch0 -p1 -b .64bit %patch1 -p1 -b .parallel %patch2 -p1 -b .waitfornetwork autoreconf -i %build %configure2_5x --disable-static \ --with-distro=mandriva \ --with-mdns-provider=avahi %make %install rm -rf %{buildroot} %makeinstall_std cat > %{buildroot}%{_sysconfdir}/nm-system-settings.conf << EOF [main] plugins=ifcfg-fedora EOF # create a VPN directory install -d %{buildroot}%{_sysconfdir}/%{rname}/VPN install -m755 test/.libs/nm-online -D %{buildroot}%{_bindir}/nm-online %find_lang %{rname} find %{buildroot} -name \*.la|xargs rm -f %clean rm -rf %{buildroot} %post %_post_service %{name} %preun %_preun_service %{name} %if %mdkversion < 200900 %post -n %{libnm_util} -p /sbin/ldconfig %postun -n %{libnm_util} -p /sbin/ldconfig %post -n %{libnm_glib} -p /sbin/ldconfig %postun -n %{libnm_glib} -p /sbin/ldconfig %endif %files -f %{rname}.lang %defattr(-,root,root) %doc AUTHORS CONTRIBUTING ChangeLog NEWS README TODO %{_sysconfdir}/dbus-1/system.d/NetworkManager.conf %{_sysconfdir}/dbus-1/system.d/nm-dhcp-client.conf %{_sysconfdir}/dbus-1/system.d/nm-dispatcher.conf %{_sysconfdir}/dbus-1/system.d/nm-system-settings.conf %{_initrddir}/%{name} #%{_initrddir}/%{rname}dispatcher %{_sbindir}/nm-system-settings %{_sysconfdir}/nm-system-settings.conf %{_sbindir}/%{rname} #%{_sbindir}/%{rname}Dispatcher %dir %{_sysconfdir}/%{rname} %dir %{_sysconfdir}/%{rname}/dispatcher.d %dir %{_sysconfdir}/NetworkManager/VPN %{_bindir}/nm-tool %{_bindir}/nm-online %{_libdir}/nm-dhcp-client.action %{_libdir}/nm-dispatcher.action %{_libexecdir}/nm-dhcp-client.action %{_mandir}/man1/*.1* %{_mandir}/man8/*.8* %dir %{_libdir}/NetworkManager %{_libdir}/NetworkManager/*.so %dir %{_localstatedir}/run/%{rname} %{_libexecdir}/nm-crash-logger %dir %{_datadir}/%{rname} %{_datadir}/%{rname}/gdb-cmd %{_datadir}/dbus-1/system-services/org.freedesktop.NetworkManagerSystemSettings.service %{_datadir}/dbus-1/system-services/org.freedesktop.nm_dispatcher.service %{_datadir}/PolicyKit/policy/*.policy %files -n %{libnm_util} %defattr(-,root,root) %{_libdir}/libnm-util.so.%{major}* %{_libdir}/pppd/*.*.*/nm-pppd-plugin.so %files -n %{libnm_util_devel} %defattr(-,root,root) %dir %{_includedir}/%{rname} %{_includedir}/%{rname}/*.h %{_libdir}/pkgconfig/%{rname}.pc %{_libdir}/pkgconfig/libnm-util.pc %{_libdir}/libnm-util.so %files -n %{libnm_glib} %defattr(-,root,root) %{_libdir}/libnm_glib.so.%{major}* %{_libdir}/libnm_glib_vpn.so.%{major}* %files -n %{libnm_glib_devel} %defattr(-,root,root) %dir %{_includedir}/libnm-glib %{_includedir}/libnm-glib/*.h %{_libdir}/pkgconfig/libnm_glib.pc %{_libdir}/libnm_glib.so %{_libdir}/libnm_glib_vpn.so %changelog * Wed Jul 23 2008 Götz Waschk <waschk@mandriva.org> 0.7.0-0.3675.3mdv2009.0 + Revision: 242459 - remove comment as well - move autoreconf call to prep stage - fix deps exceptions for 64 bit - remove unused configure options - update build deps * Wed Jul 23 2008 Götz Waschk <waschk@mandriva.org> 0.7.0-0.3675.2mdv2009.0 + Revision: 242329 - add missing deps * Wed Jun 18 2008 Helio Chissini de Castro <helio@mandriva.com> 0.7.0-0.3675.1mdv2009.0 + Revision: 225776 - Changed a little bit the versionin scheme to enable use subversioning. - Added the devel requires exceptions to allows installation of devel packages * Tue Jun 10 2008 Per Ãyvind Karlsen <peroyvind@mandriva.org> 0.7.0-0.5.svn3675mdv2009.0 + Revision: 217721 - add buildroot - revert previous changes that broke a lot of stuff * some cleanups and updating.. + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers - adapt to %%_localstatedir now being /var instead of /var/lib (#22312) * Mon May 19 2008 David Walluck <walluck@mandriva.org> 1:0.7.0-0.9.3.svn3669.2mdv2009.0 + Revision: 209082 - fix typo in Obsoletes tags * Mon May 19 2008 David Walluck <walluck@mandriva.org> 1:0.7.0-0.9.3.svn3669.1mdv2009.0 + Revision: 208864 - enable epoch - sync with 0.7.0-0.9.3.svn3669.fc10 - change lib package names to match library names * Tue Mar 18 2008 Per Ãyvind Karlsen <peroyvind@mandriva.org> 0.7.0-0.4mdv2008.1 + Revision: 188564 - d'oh, remove dhcdb from buildrequires - new svn snapshot - update mandriva backend (P2) - build fedora nm-system-settings plugin - enable avahi for mdns (fixes crash with NetworkManager due to no mdns) - this release actually works :p * Sat Mar 01 2008 Olivier Blin <oblin@mandriva.com> 0.7.0-0.3mdv2008.1 + Revision: 177393 - obsolete dhcdbd (obsoleted by NM >= 0.7.0) + Thierry Vignaud <tvignaud@mandriva.com> - fix no-buildroot-tag * Fri Feb 08 2008 Per Ãyvind Karlsen <peroyvind@mandriva.org> 0.7.0-0.2mdv2008.1 + Revision: 164291 - fix problems with conflicts of -devel packages reported by blino * Thu Feb 07 2008 Per Ãyvind Karlsen <peroyvind@mandriva.org> 0.7.0-0.1mdv2008.1 + Revision: 163655 - fix buildrequires - New release: 0.7.0'ish (from svn, grabbed from suse) - sync patches (P0 & P1) and much of structure with Fedora - add Mandriva backend (P2) - split out nm-applet - cleanups + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Fri Feb 16 2007 Olivier Thauvin <nanardon@mandriva.org> 0.6.4-5mdv2007.0 + Revision: 121928 - fix buildrequires - patch2 fix compil with latest dbus * Fri Sep 08 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.6.4-4mdv2007.0 - Add BuildRequire * Sat Aug 05 2006 Olivier Blin <blino@mandriva.com> 0.6.4-3mdv2007.0 - Patch1: fix build for new dbus - add libiw-devel BuildRequires and wireless-tools Requires * Thu Jul 20 2006 Olivier Blin <blino@mandriva.com> 0.6.4-2mdv2007.0 - update icon cache * Wed Jul 19 2006 Olivier Blin <blino@mandriva.com> 0.6.4-1mdv2007.0 - initial Mandriva release - Patch0: fake include of <linux/if.h>