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