cvsdist 9906183
ExcludeArch: s390 s390x
cvsdist 9906183
6d637f7
%define hal_version		0.5.0
3006b8d
%define dbus_version	0.4
6d637f7
%define gtk2_version	2.6.0
David Zeuthen ea20347
%define nm_cvs_version	cvs20050629
8b7e496
f0ce8db
Name: NetworkManager
f0ce8db
Summary: Network link manager and user applications
c64aae4
Version: 0.4
5fc3c61
Release: 34.%{nm_cvs_version}.1
f0ce8db
Group: System Environment/Base
f0ce8db
License: GPL
f0ce8db
URL: http://people.redhat.com/dcbw/NetworkManager/
d18f971
Source: %{name}-%{version}.%{nm_cvs_version}.tar.gz
5fc3c61
Patch0: NetworkManager-0.34.cvs20050629-pass-format-string-to-syslog.patch
f0ce8db
BuildRoot: %{_tmppath}/%{name}-%{version}-root
f0ce8db
f0ce8db
PreReq:   chkconfig
104a25d
Requires: wireless-tools >= 27
6d637f7
Requires: dbus >= %{dbus_version}
6d637f7
Requires: dbus-glib >= %{dbus_version}
f0ce8db
Requires: hal >= %{hal_version}
09e5bd0
Requires: iproute openssl
09e5bd0
Requires: bind caching-nameserver
43cb130
Requires: dhcdbd
43cb130
Requires: dhclient >= 3.0.2-12
cvsdist 9906183
6d637f7
BuildRequires: dbus-devel >= %{dbus_version}
eaf4778
BuildRequires: hal-devel >= %{hal_version}
6d637f7
BuildRequires: wireless-tools >= 28
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
e67f345
BuildRequires: automake17
50f3024
BuildRequires: dhcdbd
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
6d637f7
Requires: dbus >= %{dbus_version}
6d637f7
Requires: dbus-glib >= %{dbus_version}
f0ce8db
Requires: hal >= %{hal_version}
b94c529
PreReq:  gtk2 >= %{gtk2_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}
2bc8ae2
Requires: dbus-devel >= %{dbus_version}
6d637f7
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}
6d637f7
Requires: dbus >= %{dbus_version}
6d637f7
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
5fc3c61
%patch0 -p1 -b .pass-format-string-to-syslog
cvsdist 9906183
3232b10
chmod +ox initscript/RedHat/NetworkManagerDispatcher
3232b10
automake-1.7
cvsdist 9906183
cvsdist 9906183
%build
6d637f7
%configure --with-named=/usr/sbin/named --with-named-dir=/var/named/data --with-named-user=named
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%{_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
3232b10
/sbin/chkconfig --add NetworkManagerDispatcher
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
3232b10
3232b10
    /sbin/service NetworkManagerDispatcher stop >/dev/null 2>&1
3232b10
    /sbin/chkconfig --del NetworkManagerDispatcher
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
3232b10
    /sbin/service NetworkManagerDispatcher condrestart >/dev/null 2>&1
cvsdist 9906183
fi
cvsdist 9906183
b94c529
%post gnome
b94c529
touch --no-create %{_datadir}/icons/hicolor
860d846
if [ -x /usr/bin/gtk-update-icon-cache ]; then
af5e650
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
b94c529
fi
b94c529
b94c529
%postun gnome
b94c529
touch --no-create %{_datadir}/icons/hicolor
860d846
if [ -x /usr/bin/gtk-update-icon-cache ]; then
af5e650
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
b94c529
fi
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}
3232b10
%config %{_sysconfdir}/rc.d/init.d/%{name}Dispatcher
f0ce8db
%config %{_datadir}/%{name}/named.conf
cvsdist 9906183
%{_bindir}/%{name}
cvsdist 9906183
%{_bindir}/NMLoadModules
cvsdist 9906183
%{_bindir}/NetworkManagerDispatcher
cvsdist 9906183
cvsdist 9906183
%files gnome
f0ce8db
%defattr(-,root,root,0755)
3006b8d
%config %{_sysconfdir}/dbus-1/system.d/nm-applet.conf
3006b8d
%{_libexecdir}/nm-applet
3006b8d
%{_bindir}/nm-vpn-properties
52aef86
%{_datadir}/gnome-vpn-properties/nm-vpn-properties.glade
f0ce8db
%{_datadir}/NetworkManagerNotification/
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
3006b8d
%{_includedir}/%{name}/nm-vpn-ui-interface.h
2bc8ae2
%{_libdir}/pkgconfig/%{name}.pc
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
5fc3c61
* Fri Jul 29 2005 Ray Strode  <rstrode@redhat.com> - 0.4-34.cvs20050629.1
5fc3c61
- Don't pass log messages into syslog format string (bug 164683).
5fc3c61
2bc8ae2
* Mon Jul 11 2005 Dan Williams <dcbw@redhat.com> - 0.4-34.cvs20050629
2bc8ae2
- Move pkgconfig file to devel package (#162316, thanks to Michael Schwendt)
2bc8ae2
David Zeuthen ea20347
* Wed Jun 29 2005 David Zeuthen <davidz@redhat.com> - 0.4-33.cvs20050629
David Zeuthen ea20347
- Update to latest CVS to get latest VPN interface settings to satisfy
David Zeuthen ea20347
  BuildReq for NetworkManager-vpnc in Fedora Extras Development
David Zeuthen ea20347
- Latest CVS also contains various bug- and UI-fixes
David Zeuthen ea20347
David Zeuthen ea20347
* Fri Jun 17 2005 Dan Williams <dcbw@redhat.com> - 0.4-32.cvs20050617
52aef86
- Update to latest CVS
52aef86
	o VPN connection import/export capability
52aef86
	o Fix up some menu item names
52aef86
- Move nm-vpn-properties.glade to the gnome subpackage
52aef86
cf2b931
* Thu Jun 16 2005 Dan Williams <dcbw@redhat.com> - 0.4-31.cvs20050616
cf2b931
- Update to latest CVS
cf2b931
	o Clean up wording in Wireless Network Discovery menu
cf2b931
	o Robert Love's applet beautify patch
cf2b931
3006b8d
* Wed Jun 15 2005 Dan Williams <dcbw@redhat.com> - 0.4-30.cvs20050615
3006b8d
- Update to latest CVS
3006b8d
782bb48
* Mon May 16 2005 Dan Williams <dcbw@redhat.com> - 0.4-15.cvs30050404
e67f345
- Fix dispatcher and applet CFLAGS so they gets compiled with FORTIFY_SOURCE
782bb48
3232b10
* Mon May 16 2005 Dan Williams <dcbw@redhat.com> - 0.4-14.cvs30050404
3232b10
- Fix segfault in NetworkManagerDispatcher, add an initscript for it
3232b10
1111b27
* Mon May 16 2005 Dan Williams <dcbw@redhat.com> - 0.4-13.cvs30050404
1111b27
- Fix condition that may have resulted in DHCP client returning success
1111b27
	when it really timed out
1111b27
e8ee593
* Sat May 14 2005 Dan Williams <dcbw@redhat.com> - 0.4-12.cvs20050404
e8ee593
- Enable OK button correctly in Passphrase and Other Networks dialogs when
e8ee593
	using ASCII or Hex WEP keys
e8ee593
e8ee593
* Thu May  5 2005 Dan Williams <dcbw@redhat.com> - 0.4-11.cvs20050404
ebec265
- #rh154391# NetworkManager dies on startup (don't force-kill nifd)
ebec265
74b9570
* Wed May  4 2005 Dan Williams <dcbw@redhat.com> - 0.4-10.cvs20050404
74b9570
- Fix leak of a socket in DHCP code
74b9570
260649d
* Wed May  4 2005 Dan Williams <dcbw@redhat.com> - 0.4-9.cvs20050404
260649d
- Fix some memory leaks (Tom Parker)
260649d
- Join to threads rather than spinning for their completion (Tom Parker)
260649d
- Fix misuse of a g_assert() (Colin Walters)
260649d
- Fix return checking of an ioctl() (Bill Moss)
260649d
- Better detection and matching of hidden access points (Bill Moss)
260649d
- Don't use varargs, and therefore don't crash on PPC (Peter Jones)
260649d
0bfe432
* Wed Apr 27 2005 Jeremy Katz <katzj@redhat.com> - 0.4-8.cvs20050404
0bfe432
- fix build with newer dbus
0bfe432
af5e650
* Wed Apr 27 2005 Jeremy Katz <katzj@redhat.com> - 0.4-7.cvs20050404
af5e650
- silence %%post
af5e650
d0a1fba
* Mon Apr  4 2005 Dan Williams <dcbw@redhat.com> 0.4-6.cvs20050404
d0a1fba
- #rh153234# NetworkManager quits/cores just as a connection is made
d0a1fba
1ad6303
* Fri Apr  2 2005 Dan Williams <dcbw@redhat.com> 0.4-5.cvs20050402
6d637f7
- Update from latest CVS HEAD
6d637f7
b94c529
* Fri Mar 25 2005 Christopher Aillon <caillon@redhat.com> 0.4-4.cvs20050315
b94c529
- Update the GTK+ theme icon cache on (un)install
b94c529
0c5fe94
* Tue Mar 15 2005 Ray Strode <rstrode@redhat.com> 0.4-3.cvs20050315
0c5fe94
- Pull from latest CVS HEAD
0c5fe94
0da0c98
* Tue Mar 15 2005 Ray Strode <rstrode@redhat.com> 0.4-2.cvs20050315
2401464
- Upload new source tarball (woops)
2401464
add35c7
* Tue Mar 15 2005 Ray Strode <rstrode@redhat.com> 0.4-1.cvs20050315
add35c7
- Pull from latest CVS HEAD (hopefully works again)
add35c7
c64aae4
* Mon Mar  7 2005 Ray Strode <rstrode@redhat.com> 0.4-1.cvs20050307
498ec85
- Pull from latest CVS HEAD
498ec85
- Commit broken NetworkManager to satisfy to dbus dependency
498ec85
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