]>
Commit | Line | Data |
---|---|---|
7413a195 | 1 | %include /usr/lib/rpm/macros.perl |
fff9263e | 2 | Summary: File copying over the Object Exchange (OBEX) protocol |
8759e90f | 3 | Summary(pl.UTF-8): Kopiowanie plików z wykorzystaniem protokołu Object Exchange (OBEX) |
232589cd | 4 | Name: obexftp |
8b354432 JR |
5 | Version: 0.23 |
6 | Release: 1 | |
f021e168 | 7 | License: GPL v2+ (server, bindings), LGPL v2+ (libraries) |
232589cd | 8 | Group: Applications/Communications |
7397022d | 9 | Source0: http://dl.sourceforge.net/openobex/%{name}-%{version}.tar.bz2 |
8b354432 | 10 | # Source0-md5: f20762061b68bc921e80be4aebc349eb |
e93ae017 | 11 | Patch0: %{name}-no_server.patch |
f021e168 JB |
12 | Patch1: %{name}-perl.patch |
13 | Patch2: %{name}-nostress.patch | |
0d4f41f9 | 14 | Patch3: %{name}-ruby1.9.patch |
232589cd | 15 | URL: http://triq.net/obex/ |
152ad420 JB |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
5fbbbb03 | 18 | BuildRequires: bluez-libs-devel |
152ad420 | 19 | BuildRequires: libtool |
232589cd | 20 | BuildRequires: openobex-devel |
7413a195 | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
78560f5b | 22 | BuildRequires: pkgconfig |
f021e168 | 23 | BuildRequires: python-devel >= 1:2.5 |
7413a195 JB |
24 | BuildRequires: rpm-perlprov |
25 | BuildRequires: rpm-pythonprov | |
f021e168 JB |
26 | BuildRequires: rpmbuild(macros) >= 1.277 |
27 | BuildRequires: ruby-devel | |
28 | BuildRequires: tcl-devel | |
40416bdf | 29 | Requires: %{name}-libs = %{version}-%{release} |
232589cd JK |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
06a1afee JK |
33 | Free open source application for file copying over the Object Exchange |
34 | (OBEX) protocol. | |
232589cd | 35 | |
6b3c55ab JR |
36 | %description -l pl.UTF-8 |
37 | Wolnodostępna aplikacja służąca do kopiowania plików z wykorzystaniem | |
38 | protokołu Object Exchange (OBEX). | |
fff9263e | 39 | |
232589cd JK |
40 | %package libs |
41 | Summary: ObexFTP libraries | |
8759e90f | 42 | Summary(pl.UTF-8): Biblioteki ObexFTP |
f021e168 | 43 | License: LGPL v2+ |
232589cd JK |
44 | Group: Libraries |
45 | ||
46 | %description libs | |
47 | ObexFTP libraries. | |
48 | ||
6b3c55ab | 49 | %description libs -l pl.UTF-8 |
232589cd JK |
50 | Biblioteki ObexFTP. |
51 | ||
52 | %package devel | |
53 | Summary: Header files for ObexFTP | |
8759e90f ER |
54 | Summary(es.UTF-8): Ficheros de cabecera para ObexFTP |
55 | Summary(pl.UTF-8): Pliki nagłówkowe ObexFTP | |
f021e168 | 56 | License: LGPL v2+ |
232589cd | 57 | Group: Development/Libraries |
40416bdf | 58 | Requires: %{name}-libs = %{version}-%{release} |
78560f5b JB |
59 | Requires: bluez-libs-devel |
60 | Requires: openobex-devel | |
232589cd JK |
61 | |
62 | %description devel | |
06a1afee JK |
63 | The header files are only needed for development of programs based on |
64 | ObexFTP. | |
232589cd | 65 | |
6b3c55ab JR |
66 | %description devel -l pl.UTF-8 |
67 | W pakiecie tym znajdują się pliki nagłówkowe, przeznaczone do | |
68 | rozwijania programów bazujących na bibliotekach ObexFTP. | |
232589cd JK |
69 | |
70 | %package static | |
71 | Summary: Static ObexFTP library | |
8759e90f ER |
72 | Summary(es.UTF-8): Biblioteca estática de ObexFTP |
73 | Summary(pl.UTF-8): Biblioteka statyczna ObexFTP | |
f021e168 | 74 | License: LGPL v2+ |
232589cd | 75 | Group: Development/Libraries |
4100e4a5 | 76 | Requires: %{name}-devel = %{version}-%{release} |
232589cd JK |
77 | |
78 | %description static | |
79 | Static ObexFTP library. | |
80 | ||
6b3c55ab | 81 | %description static -l pl.UTF-8 |
232589cd JK |
82 | Biblioteka statyczna ObexFTP. |
83 | ||
7413a195 JB |
84 | %package -n perl-obexftp |
85 | Summary: Perl binding for ObexFTP library | |
8759e90f | 86 | Summary(pl.UTF-8): Wiązanie Perla dla biblioteki ObexFTP |
f021e168 | 87 | License: GPL v2+ |
7413a195 JB |
88 | Group: Development/Languages/Perl |
89 | Requires: %{name}-libs = %{version}-%{release} | |
90 | ||
91 | %description -n perl-obexftp | |
92 | Perl binding for ObexFTP library. | |
93 | ||
6b3c55ab JR |
94 | %description -n perl-obexftp -l pl.UTF-8 |
95 | Wiązanie Perla dla biblioteki ObexFTP. | |
7413a195 JB |
96 | |
97 | %package -n python-obexftp | |
98 | Summary: Python binding for ObexFTP library | |
8759e90f | 99 | Summary(pl.UTF-8): Wiązanie Pythona dla biblioteki ObexFTP |
f021e168 | 100 | License: GPL v2+ |
7413a195 JB |
101 | Group: Libraries/Python |
102 | Requires: %{name}-libs = %{version}-%{release} | |
103 | %pyrequires_eq python-libs | |
104 | ||
105 | %description -n python-obexftp | |
106 | Python binding for ObexFTP library. | |
107 | ||
6b3c55ab JR |
108 | %description -n python-obexftp -l pl.UTF-8 |
109 | Wiązanie Pythona dla biblioteki ObexFTP. | |
7413a195 | 110 | |
f021e168 JB |
111 | %package -n ruby-obexftp |
112 | Summary: Ruby binding for ObexFTP library | |
113 | Summary(pl.UTF-8): Wiązanie języka Ruby dla biblioteki ObexFTP | |
114 | License: GPL v2+ | |
115 | Group: Development/Languages | |
116 | Requires: %{name}-libs = %{version}-%{release} | |
117 | %{?ruby_mod_ver_requires_eq} | |
118 | ||
119 | %description -n ruby-obexftp | |
120 | Ruby binding for ObexFTP library. | |
121 | ||
122 | %description -n ruby-obexftp -l pl.UTF-8 | |
123 | Wiązanie języka Ruby dla biblioteki ObexFTP. | |
124 | ||
125 | %package -n tcl-obexftp | |
126 | Summary: Tcl binding for ObexFTP library | |
127 | Summary(pl.UTF-8): Wiązanie Tcl-a dla biblioteki ObexFTP | |
128 | License: GPL v2+ | |
129 | Group: Development/Languages | |
130 | Requires: %{name}-libs = %{version}-%{release} | |
131 | Requires: tcl | |
132 | ||
133 | %description -n tcl-obexftp | |
134 | Tcl binding for ObexFTP library. | |
135 | ||
136 | %description -n tcl-obexftp -l pl.UTF-8 | |
137 | Wiązanie Tcl-a dla biblioteki ObexFTP. | |
138 | ||
232589cd JK |
139 | %prep |
140 | %setup -q | |
e93ae017 | 141 | %patch0 -p1 |
7413a195 JB |
142 | %patch1 -p1 |
143 | %patch2 -p1 | |
0d4f41f9 | 144 | %patch3 -p1 |
f021e168 JB |
145 | |
146 | # hack for -L/usr/%{_lib} before -L../../obexftp/.libs | |
147 | ln -sf ../../obexftp/.libs/libobexftp.so swig/ruby | |
232589cd JK |
148 | |
149 | %build | |
150 | %{__libtoolize} | |
151 | %{__aclocal} | |
152 | %{__autoconf} | |
153 | %{__autoheader} | |
154 | %{__automake} | |
155 | %configure | |
156 | %{__make} | |
157 | ||
158 | %install | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
161 | %{__make} install \ | |
162 | DESTDIR=$RPM_BUILD_ROOT | |
163 | ||
f021e168 JB |
164 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/obexftp.{la,a} |
165 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/OBEXFTP/.packlist | |
166 | %py_postclean | |
7413a195 | 167 | |
232589cd JK |
168 | %clean |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
7397022d JB |
171 | %post libs -p /sbin/ldconfig |
172 | %postun libs -p /sbin/ldconfig | |
c5f1b482 | 173 | |
f021e168 JB |
174 | %post -n tcl-obexftp -p /sbin/ldconfig |
175 | %postun -n tcl-obexftp -p /sbin/ldconfig | |
176 | ||
232589cd JK |
177 | %files |
178 | %defattr(644,root,root,755) | |
7413a195 | 179 | %doc doc/obexftp*.html README* NEWS THANKS TODO AUTHORS ChangeLog |
f021e168 JB |
180 | %attr(755,root,root) %{_bindir}/obexftp |
181 | %attr(755,root,root) %{_bindir}/obexftpd | |
182 | %{_mandir}/man1/obexftp.1* | |
183 | %{_mandir}/man1/obexftpd.1* | |
232589cd JK |
184 | |
185 | %files libs | |
186 | %defattr(644,root,root,755) | |
f021e168 JB |
187 | %attr(755,root,root) %{_libdir}/libbfb.so.*.*.* |
188 | %attr(755,root,root) %ghost %{_libdir}/libbfb.so.0 | |
189 | %attr(755,root,root) %{_libdir}/libmulticobex.so.*.*.* | |
190 | %attr(755,root,root) %ghost %{_libdir}/libmulticobex.so.1 | |
191 | %attr(755,root,root) %{_libdir}/libobexftp.so.*.*.* | |
192 | %attr(755,root,root) %ghost %{_libdir}/libobexftp.so.0 | |
232589cd JK |
193 | |
194 | %files devel | |
195 | %defattr(644,root,root,755) | |
f021e168 JB |
196 | %attr(755,root,root) %{_libdir}/libbfb.so |
197 | %attr(755,root,root) %{_libdir}/libmulticobex.so | |
198 | %attr(755,root,root) %{_libdir}/libobexftp.so | |
199 | %{_libdir}/libbfb.la | |
200 | %{_libdir}/libmulticobex.la | |
201 | %{_libdir}/libobexftp.la | |
202 | %{_includedir}/bfb | |
203 | %{_includedir}/multicobex | |
204 | %{_includedir}/obexftp | |
205 | %{_pkgconfigdir}/obexftp.pc | |
232589cd JK |
206 | |
207 | %files static | |
208 | %defattr(644,root,root,755) | |
f021e168 JB |
209 | %{_libdir}/libbfb.a |
210 | %{_libdir}/libmulticobex.a | |
211 | %{_libdir}/libobexftp.a | |
7413a195 JB |
212 | |
213 | %files -n perl-obexftp | |
214 | %defattr(644,root,root,755) | |
215 | %{perl_vendorarch}/OBEXFTP.pm | |
216 | %dir %{perl_vendorarch}/auto/OBEXFTP | |
217 | %attr(755,root,root) %{perl_vendorarch}/auto/OBEXFTP/OBEXFTP.so | |
218 | %{perl_vendorarch}/auto/OBEXFTP/OBEXFTP.bs | |
219 | ||
220 | %files -n python-obexftp | |
221 | %defattr(644,root,root,755) | |
222 | %dir %{py_sitedir}/obexftp | |
223 | %attr(755,root,root) %{py_sitedir}/obexftp/_obexftp.so | |
f021e168 JB |
224 | %{py_sitedir}/obexftp/__init__.py[co] |
225 | %{py_sitedir}/obexftp-*.egg-info | |
226 | ||
227 | %files -n ruby-obexftp | |
228 | %defattr(644,root,root,755) | |
229 | %attr(755,root,root) %{ruby_sitearchdir}/obexftp.so | |
230 | ||
231 | %files -n tcl-obexftp | |
232 | %defattr(644,root,root,755) | |
233 | # -avoid-version missing | |
234 | %attr(755,root,root) %{_libdir}/obexftp.so.*.*.* | |
235 | %attr(755,root,root) %ghost %{_libdir}/obexftp.so.0 | |
236 | %attr(755,root,root) %{_libdir}/obexftp.so |