File dcbd.spec of Package dcbd
#
# spec file for package dcbd (Version 0.7.31rt)
#
# Copyright (c) 2008 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: 1
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
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
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 INSTALL_MOD_PATH=%{buildroot} install
echo "% DCB configuration file" > %{buildroot}/etc/dcbd.conf
%post
%{fillup_and_insserv -n -i dcbd}
%preun
%{stop_on_removal dcbd}
%postun
%{insserv_cleanup dcbd}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%config /etc/dcbd.conf
/usr/sbin/dcbd
/usr/sbin/dcbtool
/etc/init.d/dcbd
%{_mandir}/man7/*
%doc COPYING README
%changelog
* 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)