libteam/libteam.spec

259 lines
8.5 KiB
RPMSpec
Raw Normal View History

2012-01-19 16:14:38 +00:00
Name: libteam
Version: 1.9
2014-01-23 12:37:39 +00:00
Release: 2%{?dist}
2012-01-19 16:14:38 +00:00
Summary: Library for controlling team network device
Group: System Environment/Libraries
License: LGPLv2+
URL: http://www.libteam.org
2013-01-31 12:58:46 +00:00
Source: http://www.libteam.org/files/libteam-%{version}.tar.gz
2012-01-30 09:43:33 +00:00
BuildRequires: jansson-devel
2012-01-19 16:14:38 +00:00
BuildRequires: libdaemon-devel
BuildRequires: libnl3-devel
BuildRequires: python-devel
2012-02-21 20:18:18 +00:00
BuildRequires: dbus-devel
2012-01-19 16:14:38 +00:00
BuildRequires: swig
%description
This package contains a library which is a user-space
counterpart for team network driver. It provides an API
2012-06-28 12:20:14 +00:00
to control team network devices.
2012-01-19 16:14:38 +00:00
%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}
2013-05-16 13:30:29 +00:00
%package -n teamd-devel
Group: Development/Libraries
Summary: Libraries and header files for teamd development
Requires: teamd = %{version}-%{release}
2012-01-19 16:14:38 +00:00
%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.
2013-05-16 13:30:29 +00:00
%description -n teamd-devel
The teamd-devel package contains the header files and libraries
necessary for developing programs using libteamdctl.
2012-01-19 16:14:38 +00:00
%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.
%prep
%setup -q
# prepare example dir for -devel
mkdir -p _tmpdoc1/examples
2012-09-04 11:40:28 +00:00
cp -p examples/*.c _tmpdoc1/examples
2012-01-19 16:14:38 +00:00
# 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_*
2012-06-27 13:37:50 +00:00
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dbus-1/system.d
2012-08-07 14:16:58 +00:00
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}
2012-06-28 12:05:40 +00:00
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/network-scripts
2012-08-07 14:16:58 +00:00
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
install -p -m 755 utils/bond2team $RPM_BUILD_ROOT%{_bindir}/bond2team
2012-01-19 16:14:38 +00:00
cd binding/python
python ./setup.py install --root $RPM_BUILD_ROOT -O1
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc COPYING
2013-05-16 13:30:29 +00:00
%{_libdir}/libteam.so.*
2012-09-04 11:40:28 +00:00
%{_bindir}/teamnl
%{_mandir}/man8/teamnl.8*
2012-01-19 16:14:38 +00:00
%files devel
%doc COPYING _tmpdoc1/examples
2013-05-16 13:30:29 +00:00
%{_includedir}/team.h
%{_libdir}/libteam.so
%{_libdir}/pkgconfig/libteam.pc
2012-01-19 16:14:38 +00:00
%files -n teamd
2012-06-28 12:05:40 +00:00
%doc COPYING teamd/example_configs teamd/redhat/example_ifcfgs/
2012-06-27 13:37:50 +00:00
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/teamd.conf
2012-08-07 14:16:58 +00:00
%config(noreplace) %attr(644,root,root) %{_unitdir}/teamd@.service
2012-06-28 12:05:40 +00:00
%{_sysconfdir}/sysconfig/network-scripts/ifup-Team
%{_sysconfdir}/sysconfig/network-scripts/ifdown-Team
%{_sysconfdir}/sysconfig/network-scripts/ifup-TeamPort
%{_sysconfdir}/sysconfig/network-scripts/ifdown-TeamPort
2013-05-16 13:30:29 +00:00
%{_libdir}/libteamdctl.so.*
2012-01-19 16:14:38 +00:00
%{_bindir}/teamd
2012-06-27 13:37:50 +00:00
%{_bindir}/teamdctl
%{_bindir}/bond2team
2012-09-04 11:40:28 +00:00
%{_mandir}/man8/teamd.8*
%{_mandir}/man8/teamdctl.8*
%{_mandir}/man5/teamd.conf.5*
%{_mandir}/man1/bond2team.1*
2012-01-19 16:14:38 +00:00
2013-05-16 13:30:29 +00:00
%files -n teamd-devel
%doc COPYING
%{_includedir}/teamdctl.h
%{_libdir}/libteamdctl.so
%{_libdir}/pkgconfig/libteamdctl.pc
2012-01-19 16:14:38 +00:00
%files -n python-libteam
%doc COPYING _tmpdoc2/examples
%{python_sitearch}/*
%changelog
2014-01-23 12:38:39 +00:00
* Thu Jan 23 2014 Jiri Pirko <jpirko@redhat.com> - 1.9-2
2014-01-23 12:37:39 +00:00
- fix multilib
* Tue Nov 12 2013 Jiri Pirko <jpirko@redhat.com> - 1.9-1
- Update to 1.9
- libteamdctl: remove false lib dependencies
- teamdctl: use new port config get function
- libteamdctl: introduce support for port config get
- libteamdctl: cache reply strings into list
- teamd: introduce PortConfigDump control method
- teamd: make teamd_get_port_by_ifname ifname argument const
- Minor improvements to style and language.
- do not install example binaries
- minor man page(s) correction(s) and lintianisation
- teamdctl: print error message if ifindex cannot be obtained
- fix cflags path in pc files
2013-08-13 13:13:08 +00:00
* Tue Aug 13 2013 Jiri Pirko <jpirko@redhat.com> - 1.8-1
- Update to 1.8
* Mon Aug 12 2013 Jiri Pirko <jpirko@redhat.com> - 1.7-1
2013-08-12 07:01:19 +00:00
- Update to 1.7
2013-08-08 12:22:51 +00:00
* Thu Aug 08 2013 Jiri Pirko <jpirko@redhat.com> - 1.6-1
- Update to 1.6
2013-07-30 12:01:49 +00:00
* Tue Jul 30 2013 Jiri Pirko <jpirko@redhat.com> - 1.5-1
- Update to 1.5
2013-06-11 09:26:21 +00:00
* Tue Jun 11 2013 Jiri Pirko <jpirko@redhat.com> - 1.3-1
- Update to 1.3
2013-05-29 08:03:17 +00:00
* Wed May 29 2013 Jiri Pirko <jpirko@redhat.com> - 1.2-1
- Update to 1.2
2013-05-16 13:30:29 +00:00
* Thu May 16 2013 Jiri Pirko <jpirko@redhat.com> - 1.1-1
- Update to 1.1
2013-01-31 12:58:46 +00:00
* Thu Jan 31 2013 Jiri Pirko <jpirko@redhat.com> - 1.0-1
- Update to 1.0
2013-01-20 14:30:55 +00:00
* Sun Jan 20 2013 Jiri Pirko <jpirko@redhat.com> - 0.1-27.20130110gitf16805c
- Rebuilt for libnl3
2013-01-20 05:30:26 +00:00
* Sun Jan 20 2013 Kalev Lember <kalevlember@gmail.com> - 0.1-26.20130110gitf16805c
- Rebuilt for libnl3
2013-01-10 17:35:46 +00:00
* Thu Jan 10 2013 Jiri Pirko <jpirko@redhat.com> - 0.1-25.20130110gitf16805c
- Rebase to git commit f16805c
* Wed Dec 12 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-24.20121212git01fe4bd
2012-12-12 17:15:49 +00:00
- Rebase to git commit 01fe4bd
2012-12-06 18:27:56 +00:00
* Thu Dec 06 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-23.20121206git659a848
- Rebase to git commit 659a848
2012-11-22 14:40:58 +00:00
* Thu Nov 22 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-22.20121122git18b6701
- Rebase to git commit 18b6701
2012-11-15 18:25:35 +00:00
* Thu Nov 15 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-21.20121115gitffb5267
- Rebase to git commit ffb5267
2012-11-05 21:39:10 +00:00
* Mon Nov 05 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-20.20121105git3b95b34
- Rebase to git commit 3b95b34
2012-10-25 20:44:41 +00:00
* Thu Oct 25 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-19.20121025git7fe7c72
- Rebase to git commit 7fe7c72
* Fri Oct 19 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-18.20121019git1a91059
2012-10-19 14:46:29 +00:00
- Rebase to git commit 1a91059
* Sun Oct 07 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-17.20121007git6f48751
2012-10-07 08:36:27 +00:00
- Rebase to git commit 6f48751
2012-09-25 15:11:06 +00:00
* Tue Sep 25 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-16.20120925gitcc5cddc
- Rebase to git commit cc5cddc
* Sun Sep 23 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-15.20120923git8448186
2012-09-23 09:30:53 +00:00
- Rebase to git commit 8448186
2012-09-04 11:40:28 +00:00
* Tue Sep 04 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-14.20120904gitbdcf72c
- Rebase to git commit bdcf72c
* Wed Aug 22 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-13.20120822gitc0d943d
2012-08-22 17:06:23 +00:00
- Rebase to git commit c0d943d
* Tue Aug 07 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-12.20120807git9fa4a96
2012-08-07 14:16:58 +00:00
- Rebase to git commit 9fa4a96
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-11.20120628gitca7b526
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-06-28 12:05:40 +00:00
* Thu Jun 28 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-10.20120628gitca7b526
- Rebase to git commit ca7b526
* Wed Jun 27 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-9.20120627git96569f8
2012-06-27 14:27:28 +00:00
- Rebase to git commit 96569f8
* Wed Jun 27 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-8.20120627gitcd6b557
2012-06-27 13:37:50 +00:00
- Rebase to git commit cd6b557
* Wed Jun 20 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-7.20120620gita88fabf
2012-06-20 14:21:39 +00:00
- Rebase to git commit a88fabf
* Fri May 04 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-6.20120504git11e234a
2012-05-04 10:56:21 +00:00
- Rebase to git commit 11e234a
* Thu Apr 05 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-5.20120405gita82f8ac
2012-04-05 13:55:03 +00:00
- Rebase to git commit a82f8ac
* Tue Feb 21 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-4.20120221gitfe97f63
2012-02-21 20:18:18 +00:00
- Rebase to git commit fe97f63
2012-01-30 09:43:33 +00:00
* Mon Jan 30 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-3.20120130gitb5cf2a8
- Rebase to git commit b5cf2a8
2012-01-25 13:07:37 +00:00
* Wed Jan 25 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-2.20120125gita1718f8
- Rebase to git commit a1718f8
2012-01-19 16:14:38 +00:00
* Wed Jan 18 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-1.20120113git302672e
- Initial build.