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