libteam-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. %define gitdate 20120504git11e234a
  2. Name: libteam
  3. Version: 0.1
  4. Release: 1.%{gitdate}%{?_dist_release}
  5. Summary: Library for controlling team network device
  6. Summary(ja): team ネットワークデバイスを制御するためのライブラリ
  7. Group: System Environment/Libraries
  8. License: LGPLv2+
  9. URL: http://www.libteam.org
  10. # The source for this package was pulled from upstream's vcs. Use the
  11. # following commands to generate the tarball:
  12. # git clone git://github.com/jpirko/libteam.git
  13. # cd libteam/
  14. # git reset --hard 11e234a
  15. # ./autogen.sh
  16. # ./configure
  17. # make distcheck
  18. # mv libteam-0.1.tar.gz libteam-20120504git11e234a.tar.gz
  19. Source0: libteam-%{gitdate}.tar.gz
  20. BuildRequires: jansson-devel
  21. BuildRequires: libdaemon-devel
  22. BuildRequires: libnl3-devel
  23. BuildRequires: python-devel
  24. BuildRequires: dbus-devel
  25. BuildRequires: swig
  26. %description
  27. This package contains a library which is a user-space
  28. counterpart for team network driver. It provides an API
  29. to control team network devices
  30. %package devel
  31. Group: Development/Libraries
  32. Summary: Libraries and header files for libteam development
  33. Summary(ja): Libraries and header files for libteam development
  34. Requires: libteam = %{version}-%{release}
  35. %package -n teamd
  36. Group: System Environment/Daemons
  37. Summary: Team network device control daemon
  38. Summary(ja): Team network device control daemon
  39. Requires: libteam = %{version}-%{release}
  40. %package -n python-libteam
  41. Group: Development/Libraries
  42. Summary: Team network device library bindings
  43. Summary(ja): Team network device library bindings
  44. Requires: libteam = %{version}-%{release}
  45. %description devel
  46. The libteam-devel package contains the header files and libraries
  47. necessary for developing programs using libteam.
  48. %description -n teamd
  49. The teamd package contains team network device control daemon.
  50. %description -n python-libteam
  51. The team-python package contains a module that permits applications
  52. written in the Python programming language to use the interface
  53. supplied by team network device library.
  54. This package should be installed if you want to develop Python
  55. programs that will manipulate team network devices.
  56. %{?filter_setup:
  57. %filter_provides_in %{python_sitearch}.*\.so$
  58. %filter_setup
  59. }
  60. %prep
  61. %setup -q
  62. # prepare example dir for -devel
  63. mkdir -p _tmpdoc1/examples
  64. cp -p src/*.c _tmpdoc1/examples
  65. # prepare example dir for team-python
  66. mkdir -p _tmpdoc2/examples
  67. cp -p examples/python/*.py _tmpdoc2/examples
  68. chmod -x _tmpdoc2/examples/*.py
  69. %build
  70. %configure --disable-static
  71. make %{?_smp_mflags}
  72. cd binding/python
  73. python ./setup.py build
  74. %install
  75. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  76. find $RPM_BUILD_ROOT -name \*.la -delete
  77. rm -rf $RPM_BUILD_ROOT/%{_bindir}/team_*
  78. cd binding/python
  79. python ./setup.py install --root $RPM_BUILD_ROOT -O1
  80. %post -p /sbin/ldconfig
  81. %postun -p /sbin/ldconfig
  82. %files
  83. %defattr(-,root,root,-)
  84. %doc COPYING
  85. %{_libdir}/*so.*
  86. %files devel
  87. %defattr(-,root,root,-)
  88. %doc COPYING _tmpdoc1/examples
  89. %{_includedir}/*
  90. %{_libdir}/*.so
  91. %{_libdir}/pkgconfig/*.pc
  92. %files -n teamd
  93. %defattr(-,root,root,-)
  94. %doc COPYING teamd/example_configs
  95. %{_bindir}/teamd
  96. %{_mandir}/man8/*
  97. %files -n python-libteam
  98. %defattr(-,root,root,-)
  99. %doc COPYING _tmpdoc2/examples
  100. %{python_sitearch}/*
  101. %changelog
  102. * Tue Jun 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1-1.20120504git11e234a
  103. - initial build for Vine Linux
  104. * Thu May 04 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-6.20120504git11e234a
  105. - Rebase to git commit 11e234a
  106. * Thu Apr 05 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-5.20120405gita82f8ac
  107. - Rebase to git commit a82f8ac
  108. * Sat Feb 21 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-4.20120221gitfe97f63
  109. - Rebase to git commit fe97f63
  110. * Mon Jan 30 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-3.20120130gitb5cf2a8
  111. - Rebase to git commit b5cf2a8
  112. * Wed Jan 25 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-2.20120125gita1718f8
  113. - Rebase to git commit a1718f8
  114. * Wed Jan 18 2012 Jiri Pirko <jpirko@redhat.com> - 0.1-1.20120113git302672e
  115. - Initial build.