X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=rhel%2Fopenvswitch.spec.in;h=14496e7ddb06629048256c3858160efe1eb18d6b;hb=6fca1ffbff93d507336961602947b46320e0ef41;hp=2cf9535a5ce83c1d84066dd30a4bd45ab428c916;hpb=6c88547dd0f75a29e6d1c0cd3c76d9678fa4752f;p=openvswitch diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in index 2cf9535a..14496e7d 100644 --- a/rhel/openvswitch.spec.in +++ b/rhel/openvswitch.spec.in @@ -35,17 +35,19 @@ make %{_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT -install -d -m 755 $RPM_BUILD_ROOT/etc -install -d -m 755 $RPM_BUILD_ROOT/etc/init.d -install -m 755 rhel/etc_init.d_openvswitch \ - $RPM_BUILD_ROOT/etc/init.d/openvswitch -install -d -m 755 $RPM_BUILD_ROOT/etc/sysconfig -install -d -m 755 $RPM_BUILD_ROOT/etc/logrotate.d -install -m 755 rhel/etc_logrotate.d_openvswitch \ - $RPM_BUILD_ROOT/etc/logrotate.d/openvswitch -install -d -m 755 $RPM_BUILD_ROOT/usr/share/openvswitch/scripts -install -m 755 rhel/usr_share_openvswitch_scripts_sysconfig.template \ - $RPM_BUILD_ROOT/usr/share/openvswitch/scripts/sysconfig.template +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 +docdir=$RPM_BUILD_ROOT/usr/share/doc/openvswitch-%{version} +install -d -m755 "$docdir" +install rhel/README.RHEL "$docdir" install python/compat/uuid.py $RPM_BUILD_ROOT/usr/share/openvswitch/python install python/compat/argparse.py $RPM_BUILD_ROOT/usr/share/openvswitch/python @@ -53,6 +55,8 @@ install python/compat/argparse.py $RPM_BUILD_ROOT/usr/share/openvswitch/python rm \ $RPM_BUILD_ROOT/usr/bin/ovs-controller \ $RPM_BUILD_ROOT/usr/share/man/man8/ovs-controller.8 \ + $RPM_BUILD_ROOT/usr/bin/ovs-test \ + $RPM_BUILD_ROOT/usr/share/man/man8/ovs-test.8 \ $RPM_BUILD_ROOT/usr/sbin/ovs-vlan-bug-workaround \ $RPM_BUILD_ROOT/usr/share/man/man8/ovs-vlan-bug-workaround.8 @@ -100,6 +104,8 @@ exit 0 %defattr(-,root,root) /etc/init.d/openvswitch /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 @@ -142,4 +148,5 @@ exit 0 /usr/share/openvswitch/scripts/ovs-save /usr/share/openvswitch/scripts/sysconfig.template /usr/share/openvswitch/vswitch.ovsschema +/usr/share/doc/openvswitch-%{version}/README.RHEL /var/lib/openvswitch