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