Name: libteam Version: 0.1 Release: 20.20121105git3b95b34%{?dist} Summary: Library for controlling team network device Group: System Environment/Libraries License: LGPLv2+ URL: http://www.libteam.org # The source for this package was pulled from upstream's vcs. Use the # following commands to generate the tarball: # git clone git://github.com/jpirko/libteam.git # cd libteam/ # git reset --hard 3b95b34 # ./autogen.sh # ./configure # make distcheck # mv libteam-0.1.tar.gz libteam-20121105git3b95b34.tar.gz Source0: libteam-20121105git3b95b34.tar.gz BuildRequires: jansson-devel BuildRequires: libdaemon-devel BuildRequires: libnl3-devel BuildRequires: python-devel BuildRequires: dbus-devel BuildRequires: swig %description This package contains a library which is a user-space counterpart for team network driver. It provides an API to control team network devices. %package devel Group: Development/Libraries Summary: Libraries and header files for libteam development Requires: libteam = %{version}-%{release} %package -n teamd Group: System Environment/Daemons Summary: Team network device control daemon Requires: libteam = %{version}-%{release} %package -n python-libteam Group: Development/Libraries Summary: Team network device library bindings Requires: libteam = %{version}-%{release} %description devel The libteam-devel package contains the header files and libraries necessary for developing programs using libteam. %description -n teamd The teamd package contains team network device control daemon. %description -n python-libteam The team-python package contains a module that permits applications written in the Python programming language to use the interface supplied by team network device library. This package should be installed if you want to develop Python programs that will manipulate team network devices. %{?filter_setup: %filter_provides_in %{python_sitearch}.*\.so$ %filter_setup } %prep %setup -q # prepare example dir for -devel mkdir -p _tmpdoc1/examples cp -p examples/*.c _tmpdoc1/examples # prepare example dir for team-python mkdir -p _tmpdoc2/examples cp -p examples/python/*.py _tmpdoc2/examples chmod -x _tmpdoc2/examples/*.py %build %configure --disable-static make %{?_smp_mflags} cd binding/python python ./setup.py build %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" find $RPM_BUILD_ROOT -name \*.la -delete rm -rf $RPM_BUILD_ROOT/%{_bindir}/team_* mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d install -p teamd/dbus/teamd.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d/ mkdir -p $RPM_BUILD_ROOT%{_unitdir} install -p teamd/redhat/systemd/teamd@.service $RPM_BUILD_ROOT%{_unitdir} mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifup-Team $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifdown-Team $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifup-TeamPort $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts install -p -m 755 teamd/redhat/initscripts_systemd/network-scripts/ifdown-TeamPort $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts cd binding/python python ./setup.py install --root $RPM_BUILD_ROOT -O1 %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc COPYING %{_libdir}/*so.* %{_bindir}/teamnl %{_mandir}/man8/teamnl.8* %files devel %defattr(-,root,root,-) %doc COPYING _tmpdoc1/examples %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %files -n teamd %defattr(-,root,root,-) %doc COPYING 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 %{_sysconfdir}/sysconfig/network-scripts/ifup-Team %{_sysconfdir}/sysconfig/network-scripts/ifdown-Team %{_sysconfdir}/sysconfig/network-scripts/ifup-TeamPort %{_sysconfdir}/sysconfig/network-scripts/ifdown-TeamPort %{_bindir}/teamd %{_bindir}/teamdctl %{_mandir}/man8/teamd.8* %{_mandir}/man8/teamdctl.8* %{_mandir}/man5/teamd.conf.5* %files -n python-libteam %defattr(-,root,root,-) %doc COPYING _tmpdoc2/examples %{python_sitearch}/* %changelog * Mon Nov 05 2012 Jiri Pirko - 0.1-20.20121105git3b95b34 - Rebase to git commit 3b95b34 * Thu Oct 25 2012 Jiri Pirko - 0.1-19.20121025git7fe7c72 - Rebase to git commit 7fe7c72 * Tue Oct 19 2012 Jiri Pirko - 0.1-18.20121019git1a91059 - Rebase to git commit 1a91059 * Tue Oct 07 2012 Jiri Pirko - 0.1-17.20121007git6f48751 - Rebase to git commit 6f48751 * Tue Sep 25 2012 Jiri Pirko - 0.1-16.20120925gitcc5cddc - Rebase to git commit cc5cddc * Tue Sep 23 2012 Jiri Pirko - 0.1-15.20120923git8448186 - Rebase to git commit 8448186 * Tue Sep 04 2012 Jiri Pirko - 0.1-14.20120904gitbdcf72c - Rebase to git commit bdcf72c * Thu Aug 22 2012 Jiri Pirko - 0.1-13.20120822gitc0d943d - Rebase to git commit c0d943d * Thu Aug 07 2012 Jiri Pirko - 0.1-12.20120807git9fa4a96 - Rebase to git commit 9fa4a96 * Thu Jul 19 2012 Fedora Release Engineering - 0.1-11.20120628gitca7b526 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jun 28 2012 Jiri Pirko - 0.1-10.20120628gitca7b526 - Rebase to git commit ca7b526 * Thu Jun 27 2012 Jiri Pirko - 0.1-9.20120627git96569f8 - Rebase to git commit 96569f8 * Thu Jun 27 2012 Jiri Pirko - 0.1-8.20120627gitcd6b557 - Rebase to git commit cd6b557 * Thu Jun 20 2012 Jiri Pirko - 0.1-7.20120620gita88fabf - Rebase to git commit a88fabf * Thu May 04 2012 Jiri Pirko - 0.1-6.20120504git11e234a - Rebase to git commit 11e234a * Thu Apr 05 2012 Jiri Pirko - 0.1-5.20120405gita82f8ac - Rebase to git commit a82f8ac * Sat Feb 21 2012 Jiri Pirko - 0.1-4.20120221gitfe97f63 - Rebase to git commit fe97f63 * Mon Jan 30 2012 Jiri Pirko - 0.1-3.20120130gitb5cf2a8 - Rebase to git commit b5cf2a8 * Wed Jan 25 2012 Jiri Pirko - 0.1-2.20120125gita1718f8 - Rebase to git commit a1718f8 * Wed Jan 18 2012 Jiri Pirko - 0.1-1.20120113git302672e - Initial build.