~ubuntu-branches/ubuntu/wily/openvswitch/wily

« back to all changes in this revision

Viewing changes to xenserver/openvswitch-xen.spec.in

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-08-10 11:35:15 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20150810113515-575vj06oq29emxsn
Tags: 2.4.0~git20150810.97bab95-0ubuntu1
* New upstream snapshot from 2.4 branch:
  - d/*: Align any relevant packaging changes with upstream.
* d/*: wrap-and-sort.
* d/openvswitch-{common,vswitch}.install: Correct install location for
  bash completion files.
* d/tests/openflow.py: Explicitly use ovs-testcontroller as provided
  by 2.4.0 release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Spec file for Open vSwitch.
2
2
 
3
 
# Copyright (C) 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
 
3
# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc.
4
4
#
5
5
# Copying and distribution of this file, with or without modification,
6
6
# are permitted in any medium without royalty provided the copyright
96
96
%setup -q -n openvswitch-%{openvswitch_version}
97
97
 
98
98
%build
99
 
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=%{_localstatedir} --with-linux=/lib/modules/%{xen_version}/build --enable-ssl
 
99
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=%{_localstatedir} --with-linux=/lib/modules/%{xen_version}/build --enable-ssl CFLAGS='-g -O2 -msse -msse2'
100
100
make %{_smp_mflags}
101
101
 
102
102
%install
149
149
# Get rid of stuff we don't want to make RPM happy.
150
150
rm \
151
151
    $RPM_BUILD_ROOT/usr/bin/ovs-benchmark \
 
152
    $RPM_BUILD_ROOT/usr/bin/ovs-testcontroller \
152
153
    $RPM_BUILD_ROOT/usr/bin/ovs-l3ping \
153
154
    $RPM_BUILD_ROOT/usr/bin/ovs-pki \
154
155
    $RPM_BUILD_ROOT/usr/bin/ovs-test \
155
156
    $RPM_BUILD_ROOT/usr/share/man/man1/ovs-benchmark.1 \
 
157
    $RPM_BUILD_ROOT/usr/share/man/man8/ovs-testcontroller.8 \
156
158
    $RPM_BUILD_ROOT/usr/share/man/man8/ovs-l3ping.8 \
157
159
    $RPM_BUILD_ROOT/usr/share/man/man8/ovs-pki.8 \
158
160
    $RPM_BUILD_ROOT/usr/share/man/man8/ovs-test.8
159
161
(cd "$RPM_BUILD_ROOT" && rm -f usr/lib/lib*)
 
162
(cd "$RPM_BUILD_ROOT" && rm -rf usr/include)
 
163
(cd "$RPM_BUILD_ROOT" && rm -rf usr/lib/pkgconfig)
160
164
 
161
165
install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch
162
166
 
434
438
 
435
439
%files
436
440
%defattr(-,root,root)
 
441
/etc/bash_completion.d/ovs-appctl-bashcomp.bash
 
442
/etc/bash_completion.d/ovs-vsctl-bashcomp.bash
437
443
/etc/init.d/openvswitch
438
444
/etc/init.d/openvswitch-xapi-update
439
445
/etc/xapi.d/plugins/openvswitch-cfg-update
464
470
/usr/bin/ovs-appctl
465
471
/usr/bin/ovs-dpctl
466
472
/usr/bin/ovs-dpctl-top
 
473
/usr/bin/ovs-docker
467
474
/usr/bin/ovs-ofctl
468
475
/usr/bin/ovs-parse-backtrace
469
476
/usr/bin/ovs-pcap
503
510
 
504
511
%files %{module_package}
505
512
/lib/modules/%{xen_version}/extra/openvswitch/openvswitch.ko
 
513
/lib/modules/%{xen_version}/extra/openvswitch/vport-*.ko