cvsdist 9906183
ExcludeArch: s390 s390x
cvsdist 9906183
f0ce8db
%define hal_version		0.4
f0ce8db
8b7e496
%define build_fc3			0
8b7e496
%define build_rhel4			0
8b7e496
%define build_fc4			1
8b7e496
09e5bd0
%if %{build_rhel4}
09e5bd0
%define dbus_version	0.22
09e5bd0
%endif
09e5bd0
09e5bd0
%if %{build_fc3}
09e5bd0
%define dbus_version	0.22
09e5bd0
%endif
09e5bd0
09e5bd0
%if %{build_fc4}
09e5bd0
%define dbus_version	0.23
09e5bd0
%endif
09e5bd0
8b7e496
%if %{build_fc3}
8055d6b
%define release_extension 1.0.fc3
8b7e496
%endif
8b7e496
8b7e496
%if %{build_rhel4}
8055d6b
%define release_extension 2.0.EL4
8b7e496
%endif
8b7e496
8b7e496
%if %{build_fc4}
8055d6b
%define release_extension 3.0
8b7e496
%endif
8b7e496
8b7e496
f0ce8db
Name: NetworkManager
f0ce8db
Summary: Network link manager and user applications
8055d6b
Version: 0.4.0
8055d6b
Release: 1.cvs20050304.%{release_extension}
f0ce8db
Group: System Environment/Base
f0ce8db
License: GPL
f0ce8db
URL: http://people.redhat.com/dcbw/NetworkManager/
f0ce8db
Source: %{name}-%{version}.tar.gz
f0ce8db
BuildRoot: %{_tmppath}/%{name}-%{version}-root
f0ce8db
f0ce8db
PreReq:   chkconfig
104a25d
Requires: wireless-tools >= 27
ddd379d
Requires: dbus = %{dbus_version}
ddd379d
Requires: dbus-glib = %{dbus_version}
f0ce8db
Requires: hal >= %{hal_version}
09e5bd0
Requires: iproute openssl
09e5bd0
09e5bd0
%if %{build_fc4}
09e5bd0
Requires: bind caching-nameserver
09e5bd0
%endif
cvsdist 9906183
ddd379d
BuildRequires: dbus-devel = %{dbus_version}
eaf4778
BuildRequires: hal-devel >= %{hal_version}
cvsdist 9906183
BuildRequires: wireless-tools >= 27
cvsdist 60220d2
BuildRequires: glib2-devel gtk2-devel
cvsdist 9906183
BuildRequires: libglade2-devel
cvsdist 9906183
BuildRequires: openssl-devel
cvsdist 9906183
BuildRequires: GConf2-devel
cvsdist 9906183
BuildRequires: gnome-panel-devel
cvsdist 9906183
BuildRequires: libgnomeui-devel
f0ce8db
BuildRequires: gnome-keyring-devel
f0ce8db
BuildRequires: gettext-devel
ddd379d
BuildRequires: pkgconfig
cvsdist 9906183
cvsdist 9906183
%description
f0ce8db
NetworkManager attempts to keep an active network connection available at all
f0ce8db
times.  It is intended only for the desktop use-case, and is not intended for
f0ce8db
usage on servers.   The point of NetworkManager is to make networking
f0ce8db
configuration and setup as painless and automatic as possible.  If using DHCP,
f0ce8db
NetworkManager is _intended_ to replace default routes, obtain IP addresses
f0ce8db
from a DHCP server, and change nameservers whenever it sees fit.
cvsdist 9906183
cvsdist 9906183
cvsdist 9906183
%package gnome
cvsdist 9906183
Summary: GNOME applications for use with NetworkManager
cvsdist 9906183
Group: Applications/Internet
479eede
Requires: %{name} = %{version}-%{release}
104a25d
Requires: gnome-panel
ddd379d
Requires: dbus = %{dbus_version}
ddd379d
Requires: dbus-glib = %{dbus_version}
f0ce8db
Requires: hal >= %{hal_version}
cvsdist 9906183
cvsdist 9906183
%description gnome
f0ce8db
This package contains GNOME utilities and applications for use with
f0ce8db
NetworkManager, including a panel applet for wireless networks.
f0ce8db
f0ce8db
f0ce8db
%package devel
f0ce8db
Summary: Libraries and headers for adding NetworkManager support to applications
f0ce8db
Group: Development/Libraries
479eede
Requires: %{name} = %{version}-%{release}
ddd379d
Requires: dbus = %{dbus_version}
ddd379d
Requires: dbus-glib = %{dbus_version}
f0ce8db
f0ce8db
%description devel
ddd379d
This package contains various headers accessing some NetworkManager functionality
ddd379d
from applications.
ddd379d
ddd379d
ddd379d
%package glib
ddd379d
Summary: Libraries and headers for adding NetworkManager support to applications that use glib.
ddd379d
Group: Development/Libraries
479eede
Requires: %{name} = %{version}-%{release}
ddd379d
Requires: dbus = %{dbus_version}
ddd379d
Requires: dbus-glib = %{dbus_version}
ddd379d
ddd379d
%description glib
ddd379d
This package contains the headers and libraries that make it easier to use some Network Manager
ddd379d
functionality from applications that use glib.
cvsdist 9906183
cvsdist 9906183
cvsdist 9906183
%prep
cvsdist de50d42
%setup -q
cvsdist 9906183
cvsdist 9906183
cvsdist 9906183
%build
628015a
628015a
%if %{build_fc4}
10b6496
%define configure_args --with-named=/usr/sbin/named --with-named-dir=/var/named/data --with-named-user=named
628015a
%else
628015a
%define configure_args %{nil}
628015a
%endif
628015a
628015a
%configure %{configure_args}
cvsdist 9906183
make
cvsdist 9906183
cvsdist 9906183
cvsdist 9906183
%install
cvsdist 9906183
rm -rf $RPM_BUILD_ROOT
cvsdist 9906183
make install DESTDIR=$RPM_BUILD_ROOT
f0ce8db
%find_lang %{name}
f0ce8db
rm -f $RPM_BUILD_ROOT%{_bindir}/dhcp_test
f0ce8db
rm -f $RPM_BUILD_ROOT%{_libdir}/libnm_glib.la
f0ce8db
rm -f $RPM_BUILD_ROOT%{_libdir}/libnm_glib.a
f0ce8db
cvsdist 9906183
cvsdist 9906183
%clean
cvsdist 9906183
rm -rf $RPM_BUILD_ROOT
cvsdist 9906183
cvsdist 9906183
cvsdist 9906183
%post
f0ce8db
/sbin/chkconfig --add NetworkManager
cvsdist 9906183
cvsdist 9906183
cvsdist 9906183
%preun
f0ce8db
if [ $1 -eq 0 ]; then
f0ce8db
    /sbin/service NetworkManager stop >/dev/null 2>&1
