forked from pool/netcontrol
- Merged spec file changes from openSUSE:Factory - Fixed libnl-devel build requires to build on 12.1 - Updated FSF address in copyright/license statements - version 0.2.5 - Fixed several bugs reported in bnc#760500, bnc#763388, bnc#765040, bnc#754001: - Fetch ip addresses and routes in system refresh via netlink, adds libnl-1 dependency to libnetcontrol. - Do not use -o rc for ifup or it fails when startmode is set to manual. - Always call ifstatus in ncf_if_status and not check interface operstate to better match ifstatus results - Check type while creating topology tree as well, not only if the interface specific data exists. - Do not report error in ncf_if_xml_state when interface does not exists any more [has been stopped/removed]. - Improved error handling, report several errors once - Expose a lot of error details to the caller - Fixed to parse and configure complete interface trees and fixed a senseless type check that caused SEGV. - Fetch mac address from system when not in the config - Fixed arp ip target bonding option handling and expose errors while trying to add not unique slave interface. - Refresh config handle earlier in ncf_define, fixed a double free in regression test it does. - Automatically start port/slave/base interfeces when stating a bridge/bond/vlan. - Lowered bad_reference (bridge config references an unknown interface) log level to warning (bnc#735187). OBS-URL: https://build.opensuse.org/package/show/network:utilities/netcontrol?expand=0&rev=8
120 lines
3.0 KiB
RPMSpec
120 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package netcontrol
|
|
#
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: netcontrol
|
|
Version: 0.2.6
|
|
Release: 0
|
|
Summary: A network configuration library
|
|
License: LGPL-2.1+
|
|
Group: Productivity/Networking/System
|
|
#
|
|
# License note:
|
|
# libnetcontrol contains source code which is based on wicked.
|
|
# Wicked is licensed under the GPL-2.0+, but permission has been
|
|
# granted by the authors of wicked to use the code derived from
|
|
# wicked under the LGPL-2.1+ in libnetcontrol.
|
|
#
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
Source1: baselibs.conf
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} >= 1210
|
|
BuildRequires: libnl-1_1-devel
|
|
%else
|
|
BuildRequires: libnl-devel
|
|
%endif
|
|
BuildRequires: pkg-config
|
|
|
|
%description
|
|
A interim network configuration library, currently implementing the
|
|
libnetcf interface for libvirt.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Olaf Kirch <okir@suse.de>
|
|
Marius Tomaschewski <mt@suse.de>
|
|
|
|
%package -n libnetcontrol0
|
|
Summary: A network configuration library
|
|
Group: Productivity/Networking/System
|
|
|
|
%description -n libnetcontrol0
|
|
A interim network configuration library, currently implementing the
|
|
libnetcf interface for libvirt.
|
|
|
|
The libnetcontrol0 package provides the shared library.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Olaf Kirch <okir@suse.de>
|
|
Marius Tomaschewski <mt@suse.de>
|
|
|
|
%package -n libnetcontrol-devel
|
|
Summary: Development header and library files
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libnetcontrol0 = %{version}
|
|
|
|
%description -n libnetcontrol-devel
|
|
A interim network configuration library, currently implementing the
|
|
libnetcf interface for libvirt.
|
|
|
|
The libnetcontrol-devel package contains libraries and header files
|
|
required for development.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Olaf Kirch <okir@suse.de>
|
|
Marius Tomaschewski <mt@suse.de>
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export CFLAGS="-W -Wall $RPM_OPT_FLAGS"
|
|
%configure \
|
|
--disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
%post -n libnetcontrol0
|
|
/sbin/ldconfig
|
|
|
|
%postun -n libnetcontrol0
|
|
/sbin/ldconfig
|
|
|
|
%files -n libnetcontrol0
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/*.so.*
|
|
|
|
%files -n libnetcontrol-devel
|
|
%defattr(-,root,root,-)
|
|
%doc README COPYING.LGPL COPYING.GPL
|
|
%{_libdir}/*.so
|
|
%{_includedir}/*
|
|
%{_datadir}/pkgconfig/netcontrol.pc
|
|
|
|
%changelog
|