]> git.pld-linux.org Git - packages/obexftp.git/blame - obexftp.spec
- fix building with ruby 1.9
[packages/obexftp.git] / obexftp.spec
CommitLineData
7413a195 1%include /usr/lib/rpm/macros.perl
fff9263e 2Summary: File copying over the Object Exchange (OBEX) protocol
8759e90f 3Summary(pl.UTF-8): Kopiowanie plików z wykorzystaniem protokołu Object Exchange (OBEX)
232589cd 4Name: obexftp
8b354432
JR
5Version: 0.23
6Release: 1
f021e168 7License: GPL v2+ (server, bindings), LGPL v2+ (libraries)
232589cd 8Group: Applications/Communications
7397022d 9Source0: http://dl.sourceforge.net/openobex/%{name}-%{version}.tar.bz2
8b354432 10# Source0-md5: f20762061b68bc921e80be4aebc349eb
e93ae017 11Patch0: %{name}-no_server.patch
f021e168
JB
12Patch1: %{name}-perl.patch
13Patch2: %{name}-nostress.patch
0d4f41f9 14Patch3: %{name}-ruby1.9.patch
232589cd 15URL: http://triq.net/obex/
152ad420
JB
16BuildRequires: autoconf
17BuildRequires: automake
5fbbbb03 18BuildRequires: bluez-libs-devel
152ad420 19BuildRequires: libtool
232589cd 20BuildRequires: openobex-devel
7413a195 21BuildRequires: perl-devel >= 1:5.8.0
78560f5b 22BuildRequires: pkgconfig
f021e168 23BuildRequires: python-devel >= 1:2.5
7413a195
JB
24BuildRequires: rpm-perlprov
25BuildRequires: rpm-pythonprov
f021e168
JB
26BuildRequires: rpmbuild(macros) >= 1.277
27BuildRequires: ruby-devel
28BuildRequires: tcl-devel
40416bdf 29Requires: %{name}-libs = %{version}-%{release}
232589cd
JK
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
06a1afee
JK
33Free open source application for file copying over the Object Exchange
34(OBEX) protocol.
232589cd 35
6b3c55ab
JR
36%description -l pl.UTF-8
37Wolnodostępna aplikacja służąca do kopiowania plików z wykorzystaniem
38protokołu Object Exchange (OBEX).
fff9263e 39
232589cd
JK
40%package libs
41Summary: ObexFTP libraries
8759e90f 42Summary(pl.UTF-8): Biblioteki ObexFTP
f021e168 43License: LGPL v2+
232589cd
JK
44Group: Libraries
45
46%description libs
47ObexFTP libraries.
48
6b3c55ab 49%description libs -l pl.UTF-8
232589cd
JK
50Biblioteki ObexFTP.
51
52%package devel
53Summary: Header files for ObexFTP
8759e90f
ER
54Summary(es.UTF-8): Ficheros de cabecera para ObexFTP
55Summary(pl.UTF-8): Pliki nagłówkowe ObexFTP
f021e168 56License: LGPL v2+
232589cd 57Group: Development/Libraries
40416bdf 58Requires: %{name}-libs = %{version}-%{release}
78560f5b
JB
59Requires: bluez-libs-devel
60Requires: openobex-devel
232589cd
JK
61
62%description devel
06a1afee
JK
63The header files are only needed for development of programs based on
64ObexFTP.
232589cd 65
6b3c55ab
JR
66%description devel -l pl.UTF-8
67W pakiecie tym znajdują się pliki nagłówkowe, przeznaczone do
68rozwijania programów bazujących na bibliotekach ObexFTP.
232589cd
JK
69
70%package static
71Summary: Static ObexFTP library
8759e90f
ER
72Summary(es.UTF-8): Biblioteca estática de ObexFTP
73Summary(pl.UTF-8): Biblioteka statyczna ObexFTP
f021e168 74License: LGPL v2+
232589cd 75Group: Development/Libraries
4100e4a5 76Requires: %{name}-devel = %{version}-%{release}
232589cd
JK
77
78%description static
79Static ObexFTP library.
80
6b3c55ab 81%description static -l pl.UTF-8
232589cd
JK
82Biblioteka statyczna ObexFTP.
83
7413a195
JB
84%package -n perl-obexftp
85Summary: Perl binding for ObexFTP library
8759e90f 86Summary(pl.UTF-8): Wiązanie Perla dla biblioteki ObexFTP
f021e168 87License: GPL v2+
7413a195
JB
88Group: Development/Languages/Perl
89Requires: %{name}-libs = %{version}-%{release}
90
91%description -n perl-obexftp
92Perl binding for ObexFTP library.
93
6b3c55ab
JR
94%description -n perl-obexftp -l pl.UTF-8
95Wiązanie Perla dla biblioteki ObexFTP.
7413a195
JB
96
97%package -n python-obexftp
98Summary: Python binding for ObexFTP library
8759e90f 99Summary(pl.UTF-8): Wiązanie Pythona dla biblioteki ObexFTP
f021e168 100License: GPL v2+
7413a195
JB
101Group: Libraries/Python
102Requires: %{name}-libs = %{version}-%{release}
103%pyrequires_eq python-libs
104
105%description -n python-obexftp
106Python binding for ObexFTP library.
107
6b3c55ab
JR
108%description -n python-obexftp -l pl.UTF-8
109Wiązanie Pythona dla biblioteki ObexFTP.
7413a195 110
f021e168
JB
111%package -n ruby-obexftp
112Summary: Ruby binding for ObexFTP library
113Summary(pl.UTF-8): Wiązanie języka Ruby dla biblioteki ObexFTP
114License: GPL v2+
115Group: Development/Languages
116Requires: %{name}-libs = %{version}-%{release}
117%{?ruby_mod_ver_requires_eq}
118
119%description -n ruby-obexftp
120Ruby binding for ObexFTP library.
121
122%description -n ruby-obexftp -l pl.UTF-8
123Wiązanie języka Ruby dla biblioteki ObexFTP.
124
125%package -n tcl-obexftp
126Summary: Tcl binding for ObexFTP library
127Summary(pl.UTF-8): Wiązanie Tcl-a dla biblioteki ObexFTP
128License: GPL v2+
129Group: Development/Languages
130Requires: %{name}-libs = %{version}-%{release}
131Requires: tcl
132
133%description -n tcl-obexftp
134Tcl binding for ObexFTP library.
135
136%description -n tcl-obexftp -l pl.UTF-8
137Wią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
147ln -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
159rm -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
169rm -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
This page took 1.134083 seconds and 4 git commands to generate.