cvsdist 9906183
    /sbin/chkconfig --del NetworkManager
cvsdist 9906183
fi
cvsdist 9906183
cvsdist 9906183
cvsdist 9906183
%postun
f0ce8db
if [ $1 -ge 1 ]; then
f0ce8db
    /sbin/service NetworkManager condrestart >/dev/null 2>&1
cvsdist 9906183
fi
cvsdist 9906183
cvsdist 9906183
f0ce8db
%files -f %{name}.lang
f0ce8db
%defattr(-,root,root,0755)
cvsdist 9906183
%doc COPYING ChangeLog NEWS AUTHORS README CONTRIBUTING TODO
f0ce8db
%config %{_sysconfdir}/dbus-1/system.d/%{name}.conf
f0ce8db
%config %{_sysconfdir}/rc.d/init.d/%{name}
f0ce8db
%config %{_datadir}/%{name}/named.conf
cvsdist 9906183
%{_bindir}/%{name}
cvsdist 9906183
%{_bindir}/NMLoadModules
cvsdist 9906183
%{_bindir}/NetworkManagerDispatcher
f0ce8db
%{_libdir}/pkgconfig/%{name}.pc
cvsdist 9906183
cvsdist 9906183
%files gnome
f0ce8db
%defattr(-,root,root,0755)
f0ce8db
%config %{_sysconfdir}/dbus-1/system.d/NetworkManagerInfo.conf
cvsdist 9906183
%{_bindir}/NetworkManagerInfo
52d9ce4
%{_libexecdir}/NetworkManagerNotification
f0ce8db
%{_datadir}/NetworkManagerNotification/
f0ce8db
%{_datadir}/NetworkManagerInfo/
67d79b6
%{_datadir}/icons/hicolor/22x22/apps/*.png
52d9ce4
%{_datadir}/icons/hicolor/48x48/apps/*.png
cvsdist 9906183
f0ce8db
%files devel
f0ce8db
%defattr(-,root,root,0755)
ddd379d
%{_includedir}/%{name}/%{name}.h
ddd379d
ddd379d
%files glib
ddd379d
%defattr(-,root,root,0755)
f0ce8db
%{_libdir}/libnm_glib.so*
ddd379d
%{_includedir}/%{name}/libnm_glib.h
f0ce8db
%{_libdir}/pkgconfig/libnm_glib.pc
f0ce8db
ddd379d
cvsdist 9906183
%changelog
8055d6b
* Fri Mar  4 2005 Dan Williams <dcbw@redhat.com> 0.3.4-1.cvs20050304
8055d6b
- Pull from latest CVS HEAD
8055d6b
- Rebuild for gcc 4.0
8055d6b
8055d6b
* Tue Feb 22 2005 Dan Williams <dcbw@redhat.com> 0.3.3-2.cvs20050222
8055d6b
- Update from CVS
8055d6b
8cae1e3
* Mon Feb 14 2005 Dan Williams <dcbw@redhat.com> 0.3.3-2.cvs20050214.x.1
8cae1e3
- Fix free of invalid pointer for multiple search domains
8cae1e3
a39b3a6
* Mon Feb 14 2005 Dan Williams <dcbw@redhat.com> 0.3.3-2.cvs20050214
a39b3a6
- Never automatically choose a device that doesn't support carrier detection
a39b3a6
- Add right-click menu to applet, can now "Pause/Resume" scanning through it
a39b3a6
- Fix DHCP Renew/Rebind timeouts
a39b3a6
- Fix frequency cycling problem on some cards, even when scanning was off
a39b3a6
- Play better with IPv6
a39b3a6
- Don't send kernel version in DHCP packets, and ensure DHCP packets are at
a39b3a6
	least 300 bytes in length to work around broken router
a39b3a6
- New DHCP options D-BUS API by Dan Reed
a39b3a6
- Handle multiple domain search options in DHCP responses
a39b3a6
09e5bd0
* Wed Feb  2 2005 Dan Williams <dcbw@redhat.com> 0.3.3-1.cvs20050202
09e5bd0
- Display wireless network name in applet tooltip
09e5bd0
- Hopefully fix double-default-route problem
09e5bd0
- Write out valid resolv.conf when we exit
09e5bd0
- Make multi-domain search options work
09e5bd0
- Rework signal strength code to be WEXT conformant, if strength is
09e5bd0
	still wierd then its 95% surely a driver problem
09e5bd0
- Fix annoying instances of suddenly dropping and reactivating a
09e5bd0
	wireless device (Cisco cards were worst offenders here)
09e5bd0
- Fix some instances of NetworkManager not remembering your WEP key
09e5bd0
- Fix some races between NetworkManager and NetworkManagerInfo where
09e5bd0
	NetworkManager wouldn't recognize changes in the allowed list
09e5bd0
- Don't shove Ad-Hoc Access Point MAC addresses into GConf
09e5bd0
ddd379d
* Tue Jan 25 2005 Dan Williams <dcbw@redhat.com> 0.3.3-1.cvs20050125
ddd379d
- Play nice with dbus 0.23
ddd379d
- Update our list of Allowed Wireless Networks more quickly
ddd379d
03d8f0b
* Mon Jan 24 2005 Dan Williams <dcbw@redhat.com> 0.3.3-1.cvs20050124
03d8f0b
- Update to latest CVS
03d8f0b
- Make sure we start as late as possible so that we ensure dbus & HAL
03d8f0b
	are already around
03d8f0b
- Fix race in initial device activation
03d8f0b
02cb332
* Mon Jan 24 2005 Than Ngo <than@redhat.com> 0.3.3-1.cvs20050112.4
02cb332
- rebuilt against new wireless tool
02cb332
628015a
* Thu Jan 21 2005 <dcbw@redhat.com> - 0.3.3-1.cvs20050118
628015a
- Fix issue where NM wouldn't recognize that access points were
628015a
	encrypted, and then would try to connect without encryption
628015a
- Refine packaging to put client library in separate package
628015a
- Remove bind+caching-nameserver dep for FC-3, use 'nscd -i hosts'
628015a
	instead.  DNS queries may timeout now right after device
628015a
	activation due to this change.
628015a
f0ce8db
* Wed Jan 12 2005 <dcbw@redhat.com> - 0.3.3-1.cvs20050112
f0ce8db
- Update to latest CVS
f0ce8db
- Fixes to DHCP code
f0ce8db
- Link-Local (ZeroConf/Rendezvous) support
f0ce8db
- Use bind in "caching-nameserver" mode to work around stupidity
f0ce8db
	in glibc's resolver library not recognizing resolv.conf changes
f0ce8db
- #rh144818# Clean up the specfile (Patch from Matthias Saou)
f0ce8db
- Ad-Hoc mode support with Link-Local addressing only (for now)
f0ce8db
- Fixes for device activation race conditions
f0ce8db
- Wireless scanning in separate thread
f0ce8db
2a53d45
* Wed Dec  8 2004 <dcbw@redhat.com> - 0.3.2-4.3.cvs20041208
2a53d45
- Update to CVS
2a53d45
- Updates to link detection, DHCP code
2a53d45
- Remove NMLaunchHelper so we start up faster and don't
2a53d45
	block for a connection.  This means services that depend
2a53d45
	on the network may fail if they start right after NM
2a53d45
- Make sure DHCP renew/rebinding works
2a53d45
d644ecd
* Wed Nov 17 2004 <dcbw@redhat.com> - 0.3.2-3.cvs20041117
d644ecd
- Update to CVS
d644ecd
- Fixes to link detection
d644ecd
- Better detection of non-ESSID-broadcasting access points
d644ecd
- Don't dialog-spam the user if a connection fails
d644ecd
d644ecd
* Mon Nov 11 2004 <dcbw@redhat.com> - 0.3.2-2.cvs20041115
cd6fe52
- Update to CVS
cd6fe52
- Much better link detection, works with Open System authentication
cd6fe52
- Blacklist wireless cards rather than whitelisting them
cd6fe52
61e764c
* Fri Oct 29 2004 <dcbw@redhat.com> - 0.3.2-2.cvs20041029
61e764c
- #rh134893# NetworkManagerInfo and the panel-icon life-cycle
61e764c
- #rh134895# Status icon should hide when in Wired-only mode
61e764c
- #rh134896# Icon code needs rewrite
61e764c
- #rh134897# "Other Networks..." dialog needs implementing
61e764c
- #rh135055# Menu highlights incorrectly in NM
61e764c
- #rh135648# segfault with cipsec0
61e764c
- #rh135722# NetworkManager will not allow zaurus to sync via usb0
61e764c
- #rh135999# NetworkManager-0.3.1 will not connect to 128 wep
61e764c
- #rh136866# applet needs tooltips
61e764c
- #rh137047# lots of applets, yay!
61e764c
- #rh137341# Network Manager dies after disconnecting from wired network second time
61e764c
- Better checking for wireless devices
61e764c
- Fix some memleaks
61e764c
- Fix issues with dhclient declining an offered address
61e764c
- Fix an activation thread deadlock
61e764c
- More accurately detect "Other wireless networks" that are encrypted
61e764c
- Don't bring devices down as much, won't hotplug-spam as much anymore
61e764c
	about firmware
61e764c
- Add a "network not found" dialog when the user chooses a network that could
61e764c
	not be connected to
61e764c
61e764c
* Tue Oct 26 2004 <dcbw@redhat.com> - 0.3.1-2
61e764c
- Fix escaping of ESSIDs in gconf
61e764c
Jonathan Blandford 678e1b0
* Tue Oct 19 2004  <jrb@redhat.com> - 0.3.1-1
Jonathan Blandford 678e1b0
- minor point release to improve error handling and translations
Jonathan Blandford 678e1b0
67d79b6
* Fri Oct 15 2004 Dan Williams <dcbw@redhat.com> 0.3-1
67d79b6
- Update from CVS, version 0.3
67d79b6
52d9ce4
* Tue Oct 12 2004 Dan Williams <dcbw@redhat.com> 0.2-4
52d9ce4
- Update from CVS
52d9ce4
- Improvements:
52d9ce4
	o Better link checking on wireless cards
52d9ce4
	o Panel applet now a Notification Area icon
52d9ce4
	o Static IP configuration support
52d9ce4
88875ef
* Mon Sep 13 2004 Dan Williams <dcbw@redhat.com> 0.2-3
88875ef
- Update from CVS
88875ef
104a25d
* Sat Sep 11 2004 Dan Williams <dcbw@redhat.com> 0.2-2
104a25d
- Require gnome-panel, not gnome-panel-devel
104a25d
- Turn off by default
104a25d
cvsdist de50d42
* Thu Aug 26 2004 Dan Williams <dcbw@redhat.com> 0.2-1
cvsdist de50d42
- Update to 0.2
cvsdist de50d42
cvsdist 60220d2
* Thu Aug 26 2004 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 60220d2
- spec-changes to req glib2 instead of glib
cvsdist 9906183
cvsdist 9906183
* Fri Aug 20 2004 Dan Williams <dcbw@redhat.com> 0.1-3
cvsdist 9906183
- First public release
cvsdist 9906183