NetworkManager/NetworkManager.spec

487 lines
17 KiB
RPMSpec
Raw Normal View History

ExcludeArch: s390 s390x
%define cvs_snapshot 1
2005-10-18 03:58:02 +00:00
2005-04-01 21:53:04 +00:00
%define hal_version 0.5.0
2005-12-02 00:33:24 +00:00
%define dbus_version 0.60
2005-04-01 21:53:04 +00:00
%define gtk2_version 2.6.0
%define wireless_tools_version 1:28-0pre9
%define bind_version 24:9.3.1-20
2005-10-18 03:58:02 +00:00
%if %{cvs_snapshot}
%define nm_cvs_version .cvs20060127
2005-10-18 03:58:02 +00:00
%endif
Name: NetworkManager
Summary: Network connection manager and user applications
2005-10-20 05:19:30 +00:00
Version: 0.5.1
Release: 6%{?nm_cvs_version}
Group: System Environment/Base
License: GPL
URL: http://www.gnome.org/projects/NetworkManager/
2005-10-18 03:58:02 +00:00
Source: %{name}-%{version}%{?nm_cvs_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
PreReq: chkconfig
Requires: wireless-tools >= %{wireless_tools_version}
2005-04-01 21:53:04 +00:00
Requires: dbus >= %{dbus_version}
Requires: dbus-glib >= %{dbus_version}
Requires: hal >= %{hal_version}
Requires: iproute openssl
Requires: caching-nameserver
2005-06-16 01:37:50 +00:00
Requires: dhcdbd
Requires: dhclient >= 3.0.2-12
Requires: bind >= %{bind_version}
Requires: wpa_supplicant
2005-04-01 21:53:04 +00:00
BuildRequires: dbus-devel >= %{dbus_version}
BuildRequires: hal-devel >= %{hal_version}
BuildRequires: wireless-tools >= %{wireless_tools_version}
BuildRequires: glib2-devel gtk2-devel
BuildRequires: libglade2-devel
BuildRequires: openssl-devel
BuildRequires: GConf2-devel
BuildRequires: gnome-panel-devel
BuildRequires: libgnomeui-devel
BuildRequires: gnome-keyring-devel
BuildRequires: gettext-devel
BuildRequires: pkgconfig
2005-06-16 01:40:33 +00:00
BuildRequires: dhcdbd
%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 gnome
Summary: GNOME applications for use with NetworkManager
Group: Applications/Internet
2005-01-25 20:23:50 +00:00
Requires: %{name} = %{version}-%{release}
Requires: gnome-panel
2005-04-01 21:53:04 +00:00
Requires: dbus >= %{dbus_version}
Requires: dbus-glib >= %{dbus_version}
Requires: hal >= %{hal_version}
PreReq: gtk2 >= %{gtk2_version}
%description gnome
This package contains GNOME utilities and applications for use with
NetworkManager, including a panel applet for wireless networks.
%package devel
Summary: Libraries and headers for adding NetworkManager support to applications
Group: Development/Libraries
2005-01-25 20:23:50 +00:00
Requires: %{name} = %{version}-%{release}
2005-07-11 19:17:21 +00:00
Requires: dbus-devel >= %{dbus_version}
2005-04-01 21:53:04 +00:00
Requires: dbus-glib >= %{dbus_version}
%description devel
This package contains various headers accessing some NetworkManager functionality
from applications.
%package glib
Summary: Libraries for adding NetworkManager support to applications that use glib.
Group: Development/Libraries
2005-01-25 20:23:50 +00:00
Requires: %{name} = %{version}-%{release}
2005-04-01 21:53:04 +00:00
Requires: dbus >= %{dbus_version}
Requires: dbus-glib >= %{dbus_version}
%description glib
This package contains the libraries that make it easier to use some NetworkManager
functionality from applications that use glib.
%package glib-devel
Summary: Header files for adding NetworkManager support to applications that use glib.
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
Requires: %{name}-glib = %{version}-%{release}
Requires: glib2-devel
%description glib-devel
This package contains the header and pkg-config files for development applications using
NetworkManager functionality from applications that use glib.
%prep
%setup -q
%build
2005-04-01 21:53:04 +00:00
%configure --with-named=/usr/sbin/named --with-named-dir=/var/named/data --with-named-user=named
make
%install
%{__rm} -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
%{__rm} -f $RPM_BUILD_ROOT%{_bindir}/NMLoadModules
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/libnm_glib.la
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/libnm_glib.a
2006-01-27 07:28:38 +00:00
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/libnm-util.la
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/libnm-util.a
%{__cp} test/nm-tool $RPM_BUILD_ROOT%{_bindir}/
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%post
2005-11-18 23:33:25 +00:00
if [ "$1" == "1" ]; then
/sbin/chkconfig --add NetworkManager
/sbin/chkconfig --add NetworkManagerDispatcher
fi
%preun
if [ $1 -eq 0 ]; then
/sbin/service NetworkManager stop >/dev/null 2>&1
/sbin/chkconfig --del NetworkManager
/sbin/service NetworkManagerDispatcher stop >/dev/null 2>&1
/sbin/chkconfig --del NetworkManagerDispatcher
fi
%post gnome
touch --no-create %{_datadir}/icons/hicolor
2005-03-26 15:49:16 +00:00
if [ -x /usr/bin/gtk-update-icon-cache ]; then
2005-04-27 04:35:02 +00:00
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
fi
%postun gnome
touch --no-create %{_datadir}/icons/hicolor
2005-03-26 15:49:16 +00:00
if [ -x /usr/bin/gtk-update-icon-cache ]; then
2005-04-27 04:35:02 +00:00
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
fi
%files -f %{name}.lang
%defattr(-,root,root,0755)
%doc COPYING ChangeLog NEWS AUTHORS README CONTRIBUTING TODO
%config %{_sysconfdir}/dbus-1/system.d/%{name}.conf
%config %{_sysconfdir}/rc.d/init.d/%{name}
%config %{_sysconfdir}/rc.d/init.d/%{name}Dispatcher
2006-01-27 06:55:55 +00:00
%{_sbindir}/%{name}
%{_sbindir}/NetworkManagerDispatcher
%{_bindir}/nm-tool
2006-01-27 07:25:29 +00:00
%{_libdir}/libnm-util.so*
2006-01-27 07:16:55 +00:00
%{_mandir}/man1/NetworkManager.1.gz
%{_mandir}/man1/NetworkManagerDispatcher.1.gz
%files gnome
%defattr(-,root,root,0755)
2005-06-16 01:33:11 +00:00
%config %{_sysconfdir}/dbus-1/system.d/nm-applet.conf
2005-08-17 16:41:10 +00:00
%{_bindir}/nm-applet
2005-06-16 01:33:11 +00:00
%{_bindir}/nm-vpn-properties
%{_datadir}/gnome-vpn-properties/nm-vpn-properties.glade
2005-08-17 16:41:10 +00:00
%{_datadir}/nm-applet/
2004-10-15 14:37:33 +00:00
%{_datadir}/icons/hicolor/22x22/apps/*.png
2004-10-12 15:04:51 +00:00
%{_datadir}/icons/hicolor/48x48/apps/*.png
%files devel
%defattr(-,root,root,0755)
2006-01-27 07:16:55 +00:00
%{_includedir}/%{name}/*.h
2005-07-11 19:17:21 +00:00
%{_libdir}/pkgconfig/%{name}.pc
2006-01-27 07:16:55 +00:00
%{_libdir}/pkgconfig/libnm-util.pc
%files glib
%defattr(-,root,root,0755)
%{_libdir}/libnm_glib.so*
%files glib-devel
%{_includedir}/%{name}/libnm_glib.h
%{_libdir}/pkgconfig/libnm_glib.pc
%changelog
* Fri Jan 27 2006 Dan Williams <dcbw@redhat.com> 0.5.1-6.cvs20060127
- Snapshot from CVS
- WPA Support! Woohoo!
2005-12-09 22:39:29 +00:00
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
2005-12-02 00:33:24 +00:00
* Thu Dec 01 2005 John (J5) Palmieri <johnp@redhat.com> - 0.5.1-5
- rebuild for new dbus
2005-11-18 23:33:25 +00:00
* Fri Nov 18 2005 Peter Jones <pjones@redhat.com> - 0.5.1-4
- Don't kill the network connection when you upgrade the package.
* Fri Oct 21 2005 Christopher Aillon <caillon@redhat.com> - 0.5.1-3
- Split out the -glib subpackage to have a -glib-devel package as well
- Add epoch to version requirements for bind and wireless-tools
- Update URL of project
* Wed Oct 19 2005 Christopher Aillon <caillon@redhat.com> - 0.5.1-2
2005-10-20 05:19:30 +00:00
- NetworkManager 0.5.1
2005-10-18 03:58:02 +00:00
* Mon Oct 17 2005 Christopher Aillon <caillon@redhat.com> - 0.5.0-2
- NetworkManager 0.5.0
* Mon Oct 10 2005 Dan Williams <dcbw@redaht.com> - 0.4.1-5.cvs20051010
- Fix automatic wireless connections
- Remove usage of NMLoadModules callout, no longer needed
- Try to fix deadlock when menu is down and keyring dialog pops up
* Sun Oct 09 2005 Dan Williams <dcbw@redhat.com> - 0.4.1-4.cvs20051009
- Update to latest CVS
o Integrate connection progress with applet icon (Chris Aillon)
o More information in "Connection Information" dialog (Robert Love)
o Shorten time taken to sleep
o Make applet icon wireless strength levels a bit more realistic
o Talk to named using DBUS rather than spawning our own
- You need to add "-D" to the OPTIONS line in /etc/sysconfig/named
- You need to set named to start as a service on startup
* Thu Sep 22 2005 Dan Williams <dcbw@redhat.com> - 0.4.1-3.cvs20050922
- Update to current CVS to fix issues with routing table and /sbin/ip
* Mon Sep 12 2005 Jeremy Katz <katzj@redhat.com> - 0.4.1-2.cvs20050912
- update to current CVS and rebuild (workaround for #168120)
2005-08-19 18:12:09 +00:00
* Fri Aug 19 2005 Dan Williams <dcbw@redhat.com> - 0.4.1-2.cvs20050819
- Fix occasional hang in NM caused by the applet
2005-08-17 16:41:10 +00:00
* Wed Aug 17 2005 Dan Williams <dcbw@redhat.com> - 0.4.1
- Update to NetworkManager 0.4.1
2005-08-19 18:12:09 +00:00
* Tue Aug 16 2005 Dan Williams <dcbw@redhat.com> - 0.4-36.cvs20050811
2005-08-16 18:59:37 +00:00
- Rebuild against new cairo/gtk
2005-08-19 18:12:09 +00:00
* Thu Aug 11 2005 Dan Williams <dcbw@redhat.com> - 0.4-35.cvs20050811
- Update to latest CVS
o Use DHCP server address as gateway address if the DHCP server doesn't give
us a gateway address #rh165698#
o Fixes to the applet (Robert Love)
o Better caching of information in the applet (Bill Moss)
o Generate automatic suggested Ad-Hoc network name from machine's hostname
(Robert Love)
o Update all network information on successfull connect, not just
authentication method
* Fri Jul 29 2005 Ray Strode <rstrode@redhat.com> - 0.4-34.cvs20050729
- Update to latest CVS to get fix for bug 165683.
2005-07-11 19:17:21 +00:00
* Mon Jul 11 2005 Dan Williams <dcbw@redhat.com> - 0.4-34.cvs20050629
- Move pkgconfig file to devel package (#162316, thanks to Michael Schwendt)
* Wed Jun 29 2005 David Zeuthen <davidz@redhat.com> - 0.4-33.cvs20050629
- Update to latest CVS to get latest VPN interface settings to satisfy
BuildReq for NetworkManager-vpnc in Fedora Extras Development
- Latest CVS also contains various bug- and UI-fixes
* Fri Jun 17 2005 Dan Williams <dcbw@redhat.com> - 0.4-32.cvs20050617
- Update to latest CVS
o VPN connection import/export capability
o Fix up some menu item names
- Move nm-vpn-properties.glade to the gnome subpackage
* Thu Jun 16 2005 Dan Williams <dcbw@redhat.com> - 0.4-31.cvs20050616
- Update to latest CVS
o Clean up wording in Wireless Network Discovery menu
o Robert Love's applet beautify patch
2005-06-16 01:33:11 +00:00
* Wed Jun 15 2005 Dan Williams <dcbw@redhat.com> - 0.4-30.cvs20050615
- Update to latest CVS
* Mon May 16 2005 Dan Williams <dcbw@redhat.com> - 0.4-15.cvs30050404
- Fix dispatcher and applet CFLAGS so they gets compiled with FORTIFY_SOURCE
* Mon May 16 2005 Dan Williams <dcbw@redhat.com> - 0.4-14.cvs30050404
- Fix segfault in NetworkManagerDispatcher, add an initscript for it
* Mon May 16 2005 Dan Williams <dcbw@redhat.com> - 0.4-13.cvs30050404
- Fix condition that may have resulted in DHCP client returning success
when it really timed out
* Sat May 14 2005 Dan Williams <dcbw@redhat.com> - 0.4-12.cvs20050404
- Enable OK button correctly in Passphrase and Other Networks dialogs when
using ASCII or Hex WEP keys
* Thu May 5 2005 Dan Williams <dcbw@redhat.com> - 0.4-11.cvs20050404
- #rh154391# NetworkManager dies on startup (don't force-kill nifd)
2005-05-04 19:01:09 +00:00
* Wed May 4 2005 Dan Williams <dcbw@redhat.com> - 0.4-10.cvs20050404
- Fix leak of a socket in DHCP code
* Wed May 4 2005 Dan Williams <dcbw@redhat.com> - 0.4-9.cvs20050404
- Fix some memory leaks (Tom Parker)
- Join to threads rather than spinning for their completion (Tom Parker)
- Fix misuse of a g_assert() (Colin Walters)
- Fix return checking of an ioctl() (Bill Moss)
- Better detection and matching of hidden access points (Bill Moss)
- Don't use varargs, and therefore don't crash on PPC (Peter Jones)
2005-04-27 05:17:34 +00:00
* Wed Apr 27 2005 Jeremy Katz <katzj@redhat.com> - 0.4-8.cvs20050404
- fix build with newer dbus
2005-04-27 04:35:02 +00:00
* Wed Apr 27 2005 Jeremy Katz <katzj@redhat.com> - 0.4-7.cvs20050404
- silence %%post
* Mon Apr 4 2005 Dan Williams <dcbw@redhat.com> 0.4-6.cvs20050404
- #rh153234# NetworkManager quits/cores just as a connection is made
* Fri Apr 2 2005 Dan Williams <dcbw@redhat.com> 0.4-5.cvs20050402
2005-04-01 21:53:04 +00:00
- Update from latest CVS HEAD
* Fri Mar 25 2005 Christopher Aillon <caillon@redhat.com> 0.4-4.cvs20050315
- Update the GTK+ theme icon cache on (un)install
2005-03-15 15:23:17 +00:00
* Tue Mar 15 2005 Ray Strode <rstrode@redhat.com> 0.4-3.cvs20050315
- Pull from latest CVS HEAD
2005-03-15 13:46:00 +00:00
* Tue Mar 15 2005 Ray Strode <rstrode@redhat.com> 0.4-2.cvs20050315
2005-03-15 13:38:33 +00:00
- Upload new source tarball (woops)
* Tue Mar 15 2005 Ray Strode <rstrode@redhat.com> 0.4-1.cvs20050315
- Pull from latest CVS HEAD (hopefully works again)
2005-03-08 03:59:01 +00:00
* Mon Mar 7 2005 Ray Strode <rstrode@redhat.com> 0.4-1.cvs20050307
- Pull from latest CVS HEAD
- Commit broken NetworkManager to satisfy to dbus dependency
* Fri Mar 4 2005 Dan Williams <dcbw@redhat.com> 0.3.4-1.cvs20050304
- Pull from latest CVS HEAD
- Rebuild for gcc 4.0
* Tue Feb 22 2005 Dan Williams <dcbw@redhat.com> 0.3.3-2.cvs20050222
- Update from CVS
* Mon Feb 14 2005 Dan Williams <dcbw@redhat.com> 0.3.3-2.cvs20050214.x.1
- Fix free of invalid pointer for multiple search domains
* Mon Feb 14 2005 Dan Williams <dcbw@redhat.com> 0.3.3-2.cvs20050214
- Never automatically choose a device that doesn't support carrier detection
- Add right-click menu to applet, can now "Pause/Resume" scanning through it
- Fix DHCP Renew/Rebind timeouts
- Fix frequency cycling problem on some cards, even when scanning was off
- Play better with IPv6
- Don't send kernel version in DHCP packets, and ensure DHCP packets are at
least 300 bytes in length to work around broken router
- New DHCP options D-BUS API by Dan Reed
- Handle multiple domain search options in DHCP responses
* Wed Feb 2 2005 Dan Williams <dcbw@redhat.com> 0.3.3-1.cvs20050202
- Display wireless network name in applet tooltip
- Hopefully fix double-default-route problem
- Write out valid resolv.conf when we exit
- Make multi-domain search options work
- Rework signal strength code to be WEXT conformant, if strength is
still wierd then its 95% surely a driver problem
- Fix annoying instances of suddenly dropping and reactivating a
wireless device (Cisco cards were worst offenders here)
- Fix some instances of NetworkManager not remembering your WEP key
- Fix some races between NetworkManager and NetworkManagerInfo where
NetworkManager wouldn't recognize changes in the allowed list
- Don't shove Ad-Hoc Access Point MAC addresses into GConf
* Tue Jan 25 2005 Dan Williams <dcbw@redhat.com> 0.3.3-1.cvs20050125
- Play nice with dbus 0.23
- Update our list of Allowed Wireless Networks more quickly
* Mon Jan 24 2005 Dan Williams <dcbw@redhat.com> 0.3.3-1.cvs20050124
- Update to latest CVS
- Make sure we start as late as possible so that we ensure dbus & HAL
are already around
- Fix race in initial device activation
2005-01-24 09:10:12 +00:00
* Mon Jan 24 2005 Than Ngo <than@redhat.com> 0.3.3-1.cvs20050112.4
- rebuilt against new wireless tool
2005-02-02 22:38:51 +00:00
* Thu Jan 21 2005 <dcbw@redhat.com> - 0.3.3-1.cvs20050118
- Fix issue where NM wouldn't recognize that access points were
encrypted, and then would try to connect without encryption
- Refine packaging to put client library in separate package
- Remove bind+caching-nameserver dep for FC-3, use 'nscd -i hosts'
instead. DNS queries may timeout now right after device
activation due to this change.
* Wed Jan 12 2005 <dcbw@redhat.com> - 0.3.3-1.cvs20050112
- Update to latest CVS
- Fixes to DHCP code
- Link-Local (ZeroConf/Rendezvous) support
- Use bind in "caching-nameserver" mode to work around stupidity
in glibc's resolver library not recognizing resolv.conf changes
- #rh144818# Clean up the specfile (Patch from Matthias Saou)
- Ad-Hoc mode support with Link-Local addressing only (for now)
- Fixes for device activation race conditions
- Wireless scanning in separate thread
* Wed Dec 8 2004 <dcbw@redhat.com> - 0.3.2-4.3.cvs20041208
- Update to CVS
- Updates to link detection, DHCP code
- Remove NMLaunchHelper so we start up faster and don't
block for a connection. This means services that depend
on the network may fail if they start right after NM
- Make sure DHCP renew/rebinding works
* Wed Nov 17 2004 <dcbw@redhat.com> - 0.3.2-3.cvs20041117
- Update to CVS
- Fixes to link detection
- Better detection of non-ESSID-broadcasting access points
- Don't dialog-spam the user if a connection fails
* Mon Nov 11 2004 <dcbw@redhat.com> - 0.3.2-2.cvs20041115
- Update to CVS
- Much better link detection, works with Open System authentication
- Blacklist wireless cards rather than whitelisting them
2004-10-29 20:59:34 +00:00
* Fri Oct 29 2004 <dcbw@redhat.com> - 0.3.2-2.cvs20041029
- #rh134893# NetworkManagerInfo and the panel-icon life-cycle
- #rh134895# Status icon should hide when in Wired-only mode
- #rh134896# Icon code needs rewrite
- #rh134897# "Other Networks..." dialog needs implementing
- #rh135055# Menu highlights incorrectly in NM
- #rh135648# segfault with cipsec0
- #rh135722# NetworkManager will not allow zaurus to sync via usb0
- #rh135999# NetworkManager-0.3.1 will not connect to 128 wep
- #rh136866# applet needs tooltips
- #rh137047# lots of applets, yay!
- #rh137341# Network Manager dies after disconnecting from wired network second time
- Better checking for wireless devices
- Fix some memleaks
- Fix issues with dhclient declining an offered address
- Fix an activation thread deadlock
- More accurately detect "Other wireless networks" that are encrypted
- Don't bring devices down as much, won't hotplug-spam as much anymore
about firmware
- Add a "network not found" dialog when the user chooses a network that could
not be connected to
* Tue Oct 26 2004 <dcbw@redhat.com> - 0.3.1-2
- Fix escaping of ESSIDs in gconf
* Tue Oct 19 2004 <jrb@redhat.com> - 0.3.1-1
- minor point release to improve error handling and translations
2004-10-15 14:37:33 +00:00
* Fri Oct 15 2004 Dan Williams <dcbw@redhat.com> 0.3-1
- Update from CVS, version 0.3
2004-10-12 15:04:51 +00:00
* Tue Oct 12 2004 Dan Williams <dcbw@redhat.com> 0.2-4
- Update from CVS
- Improvements:
o Better link checking on wireless cards
o Panel applet now a Notification Area icon
o Static IP configuration support
2004-09-13 21:09:43 +00:00
* Mon Sep 13 2004 Dan Williams <dcbw@redhat.com> 0.2-3
- Update from CVS
* Sat Sep 11 2004 Dan Williams <dcbw@redhat.com> 0.2-2
- Require gnome-panel, not gnome-panel-devel
- Turn off by default
* Thu Aug 26 2004 Dan Williams <dcbw@redhat.com> 0.2-1
- Update to 0.2
* Thu Aug 26 2004 Florian La Roche <Florian.LaRoche@redhat.de>
- spec-changes to req glib2 instead of glib
* Fri Aug 20 2004 Dan Williams <dcbw@redhat.com> 0.1-3
- First public release