libteam/libteam.spec

211 lines
6.9 KiB
RPMSpec
Raw Normal View History

2012-01-19 16:14:38 +00:00
Name: libteam
2013-01-31 12:58:46 +00:00
Version: 1.0
Release: 1%{?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}
%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
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
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
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/*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
%defattr(-,root,root,-)
%doc COPYING _tmpdoc1/examples
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files -n teamd
%defattr(-,root,root,-)
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
2012-01-19 16:14:38 +00:00
%{_bindir}/teamd
2012-06-27 13:37:50 +00:00
%{_bindir}/teamdctl
2012-09-04 11:40:28 +00:00
%{_mandir}/man8/teamd.8*
%{_mandir}/man8/teamdctl.8*
%{_mandir}/man5/teamd.conf.5*
2012-01-19 16:14:38 +00:00
%files -n python-libteam
%defattr(-,root,root,-)
%doc COPYING _tmpdoc2/examples
%{python_sitearch}/*
%changelog
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
2012-12-12 17:15:49 +00:00
* Thu Dec 12 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-24.20121212git01fe4bd
- 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
2012-10-19 14:46:29 +00:00
* Tue Oct 19 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-18.20121019git1a91059
- Rebase to git commit 1a91059
2012-10-07 08:36:27 +00:00
* Tue Oct 07 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-17.20121007git6f48751
- 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
2012-09-23 09:30:53 +00:00
* Tue Sep 23 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-15.20120923git8448186
- 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
2012-08-22 17:06:23 +00:00
* Thu Aug 22 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-13.20120822gitc0d943d
- Rebase to git commit c0d943d
2012-08-07 14:16:58 +00:00
* Thu Aug 07 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-12.20120807git9fa4a96
- 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
2012-06-27 14:27:28 +00:00
* Thu Jun 27 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-9.20120627git96569f8
- Rebase to git commit 96569f8
2012-06-27 13:37:50 +00:00
* Thu Jun 27 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-8.20120627gitcd6b557
- Rebase to git commit cd6b557
* Thu 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
2012-05-04 10:56:21 +00:00
* Thu May 04 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-6.20120504git11e234a
- 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
2012-02-21 20:18:18 +00:00
* Sat Feb 21 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-4.20120221gitfe97f63
- 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.