File dcbd.spec of Package dcbd
#
# spec file for package dcbd (Version 0.7.31rt)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: dcbd
Summary: Intel(R) EEDC Connection
Version: 0.7.31rt
Release: 6
Source: %{name}-%{version}.tar.bz2
License: GPL v2 only
Group: System/Daemons
BuildRequires: bison flex gcc-c++ libstdc++-devel
AutoReqProv: On
Url: http://www.intel.com/network/connectivity/products/server_adapters.htm
Source1: dcbnl.h
Source2: rtnetlink.h
Patch1: %{name}-%{version}-manpage-install
Patch2: %{name}-%{version}-rpmlint-fixes
Patch3: %{name}-0.7.35rt.patch
Patch4: %{name}-0.7.35rt-sysconfig.diff
Patch5: %{name}-0.7.35rt_to_0.9.2.patch
Patch6: %{name}-0.9.2_to_0.9.2.2.patch
Patch7: %{name}-0.7.35rt-config.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains the Linux user space daemon and configuration
tool for Intel Enhanced Ethernet for the Data Center software.
Authors:
--------
e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
mkdir include/linux
cp %{S:1} %{S:2} include/linux
%build
make OPT_FLAGS="${RPM_OPT_FLAGS}" DEFAULT_CFG_PATH=/etc/sysconfig/
%install
make DEFAULT_CFG_PATH=/etc/sysconfig/ INSTALL_MOD_PATH=%{buildroot} install
touch %{buildroot}/etc/dcbd.conf
mkdir ${RPM_BUILD_ROOT}/sbin
ln -s /etc/init.d/dcbd ${RPM_BUILD_ROOT}/sbin/rcdcbd
%post
%{fillup_and_insserv -n -i dcbd}
%preun
%{stop_on_removal dcbd}
%postun
%{insserv_cleanup dcbd}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%ghost %config /etc/dcbd.conf
/usr/sbin/dcbd
/usr/sbin/dcbtool
/etc/init.d/dcbd
/sbin/rcdcbd
%{_mandir}/man7/*
%doc COPYING README
%changelog
* Thu Feb 05 2009 sf@suse.de
- make /etc/dcbd.conf a ghost file (bnc #472225)
* Fri Jan 23 2009 sf@suse.de
- switch to version 0.9.2 (bnc #438954), dcbd-0.7.35rt_to_0.9.2.patch
- switch to version 0.9.22 (bnc 462487), dcbd-0.9.2_to_0.9.2.2.patch
allows 'dcbd' to communicate with peers (switches) who only support
version 2 of the DCB capabilities exchange protocol.
corrections for the 'dcbd' and 'dcbtool' man pages.
corrections for the 'dcbd' README file.
corrections to the help text displayed by 'dcbtool'
- change configuration to /etc/dcbd.conf, dcbd-0.7.35rt-config.diff
* Fri Dec 19 2008 sf@suse.de
- change path of configfile from /etc/sysconfig/dcbd/
to /etc/sysconfig/ (dcbd-0.7.35rt-sysconfig.diff) (bnc #446961)
* Fri Nov 28 2008 sf@suse.de
- update to version 0.7.35rt (bnc #438954) (dcbd-0.7.35rt.patch)
- use RPM_OPT_FLAGS
- add rtnetlink.h
- fix Makefile
- fix specfile
* Tue Oct 14 2008 ro@suse.de
- remove some comments from specfile
* Tue Sep 23 2008 hare@suse.de
- Initial package, based on dcbd-0.7.25rt (FATE#303914)