forked from pool/libteam
- Drop /pkg/ subpart from includedir
OBS-URL: https://build.opensuse.org/package/show/network/libteam?expand=0&rev=16
This commit is contained in:
parent
cfb90f4d8c
commit
65e2ff8c8c
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 5 00:31:20 UTC 2018 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Drop /pkg/ subpart from includedir
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 3 14:07:18 UTC 2018 - tchvatal@suse.com
|
Wed Jan 3 14:07:18 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
25
libteam.spec
25
libteam.spec
@ -17,11 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
%define teamd_user teamd
|
|
||||||
%define teamd_group daemon
|
|
||||||
%define teamd_daemon_directory /run/teamd
|
|
||||||
%define teamd_dbus_policy_directory %_sysconfdir/dbus-1/system.d
|
|
||||||
%define teamd_dbus_policy_name org.libteam.teamd.conf
|
|
||||||
Name: libteam
|
Name: libteam
|
||||||
Version: 1.27
|
Version: 1.27
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -29,6 +24,7 @@ Summary: Utilities for controlling 802.1AX team network device
|
|||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: System/Kernel
|
Group: System/Kernel
|
||||||
Url: http://libteam.org/
|
Url: http://libteam.org/
|
||||||
|
|
||||||
#Git-Web: https://github.com/jpirko/libteam
|
#Git-Web: https://github.com/jpirko/libteam
|
||||||
#Git-Clone: git://github.com/jpirko/libteam
|
#Git-Clone: git://github.com/jpirko/libteam
|
||||||
Source: http://libteam.org/files/%name-%version.tar.gz
|
Source: http://libteam.org/files/%name-%version.tar.gz
|
||||||
@ -38,7 +34,7 @@ Patch2: ignore_ebusy_for_team_hwaddr_set.patch
|
|||||||
Patch3: 0001-allow-send_interface-dbus.patch
|
Patch3: 0001-allow-send_interface-dbus.patch
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: libcap-devel
|
BuildRequires: libcap-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkg-config
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
BuildRequires: pkgconfig(dbus-1)
|
BuildRequires: pkgconfig(dbus-1)
|
||||||
BuildRequires: pkgconfig(jansson)
|
BuildRequires: pkgconfig(jansson)
|
||||||
@ -53,6 +49,11 @@ BuildRequires: pkgconfig(python2)
|
|||||||
%if 0%{?suse_version} >= 1220
|
%if 0%{?suse_version} >= 1220
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
%endif
|
%endif
|
||||||
|
%define teamd_user teamd
|
||||||
|
%define teamd_group daemon
|
||||||
|
%define teamd_daemon_directory /run/teamd
|
||||||
|
%define teamd_dbus_policy_directory %_sysconfdir/dbus-1/system.d
|
||||||
|
%define teamd_dbus_policy_name org.libteam.teamd.conf
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A library which is the user-space counterpart for the team network
|
A library which is the user-space counterpart for the team network
|
||||||
@ -126,7 +127,7 @@ programs that will manipulate team network devices.
|
|||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --includedir="%_includedir/pkg/%name" --bindir="%_sbindir" \
|
%configure --includedir="%_includedir/%name" --bindir="%_sbindir" \
|
||||||
--disable-silent-rules \
|
--disable-silent-rules \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--with-run-dir=%teamd_daemon_directory \
|
--with-run-dir=%teamd_daemon_directory \
|
||||||
@ -141,7 +142,7 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
b=%{buildroot}
|
b="%buildroot"
|
||||||
%make_install
|
%make_install
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
pushd binding/python/
|
pushd binding/python/
|
||||||
@ -167,7 +168,7 @@ make check
|
|||||||
getent group daemon >/dev/null || %_sbindir/groupadd -r %teamd_group
|
getent group daemon >/dev/null || %_sbindir/groupadd -r %teamd_group
|
||||||
getent passwd %teamd_user >/dev/null || \
|
getent passwd %teamd_user >/dev/null || \
|
||||||
%_sbindir/useradd -r -g %teamd_group -s /bin/false \
|
%_sbindir/useradd -r -g %teamd_group -s /bin/false \
|
||||||
-c "Teamd daemon user" -d %{_localstatedir}/lib/empty %teamd_user
|
-c "Teamd daemon user" -d %_localstatedir/lib/empty %teamd_user
|
||||||
%_sbindir/usermod -g %teamd_group %teamd_user 2>/dev/null
|
%_sbindir/usermod -g %teamd_group %teamd_user 2>/dev/null
|
||||||
test -L %teamd_daemon_directory || rm -rf %teamd_daemon_directory && :
|
test -L %teamd_daemon_directory || rm -rf %teamd_daemon_directory && :
|
||||||
%if 0%{?_unitdir:1}
|
%if 0%{?_unitdir:1}
|
||||||
@ -176,7 +177,7 @@ test -L %teamd_daemon_directory || rm -rf %teamd_daemon_directory && :
|
|||||||
|
|
||||||
%post tools
|
%post tools
|
||||||
# reload dbus to apply new teamd's policy
|
# reload dbus to apply new teamd's policy
|
||||||
%{_bindir}/systemctl reload dbus.service 2>/dev/null || :
|
systemctl reload dbus.service 2>/dev/null || :
|
||||||
%if 0%{?_unitdir:1}
|
%if 0%{?_unitdir:1}
|
||||||
%service_add_post teamd@.service
|
%service_add_post teamd@.service
|
||||||
%endif
|
%endif
|
||||||
@ -192,7 +193,7 @@ test -L %teamd_daemon_directory || rm -rf %teamd_daemon_directory && :
|
|||||||
%endif
|
%endif
|
||||||
# reload dbus to forget teamd's policy
|
# reload dbus to forget teamd's policy
|
||||||
if [ ${FIRST_ARG:-$1} -eq 0 ]; then
|
if [ ${FIRST_ARG:-$1} -eq 0 ]; then
|
||||||
%{_bindir}/systemctl reload dbus.service 2>/dev/null || :
|
systemctl reload dbus.service 2>/dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post -n libteam5 -p /sbin/ldconfig
|
%post -n libteam5 -p /sbin/ldconfig
|
||||||
@ -207,7 +208,7 @@ fi
|
|||||||
%_libdir/libteamdctl.so.0*
|
%_libdir/libteamdctl.so.0*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%_includedir/pkg/
|
%_includedir/*
|
||||||
%_libdir/libteam.so
|
%_libdir/libteam.so
|
||||||
%_libdir/libteamdctl.so
|
%_libdir/libteamdctl.so
|
||||||
%_libdir/pkgconfig/libteam*.pc
|
%_libdir/pkgconfig/libteam*.pc
|
||||||
|
Loading…
Reference in New Issue
Block a user