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