]>
Commit | Line | Data |
---|---|---|
35f1d87a | 1 | # |
2 | # todo: | |
aa14ff54 | 3 | # - mono bindings (build crashes on ppc) |
35f1d87a | 4 | # |
699afe17 | 5 | # Conditional build: |
8f2f102a | 6 | %bcond_without apidocs # disable gtk-doc |
b270f41a | 7 | %bcond_without static_libs # don't build static library |
699afe17 | 8 | # |
35f1d87a | 9 | Summary: Bluetooth GObject based library |
628257f3 | 10 | Summary(pl.UTF-8): Biblioteka do programowania urządzeń Bluetooth |
20dae11b | 11 | Name: libbtctl |
53e7f8ee | 12 | Version: 0.10.0 |
eca1cf79 | 13 | Release: 6 |
20dae11b | 14 | License: GPL |
15 | Group: Libraries | |
53e7f8ee PZ |
16 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libbtctl/0.10/%{name}-%{version}.tar.bz2 |
17 | # Source0-md5: 83d5f90efb2b26d1bd12a668940d02ba | |
b732990c | 18 | Patch0: %{name}-make-jN.patch |
24f59780 | 19 | Patch1: %{name}-newapi.patch |
20dae11b | 20 | URL: http://usefulinc.com/software/gnome-bluetooth/ |
c65b5206 | 21 | BuildRequires: autoconf >= 2.52 |
cdbb9ddf | 22 | BuildRequires: automake |
3833cb4e | 23 | BuildRequires: bluez-libs-devel >= 2.25 |
f0451f85 | 24 | BuildRequires: glib2-devel >= 1:2.12.4 |
8f2f102a | 25 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.7} |
d8eb2a39 | 26 | BuildRequires: intltool >= 0.35.0 |
79b0f10d | 27 | BuildRequires: libtool |
3833cb4e | 28 | BuildRequires: openobex-devel >= 1.2 |
babdd725 | 29 | BuildRequires: pkgconfig |
afc48029 | 30 | BuildRequires: python-devel >= 1:2.3 |
f0451f85 | 31 | BuildRequires: python-pygtk-devel >= 2.10.3 |
b732990c | 32 | BuildRequires: rpm-pythonprov |
3833cb4e | 33 | Requires: bluez-libs >= 2.25 |
20dae11b | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
babdd725 JB |
37 | This package contains a library to control Bluetooth devices. |
38 | ||
bafdca3c JR |
39 | %description -l pl.UTF-8 |
40 | Ten pakiet zawiera bibliotekę do kontrolowania urządzeń Bluetooth. | |
20dae11b | 41 | |
42 | %package devel | |
43 | Summary: Header files for libbtctl library | |
628257f3 | 44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libbtctl |
20dae11b | 45 | Group: Development/Libraries |
cdbb9ddf | 46 | Requires: %{name} = %{version}-%{release} |
3833cb4e | 47 | Requires: bluez-libs-devel >= 2.25 |
f0451f85 | 48 | Requires: glib2-devel >= 1:2.12.4 |
3833cb4e | 49 | Requires: openobex-devel >= 1.2 |
20dae11b | 50 | |
51 | %description devel | |
52 | Header files for libbtctl library. | |
53 | ||
bafdca3c JR |
54 | %description devel -l pl.UTF-8 |
55 | Pliki nagłówkowe biblioteki libbtctl. | |
20dae11b | 56 | |
57 | %package static | |
58 | Summary: Static libbtctl library | |
628257f3 | 59 | Summary(pl.UTF-8): Statyczna biblioteka libbtctl |
20dae11b | 60 | Group: Development/Libraries |
cdbb9ddf | 61 | Requires: %{name}-devel = %{version}-%{release} |
20dae11b | 62 | |
63 | %description static | |
64 | Static libbtctl library. | |
65 | ||
bafdca3c | 66 | %description static -l pl.UTF-8 |
20dae11b | 67 | Statyczna biblioteka libbtctl. |
68 | ||
35f1d87a | 69 | %package -n python-btctl |
70 | Summary: Python bindings for libbtctl library | |
628257f3 | 71 | Summary(pl.UTF-8): Wiązania dla języka Python biblioteki libbtctl |
35f1d87a | 72 | Group: Libraries/Python |
73 | Requires: %{name} = %{version}-%{release} | |
74 | %pyrequires_eq python-libs | |
75 | ||
35f1d87a | 76 | %description -n python-btctl |
77 | Static libbtctl library. | |
78 | ||
bafdca3c JR |
79 | %description -n python-btctl -l pl.UTF-8 |
80 | Wiązania dla języka Python biblioteki libbtctl. | |
35f1d87a | 81 | |
8f2f102a MB |
82 | %package apidocs |
83 | Summary: libbtctl API documentation | |
84 | Summary(pl.UTF-8): Dokumentacja API libbtctl | |
85 | Group: Documentation | |
86 | Requires: gtk-doc-common | |
87 | ||
88 | %description apidocs | |
89 | libbtctl API documentation. | |
90 | ||
91 | %description apidocs -l pl.UTF-8 | |
92 | Dokumentacja API libbtctl. | |
93 | ||
20dae11b | 94 | %prep |
95 | %setup -q | |
b732990c | 96 | %patch0 -p1 |
24f59780 | 97 | %patch1 -p1 |
20dae11b | 98 | |
99 | %build | |
35f1d87a | 100 | %{__libtoolize} |
101 | %{__aclocal} | |
102 | %{__autoheader} | |
103 | %{__autoconf} | |
104 | %{__automake} | |
babdd725 | 105 | %configure \ |
aa14ff54 | 106 | --disable-mono \ |
8f2f102a | 107 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
d25fecb9 | 108 | --with-html-path=%{_gtkdocdir} \ |
b270f41a | 109 | %{!?with_static_libs:--disable-static} |
b732990c | 110 | %{__make} \ |
cbbf731f | 111 | pydir=%{py_sitedir} |
20dae11b | 112 | |
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %{__make} install \ | |
35f1d87a | 117 | DESTDIR=$RPM_BUILD_ROOT \ |
cbbf731f JB |
118 | HTML_DIR=%{_gtkdocdir} \ |
119 | pydir=%{py_sitedir} | |
20dae11b | 120 | |
b0a60663 JB |
121 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} |
122 | ||
8f2f102a MB |
123 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
124 | ||
b0a60663 JB |
125 | %find_lang %{name} |
126 | ||
20dae11b | 127 | %clean |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post -p /sbin/ldconfig | |
131 | %postun -p /sbin/ldconfig | |
132 | ||
b0a60663 | 133 | %files -f %{name}.lang |
babdd725 JB |
134 | %defattr(644,root,root,755) |
135 | %doc AUTHORS ChangeLog README | |
24f59780 MB |
136 | %attr(755,root,root) %{_libdir}/libbtctl.so.*.*.* |
137 | %attr(755,root,root) %ghost %{_libdir}/libbtctl.so.4 | |
20dae11b | 138 | |
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
24f59780 MB |
141 | %attr(755,root,root) %{_libdir}/libbtctl.so |
142 | %{_libdir}/libbtctl.la | |
20dae11b | 143 | %{_includedir}/%{name} |
24f59780 | 144 | %{_pkgconfigdir}/libbtctl.pc |
20dae11b | 145 | |
b270f41a | 146 | %if %{with static_libs} |
20dae11b | 147 | %files static |
148 | %defattr(644,root,root,755) | |
24f59780 | 149 | %{_libdir}/libbtctl.a |
d25fecb9 | 150 | %endif |
35f1d87a | 151 | |
152 | %files -n python-btctl | |
153 | %defattr(644,root,root,755) | |
24f59780 | 154 | %attr(755,root,root) %{py_sitedir}/btctl.so |
8f2f102a MB |
155 | |
156 | %if %{with apidocs} | |
157 | %files apidocs | |
158 | %defattr(644,root,root,755) | |
159 | %{_gtkdocdir}/libbtctl | |
160 | %endif |