X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=rhel%2Fopenvswitch.spec.in;h=00d1aa754e34e321a8b030b6bae579a2ffc2b1d3;hb=2dc7590de5e0adae1e332ff84c0c8af264f403b9;hp=f9a4e12a8948277384d6975ccddd108ae1eade9b;hpb=81fe12a77582f063f97e75f86b5f10e97dfbcaeb;p=sliver-openvswitch.git diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in index f9a4e12a8..00d1aa754 100644 --- a/rhel/openvswitch.spec.in +++ b/rhel/openvswitch.spec.in @@ -1,6 +1,6 @@ # Spec file for Open vSwitch on Red Hat Enterprise Linux. -# Copyright (C) 2009, 2010, 2011 Nicira Networks, Inc. +# Copyright (C) 2009, 2010, 2011, 2012 Nicira Networks, Inc. # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyright @@ -29,22 +29,25 @@ traffic. %setup -q %build -./configure --prefix=/usr --sysconfdir=/etc --localstatedir=%{_localstatedir} --enable-ssl %{?build_number} +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=%{_localstatedir} --enable-ssl make %{_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT -for base in \ - etc_init.d_openvswitch \ - etc_logrotate.d_openvswitch \ - etc_sysconfig_network-scripts_ifup-ovs \ - etc_sysconfig_network-scripts_ifdown-ovs \ - usr_share_openvswitch_scripts_sysconfig.template; do - dst=$RPM_BUILD_ROOT/$(echo $base | sed 's,_,/,g') - install -d -m755 "$(dirname $dst)" - install rhel/$base "$dst" -done + +rhel_cp() { + base=$1 + mode=$2 + dst=$RPM_BUILD_ROOT/$(echo $base | sed 's,_,/,g') + install -D -m $mode rhel/$base $dst +} +rhel_cp etc_init.d_openvswitch 0755 +rhel_cp etc_logrotate.d_openvswitch 0644 +rhel_cp etc_sysconfig_network-scripts_ifup-ovs 0755 +rhel_cp etc_sysconfig_network-scripts_ifdown-ovs 0755 +rhel_cp usr_share_openvswitch_scripts_sysconfig.template 0644 + docdir=$RPM_BUILD_ROOT/usr/share/doc/openvswitch-%{version} install -d -m755 "$docdir" install -m 0644 rhel/README.RHEL "$docdir" @@ -103,10 +106,9 @@ exit 0 %files %defattr(-,root,root) /etc/init.d/openvswitch -/etc/logrotate.d/openvswitch +%config(noreplace) /etc/logrotate.d/openvswitch /etc/sysconfig/network-scripts/ifup-ovs /etc/sysconfig/network-scripts/ifdown-ovs -/etc/openvswitch/bugtool-plugins/* /usr/bin/ovs-appctl /usr/bin/ovs-benchmark /usr/bin/ovs-dpctl @@ -141,10 +143,12 @@ exit 0 /usr/share/man/man8/ovs-vlan-test.8.gz /usr/share/man/man8/ovs-vsctl.8.gz /usr/share/man/man8/ovs-vswitchd.8.gz +/usr/share/openvswitch/bugtool-plugins/ /usr/share/openvswitch/python/ /usr/share/openvswitch/scripts/ovs-bugtool-* +/usr/share/openvswitch/scripts/ovs-check-dead-ifs /usr/share/openvswitch/scripts/ovs-ctl -/usr/share/openvswitch/scripts/ovs-lib.sh +/usr/share/openvswitch/scripts/ovs-lib /usr/share/openvswitch/scripts/ovs-save /usr/share/openvswitch/scripts/sysconfig.template /usr/share/openvswitch/vswitch.ovsschema