]>
Commit | Line | Data |
---|---|---|
38a0373b | 1 | # |
40640334 | 2 | # Conditional build: |
8dfb3cda | 3 | %bcond_without static_libs # don't build static library |
40640334 | 4 | # |
d3a729b3 | 5 | Summary: Library for using OBEX |
33c3f2ec ER |
6 | Summary(es.UTF-8): Biblioteca para usar OBEX |
7 | Summary(pl.UTF-8): Biblioteka do obsługi protokołu OBEX | |
d3a729b3 | 8 | Name: openobex |
fda6af2b | 9 | Version: 1.5 |
160a6858 | 10 | Release: 4 |
793d8520 | 11 | License: LGPL v2.1+ (library), GPL v2+ (applications) |
d3a729b3 | 12 | Group: Libraries |
fda6af2b AM |
13 | Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz |
14 | # Source0-md5: 0d83dc86445a46a1b9750107ba7ab65c | |
15 | Patch0: %{name}-pc.patch | |
ae118529 | 16 | URL: http://openobex.sourceforge.net/ |
04ce872d | 17 | BuildRequires: autoconf >= 2.50 |
5288eaa8 | 18 | BuildRequires: automake |
886dd03b | 19 | BuildRequires: bluez-libs-devel |
c1f46179 | 20 | BuildRequires: gettext-tools |
5288eaa8 | 21 | BuildRequires: libtool |
bdd70ca9 | 22 | BuildRequires: libusb-compat-devel |
886dd03b | 23 | BuildRequires: pkgconfig |
d3a729b3 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
11504cfc | 27 | This library tries to implement a generic OBEX Session Protocol. It |
28 | does not implement the OBEX Application FrameWork. | |
d3a729b3 | 29 | |
1d04d8dd JR |
30 | %description -l es.UTF-8 |
31 | Esta biblioteca procura dar una implementación genérica del protocolo | |
32 | OBEX Session Protocol. La implementación de OBEX Application FrameWork | |
33 | no está incluida. | |
da31bee3 | 34 | |
1d04d8dd JR |
35 | %description -l pl.UTF-8 |
36 | Ta biblioteka to próba implementacji podstawowego protokołu sesji OBEX | |
ae118529 JB |
37 | Session Protocol. OBEX Application FrameWork nie jest |
38 | zaimplementowany. | |
d3a729b3 | 39 | |
d3a729b3 | 40 | %package devel |
41 | Summary: Header files for Open OBEX | |
33c3f2ec ER |
42 | Summary(es.UTF-8): Ficheros de cabecera para Open OBEX |
43 | Summary(pl.UTF-8): Pliki nagłówkowe Open OBEX | |
793d8520 | 44 | License: LGPL v2.1+ |
d3a729b3 | 45 | Group: Development/Libraries |
f2e43205 | 46 | Requires: %{name} = %{version}-%{release} |
886dd03b | 47 | Requires: bluez-libs-devel |
bdd70ca9 | 48 | Requires: libusb-compat-devel |
d3a729b3 | 49 | |
50 | %description devel | |
51 | The header files are only needed for development of programs using the | |
52 | Open OBEX library. | |
53 | ||
1d04d8dd JR |
54 | %description devel -l es.UTF-8 |
55 | Estos ficheros de cabecera sólo son necesarios para desarrollar | |
da31bee3 | 56 | programas que usan la biblioteca Open OBEX. |
57 | ||
1d04d8dd JR |
58 | %description devel -l pl.UTF-8 |
59 | W pakiecie tym znajdują się pliki nagłówkowe, przeznaczone dla | |
60 | programistów używających biblioteki Open OBEX. | |
d3a729b3 | 61 | |
d3a729b3 | 62 | %package static |
63 | Summary: Static Open OBEX library | |
33c3f2ec ER |
64 | Summary(es.UTF-8): Biblioteca estática de Open OBEX |
65 | Summary(pl.UTF-8): Biblioteka statyczna Open OBEX | |
793d8520 | 66 | License: LGPL v2.1+ |
d3a729b3 | 67 | Group: Development/Libraries |
f2e43205 | 68 | Requires: %{name}-devel = %{version}-%{release} |
d3a729b3 | 69 | |
70 | %description static | |
71 | Static Open OBEX library. | |
72 | ||
1d04d8dd | 73 | %description static -l pl.UTF-8 |
d3a729b3 | 74 | Biblioteka statyczna Open OBEX. |
75 | ||
2b70e21e | 76 | %package apps |
d3a729b3 | 77 | Summary: Open OBEX utility programs |
33c3f2ec | 78 | Summary(pl.UTF-8): Narzędzia Open OBEX |
793d8520 | 79 | License: GPL v2+ |
d3a729b3 | 80 | Group: Applications/Communications |
2b70e21e JB |
81 | Requires: %{name} = %{version}-%{release} |
82 | Obsoletes: openobex-progs | |
d3a729b3 | 83 | |
2b70e21e | 84 | %description apps |
ae118529 JB |
85 | This package contains utility programs made to show Open OBEX library |
86 | usage. | |
d3a729b3 | 87 | |
1d04d8dd | 88 | %description apps -l es.UTF-8 |
da31bee3 | 89 | Este paquete contiene unas herramientas hechas para demonstrar el uso |
90 | de la biblioteca Open OBEX. | |
91 | ||
1d04d8dd JR |
92 | %description apps -l pl.UTF-8 |
93 | Ten pakiet zawiera narzędzia zrobione aby pokazać sposób użycia | |
ae118529 | 94 | biblioteki Open OBEX. |
d3a729b3 | 95 | |
96 | %prep | |
ee847ee5 | 97 | %setup -q |
d11b64b5 | 98 | %patch0 -p1 |
d3a729b3 | 99 | |
100 | %build | |
5288eaa8 | 101 | %{__libtoolize} |
102 | %{__aclocal} | |
103 | %{__autoconf} | |
38cef365 | 104 | %{__automake} |
105 | %configure \ | |
2b70e21e | 106 | --enable-apps \ |
8dfb3cda | 107 | %{!?with_static_libs:--disable-static} |
d3a729b3 | 108 | |
caa831c4 | 109 | %{__make} |
d3a729b3 | 110 | |
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
11504cfc | 113 | |
d3a729b3 | 114 | %{__make} install \ |
fda6af2b | 115 | DESTDIR=$RPM_BUILD_ROOT |
d3a729b3 | 116 | |
d3a729b3 | 117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %post -p /sbin/ldconfig | |
121 | %postun -p /sbin/ldconfig | |
122 | ||
123 | %files | |
124 | %defattr(644,root,root,755) | |
903190d9 | 125 | %doc AUTHORS ChangeLog README |
96150aee JB |
126 | %attr(755,root,root) %{_libdir}/libopenobex.so.*.*.* |
127 | %attr(755,root,root) %ghost %{_libdir}/libopenobex.so.1 | |
d3a729b3 | 128 | |
129 | %files devel | |
130 | %defattr(644,root,root,755) | |
131 | %attr(755,root,root) %{_libdir}/libopenobex.so | |
39c37863 | 132 | %{_libdir}/libopenobex.la |
96150aee JB |
133 | %{_includedir}/openobex |
134 | %{_pkgconfigdir}/openobex.pc | |
d3a729b3 | 135 | |
8dfb3cda | 136 | %if %{with static_libs} |
d3a729b3 | 137 | %files static |
138 | %defattr(644,root,root,755) | |
96150aee | 139 | %{_libdir}/libopenobex.a |
38cef365 | 140 | %endif |
2b70e21e JB |
141 | |
142 | %files apps | |
143 | %defattr(644,root,root,755) | |
144 | %attr(755,root,root) %{_bindir}/ircp | |
145 | %attr(755,root,root) %{_bindir}/irobex_palm3 | |
146 | %attr(755,root,root) %{_bindir}/irxfer | |
147 | %attr(755,root,root) %{_bindir}/obex_tcp | |
148 | %attr(755,root,root) %{_bindir}/obex_test |