source: projects/specs/trunk/lib/libt/libteam/libteam-vl.spec @ 6374

Revision 6374, 3.9 KB checked in by daisuke, 12 years ago (diff)

new package

Line 
1%define gitdate 20120504git11e234a
2
3Name: libteam
4Version: 0.1
5Release: 1.%{gitdate}%{?_dist_release}
6Summary: Library for controlling team network device
7Summary(ja): team ネットワークデバイスを制御するためのライブラリ
8Group: System Environment/Libraries
9License: LGPLv2+
10URL: 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
20Source0: libteam-%{gitdate}.tar.gz
21BuildRequires: jansson-devel
22BuildRequires: libdaemon-devel
23BuildRequires: libnl3-devel
24BuildRequires: python-devel
25BuildRequires: dbus-devel
26BuildRequires: swig
27
28%description
29This package contains a library which is a user-space
30counterpart for team network driver. It provides an API
31to control team network devices
32
33%package devel
34Group: Development/Libraries
35Summary: Libraries and header files for libteam development
36Summary(ja): Libraries and header files for libteam development
37Requires: libteam = %{version}-%{release}
38
39%package -n teamd
40Group: System Environment/Daemons
41Summary: Team network device control daemon
42Summary(ja): Team network device control daemon
43Requires: libteam = %{version}-%{release}
44
45%package -n python-libteam
46Group: Development/Libraries
47Summary: Team network device library bindings
48Summary(ja): Team network device library bindings
49Requires: libteam = %{version}-%{release}
50
51%description devel
52The libteam-devel package contains the header files and libraries
53necessary for developing programs using libteam.
54
55%description -n teamd
56The teamd package contains team network device control daemon.
57
58%description -n python-libteam
59The team-python package contains a module that permits applications
60written in the Python programming language to use the interface
61supplied by team network device library.
62
63This package should be installed if you want to develop Python
64programs 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
75mkdir -p _tmpdoc1/examples
76cp -p src/*.c _tmpdoc1/examples
77# prepare example dir for team-python
78mkdir -p _tmpdoc2/examples
79cp -p examples/python/*.py _tmpdoc2/examples
80chmod -x _tmpdoc2/examples/*.py
81
82%build
83%configure --disable-static
84make %{?_smp_mflags}
85cd binding/python
86python ./setup.py build
87
88%install
89make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
90find $RPM_BUILD_ROOT -name \*.la -delete
91rm -rf $RPM_BUILD_ROOT/%{_bindir}/team_*
92cd binding/python
93python ./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.
Note: See TracBrowser for help on using the repository browser.