[libteam] Initial build.

Jiří Pírko jirka at fedoraproject.org
Thu Jan 19 16:15:37 UTC 2012


commit 476a8bd1eb233e702b16369e4f0819e38ea41e4b
Author: Jiri Pirko <jpirko at redhat.com>
Date:   Thu Jan 19 17:14:38 2012 +0100

    Initial build.

 .gitignore   |    1 +
 libteam.spec |  117 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources      |    1 +
 3 files changed, 119 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..290244c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libteam-20120113git302672e.tar.gz
diff --git a/libteam.spec b/libteam.spec
new file mode 100644
index 0000000..74898a3
--- /dev/null
+++ b/libteam.spec
@@ -0,0 +1,117 @@
+Name: libteam
+Version: 0.1
+Release: 1.20120113git302672e%{?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 302672e
+#  ./autogen.sh
+#  ./configure
+#  make distcheck
+#  mv libteam-0.1.tar.gz libteam-20120113git302672e.tar.gz
+Source0: libteam-20120113git302672e.tar.gz
+BuildRequires: json-c-devel
+BuildRequires: libdaemon-devel
+BuildRequires: libnl3-devel
+BuildRequires: python-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 src/*.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_*
+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.*
+
+%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
+%{_bindir}/teamd
+%{_mandir}/man8/* 
+
+%files -n python-libteam
+%defattr(-,root,root,-)
+%doc COPYING _tmpdoc2/examples
+%{python_sitearch}/*
+
+%changelog
+* Wed Jan 18 2012 Jiri Pirko <jpirko at redhat.com> - 0.1-1.20120113git302672e
+- Initial build.
diff --git a/sources b/sources
index e69de29..204873e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f17036459ee52726ae84d5f8410e0469  libteam-20120113git302672e.tar.gz


More information about the scm-commits mailing list