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