]>
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 |
8e50ac96 | 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 |
8e50ac96 | 13 | Release: 9 |
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 |
d394a255 | 24 | BuildRequires: docbook-dtd412-xml |
4ef5257e | 25 | BuildRequires: gettext-tools |
f0451f85 | 26 | BuildRequires: glib2-devel >= 1:2.12.4 |
8f2f102a | 27 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.7} |
d8eb2a39 | 28 | BuildRequires: intltool >= 0.35.0 |
79b0f10d | 29 | BuildRequires: libtool |
3833cb4e | 30 | BuildRequires: openobex-devel >= 1.2 |
babdd725 | 31 | BuildRequires: pkgconfig |
afc48029 | 32 | BuildRequires: python-devel >= 1:2.3 |
f0451f85 | 33 | BuildRequires: python-pygtk-devel >= 2.10.3 |
b732990c | 34 | BuildRequires: rpm-pythonprov |
3833cb4e | 35 | Requires: bluez-libs >= 2.25 |
20dae11b | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
babdd725 JB |
39 | This package contains a library to control Bluetooth devices. |
40 | ||
bafdca3c JR |
41 | %description -l pl.UTF-8 |
42 | Ten pakiet zawiera bibliotekę do kontrolowania urządzeń Bluetooth. | |
20dae11b | 43 | |
44 | %package devel | |
45 | Summary: Header files for libbtctl library | |
628257f3 | 46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libbtctl |
20dae11b | 47 | Group: Development/Libraries |
cdbb9ddf | 48 | Requires: %{name} = %{version}-%{release} |
3833cb4e | 49 | Requires: bluez-libs-devel >= 2.25 |
f0451f85 | 50 | Requires: glib2-devel >= 1:2.12.4 |
3833cb4e | 51 | Requires: openobex-devel >= 1.2 |
20dae11b | 52 | |
53 | %description devel | |
54 | Header files for libbtctl library. | |
55 | ||
bafdca3c JR |
56 | %description devel -l pl.UTF-8 |
57 | Pliki nagłówkowe biblioteki libbtctl. | |
20dae11b | 58 | |
59 | %package static | |
60 | Summary: Static libbtctl library | |
628257f3 | 61 | Summary(pl.UTF-8): Statyczna biblioteka libbtctl |
20dae11b | 62 | Group: Development/Libraries |
cdbb9ddf | 63 | Requires: %{name}-devel = %{version}-%{release} |
20dae11b | 64 | |
65 | %description static | |
66 | Static libbtctl library. | |
67 | ||
bafdca3c | 68 | %description static -l pl.UTF-8 |
20dae11b | 69 | Statyczna biblioteka libbtctl. |
70 | ||
35f1d87a | 71 | %package -n python-btctl |
72 | Summary: Python bindings for libbtctl library | |
628257f3 | 73 | Summary(pl.UTF-8): Wiązania dla języka Python biblioteki libbtctl |
35f1d87a | 74 | Group: Libraries/Python |
75 | Requires: %{name} = %{version}-%{release} | |
8e50ac96 | 76 | Requires: python-libs |
35f1d87a | 77 | |
35f1d87a | 78 | %description -n python-btctl |
79 | Static libbtctl library. | |
80 | ||
bafdca3c JR |
81 | %description -n python-btctl -l pl.UTF-8 |
82 | Wiązania dla języka Python biblioteki libbtctl. | |
35f1d87a | 83 | |
8f2f102a MB |
84 | %package apidocs |
85 | Summary: libbtctl API documentation | |
86 | Summary(pl.UTF-8): Dokumentacja API libbtctl | |
87 | Group: Documentation | |
88 | Requires: gtk-doc-common | |
8e50ac96 ER |
89 | %if "%{_rpmversion}" >= "5" |
90 | BuildArch: noarch | |
91 | %endif | |
8f2f102a MB |
92 | |
93 | %description apidocs | |
94 | libbtctl API documentation. | |
95 | ||
96 | %description apidocs -l pl.UTF-8 | |
97 | Dokumentacja API libbtctl. | |
98 | ||
20dae11b | 99 | %prep |
100 | %setup -q | |
b732990c | 101 | %patch0 -p1 |
24f59780 | 102 | %patch1 -p1 |
20dae11b | 103 | |
104 | %build | |
35f1d87a | 105 | %{__libtoolize} |
106 | %{__aclocal} | |
107 | %{__autoheader} | |
108 | %{__autoconf} | |
109 | %{__automake} | |
babdd725 | 110 | %configure \ |
aa14ff54 | 111 | --disable-mono \ |
8f2f102a | 112 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
d25fecb9 | 113 | --with-html-path=%{_gtkdocdir} \ |
b270f41a | 114 | %{!?with_static_libs:--disable-static} |
b732990c | 115 | %{__make} \ |
cbbf731f | 116 | pydir=%{py_sitedir} |
20dae11b | 117 | |
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %{__make} install \ | |
35f1d87a | 122 | DESTDIR=$RPM_BUILD_ROOT \ |
cbbf731f JB |
123 | HTML_DIR=%{_gtkdocdir} \ |
124 | pydir=%{py_sitedir} | |
20dae11b | 125 | |
b0a60663 JB |
126 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} |
127 | ||
8f2f102a MB |
128 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
129 | ||
b0a60663 JB |
130 | %find_lang %{name} |
131 | ||
20dae11b | 132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %post -p /sbin/ldconfig | |
136 | %postun -p /sbin/ldconfig | |
137 | ||
b0a60663 | 138 | %files -f %{name}.lang |
babdd725 JB |
139 | %defattr(644,root,root,755) |
140 | %doc AUTHORS ChangeLog README | |
24f59780 MB |
141 | %attr(755,root,root) %{_libdir}/libbtctl.so.*.*.* |
142 | %attr(755,root,root) %ghost %{_libdir}/libbtctl.so.4 | |
20dae11b | 143 | |
144 | %files devel | |
145 | %defattr(644,root,root,755) | |
24f59780 MB |
146 | %attr(755,root,root) %{_libdir}/libbtctl.so |
147 | %{_libdir}/libbtctl.la | |
20dae11b | 148 | %{_includedir}/%{name} |
24f59780 | 149 | %{_pkgconfigdir}/libbtctl.pc |
20dae11b | 150 | |
b270f41a | 151 | %if %{with static_libs} |
20dae11b | 152 | %files static |
153 | %defattr(644,root,root,755) | |
24f59780 | 154 | %{_libdir}/libbtctl.a |
d25fecb9 | 155 | %endif |
35f1d87a | 156 | |
157 | %files -n python-btctl | |
158 | %defattr(644,root,root,755) | |
24f59780 | 159 | %attr(755,root,root) %{py_sitedir}/btctl.so |
8f2f102a MB |
160 | |
161 | %if %{with apidocs} | |
162 | %files apidocs | |
163 | %defattr(644,root,root,755) | |
164 | %{_gtkdocdir}/libbtctl | |
165 | %endif |