SHA256
1
0
forked from pool/bridge-utils
bridge-utils/bridge-utils.spec
Pedro Monreal Gonzalez fba1f17298 Accepting request 844385 from home:pmonrealgonzalez:branches:network:utilities
- This utility is DEPRECATED. No new features will ever be added.
  Instead use the bridge command from the iproute2 package which
  supports more features.
- Update to version 1.7
  * Replace references to enslave
  * Remove out of date TODO
  * brctl: fix signed/unsigned comparison warnings
  * libbridge: add missing sys/time.h include in header
  * libbridge: Include the configured CFLAGS when compiling
- Rebase patches:
  * bridge-utils-1.5-ip6.patch
  * bridge-utils-1.5-optflags.patch

OBS-URL: https://build.opensuse.org/request/show/844385
OBS-URL: https://build.opensuse.org/package/show/network:utilities/bridge-utils?expand=0&rev=28
2020-11-03 07:35:09 +00:00

80 lines
2.4 KiB
RPMSpec

#
# spec file for package bridge-utils
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: bridge-utils
Version: 1.7
Release: 0
Summary: Utilities for Configuring the Linux Ethernet Bridge
License: GPL-2.0-or-later
Group: Productivity/Networking/Routing
URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge
Source: http://www.kernel.org/pub/linux/utils/net/bridge-utils/%{name}-%{version}.tar.gz
Patch0: %{name}-1.5-hz.diff
Patch1: %{name}-1.5-optflags.patch
Patch2: bridge-utils-1.5-ip6.patch
BuildRequires: automake
BuildRequires: libsysfs
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains utilities for configuring the Linux ethernet
bridge. The Linux ethernet bridge can be used for connecting multiple
ethernet devices together. The connection is fully transparent: hosts
connected to one ethernet device see hosts connected to the other
ethernet devices directly.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%description devel
The %{name} devel package contains files needed for development.
%prep
%setup -q
%patch0
%patch1
%patch2
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
autoreconf -fiv
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
install -d -m 755 %{buildroot}/sbin
install -D -m 644 libbridge/libbridge.h %{buildroot}%{_includedir}/libbridge.h
install -D -m 644 libbridge/libbridge.a %{buildroot}%{_libdir}/libbridge.a
%files
%defattr(-,root,root)
%license COPYING
%doc AUTHORS ChangeLog README THANKS doc/[FHPRSW]*
%{_mandir}/man?/*
%{_sbindir}/*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/lib*
%changelog