1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
#
# todo:
# - mono bindings (build crashes on ppc)
#
Summary: Bluetooth GObject based library
Summary(pl): Biblioteka do programowania urządzeń Bluetooth
Name: libbtctl
Version: 0.4.1
Release: 3
License: GPL
Group: Libraries
Source0: http://downloads.usefulinc.com/libbtctl/%{name}-%{version}.tar.gz
# Source0-md5: 7c858214d32d76e45a87b34dd885df37
URL: http://usefulinc.com/software/gnome-bluetooth/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bluez-libs-devel >= 2.8-2
BuildRequires: glib2-devel >= 2.0.0
BuildRequires: gtk-doc >= 0.10
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: python-devel >= 1:2.3
BuildRequires: python-pygtk-devel >= 2.2.0
BuildRequires: rpm-pythonprov
Requires: bluez-libs >= 2.8-2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This package contains a library to control Bluetooth devices.
%description -l pl
Ten pakiet zawiera bibliotekę do kontrolowania urządzeń Bluetooth.
%package devel
Summary: Header files for libbtctl library
Summary(pl): Pliki nagłówkowe biblioteki libbtctl
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: bluez-libs-devel >= 2.8-2
%description devel
Header files for libbtctl library.
%description devel -l pl
Pliki nagłówkowe biblioteki libbtctl.
%package static
Summary: Static libbtctl library
Summary(pl): Statyczna biblioteka libbtctl
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static libbtctl library.
%description static -l pl
Statyczna biblioteka libbtctl.
%package -n python-btctl
Summary: Python bindings for libbtctl library
Summary(pl): Wiązania dla języka Python biblioteki libbtctl
Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
%pyrequires_eq python-libs
%description -n python-btctl
Static libbtctl library.
%description -n python-btctl -l pl
Wiązania dla języka Python biblioteki libbtctl.
%prep
%setup -q
%build
%{__libtoolize}
%{__aclocal}
%{__autoheader}
%{__autoconf}
%{__automake}
%configure \
--disable-mono \
--enable-gtk-doc \
--with-html-path=%{_gtkdocdir}
%{__make} \
pydir=%{py_sitedir}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
HTML_DIR=%{_gtkdocdir} \
pydir=%{py_sitedir}
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README
%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_includedir}/%{name}
%{_pkgconfigdir}/*.pc
%{_gtkdocdir}/*
%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
%files -n python-btctl
%defattr(644,root,root,755)
%attr(755,root,root) %{py_sitedir}/*.so
|