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