diff --git a/libteam.spec b/libteam.spec index b7a9845..7882e3e 100644 --- a/libteam.spec +++ b/libteam.spec @@ -6,9 +6,11 @@ License: LGPLv2+ URL: http://www.libteam.org Source: http://www.libteam.org/files/libteam-%{version}.tar.gz -BuildRequires: gcc jansson-devel libdaemon-devel libnl3-devel +BuildRequires: gcc jansson-devel libdaemon-devel libnl3-devel BuildRequires: swig python2-devel dbus-devel systemd doxygen +Provides: teamd = %{version}-%{release} +Provides: teamd%{?_isa} = %{version}-%{release} %description This package is the user-space counterpart for the team network @@ -17,24 +19,12 @@ driver, and provides an API to control them. %package devel Summary : The devel for %{name} Requires: %{name} = %{version}-%{release} +Provides: teamd-devel = %{version}-%{release} +Provides: teamd-devel%{?_isa} = %{version}-%{release} %description devel Libraries and header files for libteam development -%package -n teamd -Summary: Device control daemon for team network -Requires: %{name} = %{version}-%{release} - -%description -n teamd -Team network device control daemon - -%package -n teamd-devel -Summary: The devel for teamd -Requires: %{name} = %{version}-%{release} - -%description -n teamd-devel -Libraries and header files for teamd development - %package -n network-scripts-teamd Summary: legacy network service support of teamd Requires: network-scripts @@ -104,8 +94,14 @@ popd %files %license COPYING +%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/teamd.conf +%config(noreplace) %attr(644,root,root) %{_unitdir}/teamd@.service %{_libdir}/libteam.so.* %{_bindir}/teamnl +%{_libdir}/libteamdctl.so.* +%{_bindir}/teamd +%{_bindir}/teamdctl +%{_bindir}/bond2team %files devel %{_includedir}/team.h @@ -113,17 +109,6 @@ popd %{_libdir}/pkgconfig/libteam.pc %{_libdir}/*.a %{_libdir}/*.la - -%files -n teamd -%doc teamd/example_configs teamd/redhat/example_ifcfgs/ -%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/teamd.conf -%config(noreplace) %attr(644,root,root) %{_unitdir}/teamd@.service -%{_libdir}/libteamdctl.so.* -%{_bindir}/teamd -%{_bindir}/teamdctl -%{_bindir}/bond2team - -%files -n teamd-devel %{_includedir}/teamdctl.h %{_libdir}/libteamdctl.so %{_libdir}/pkgconfig/libteamdctl.pc @@ -140,6 +125,7 @@ popd %files help %doc _tmpdoc1/examples %doc doc/api +%doc teamd/example_configs teamd/redhat/example_ifcfgs/ %doc _tmpdoc2/examples %{_mandir}/man1/bond2team.1* %{_mandir}/man5/teamd.conf.5*