~ubuntu-branches/ubuntu/wily/fcoe-utils/wily

« back to all changes in this revision

Viewing changes to fcoe-utils.spec.in

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-02-16 14:46:23 UTC
  • Revision ID: james.westby@ubuntu.com-20100216144623-n6gqxpxc5nvonv9f
Tags: upstream-1.0.9
ImportĀ upstreamĀ versionĀ 1.0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Name:           fcoe-utils
 
2
Version:        @VERSION@
 
3
Release:        1%{?dist}
 
4
Summary:        Fibre Channel over Ethernet utilities
 
5
 
 
6
Group:          Applications/System
 
7
License:        GPLv2
 
8
URL:            http://www.open-fcoe.org
 
9
Source0:        http://www.open-fcoe.org/openfc/%{name}-%{version}.tar.gz
 
10
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
11
 
 
12
BuildRequires:  libHBAAPI-devel dcbd-devel
 
13
Requires:       dcbd
 
14
Requires(post):   chkconfig
 
15
Requires(preun):  chkconfig initscripts
 
16
Requires(postun): initscripts
 
17
 
 
18
%description
 
19
Fibre Channel over Ethernet utilities
 
20
fcoeadm - command line tool for configuring FCoE interfaces
 
21
fcoemon - service to configure DCB Ethernet QOS filters, works with dcbd
 
22
 
 
23
%prep
 
24
%setup -q
 
25
 
 
26
 
 
27
%build
 
28
%configure
 
29
make %{?_smp_mflags}
 
30
 
 
31
 
 
32
%install
 
33
rm -rf $RPM_BUILD_ROOT
 
34
make install DESTDIR=$RPM_BUILD_ROOT
 
35
 
 
36
 
 
37
%clean
 
38
rm -rf $RPM_BUILD_ROOT
 
39
 
 
40
 
 
41
%post
 
42
/sbin/chkconfig --add fcoe
 
43
 
 
44
%preun
 
45
if [ $1 = 0 ]; then
 
46
        /sbin/service fcoe stop
 
47
        /sbin/chkconfig --del fcoe
 
48
fi
 
49
 
 
50
%postun
 
51
if [ $1 = 1 ]; then
 
52
        /sbin/service fcoe condrestart
 
53
fi
 
54
 
 
55
 
 
56
%files
 
57
%defattr(-,root,root,-)
 
58
%doc README
 
59
%doc COPYING
 
60
%{_sbindir}/*
 
61
%{_mandir}/man8/*
 
62
%{_sysconfdir}/fcoe
 
63
%config(noreplace) %{_sysconfdir}/fcoe/config
 
64
%{_sysconfdir}/init.d/fcoe
 
65
 
 
66
 
 
67
%changelog
 
68
* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 1.0.7-1
 
69
- initial rpm build of fcoe tools
 
70