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