Name: libteam
#%define _snap 20160809
Version: 1.26
-Release: 0.1
+Release: 1
License: LGPL v2.1+
Group: Libraries
Source0: http://libteam.org/files/%{name}-%{version}.tar.gz
%description static -l pl.UTF-8
Statyczna biblioteka libteam.
+%package -n teamd
+Group: Networking/Admin
+Summary: Team network device control daemon
+Requires: libteam = %{version}-%{release}
+
+%description -n teamd
+The teamd package contains team network device control daemon.
+
%prep
%setup -q
%patch0 -p1
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-/sbin/ldconfig
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%post -n teamd
export NORESTART="yes"
%systemd_post teamd-lvl1.target teamd-lvl2.target
-%preun
+%preun -n teamd
%systemd_preun teamd-lvl1.target teamd-lvl2.target
-%postun
-/sbin/ldconfig
+%postun -n teamd
%systemd_reload
-%files
+%files -n teamd
%defattr(644,root,root,755)
%doc README teamd/example_configs
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/teamd
%attr(755,root,root) %{_bindir}/bond2team
%attr(755,root,root) %{_bindir}/teamd
%attr(755,root,root) %{_bindir}/teamdctl
-%attr(755,root,root) %{_bindir}/teamnl
-%attr(755,root,root) %{_libdir}/libteam.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libteam.so.5
%attr(755,root,root) %{_libdir}/libteamdctl.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libteamdctl.so.0
%attr(755,root,root) /lib/systemd/system-generators/teamd-lvl?-service-generator
%{_mandir}/man5/teamd.conf.5*
%{_mandir}/man8/teamd.8*
%{_mandir}/man8/teamdctl.8*
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/teamnl
+%attr(755,root,root) %{_libdir}/libteam.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libteam.so.5
%{_mandir}/man8/teamnl.8*
%files devel