]>
Commit | Line | Data |
---|---|---|
1 | Summary: Libsyncml - an implementation of the SyncML protocol | |
2 | Summary(pl.UTF-8): Libsyncml - implementacja protokołu SyncML | |
3 | Name: libsyncml | |
4 | Version: 0.4.6 | |
5 | Release: 0.1 | |
6 | License: LGPL | |
7 | Group: Libraries | |
8 | Source0: http://libsyncml.opensync.org/download/releases/0.4.6/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: d524b18c1eafe5805f83e29c01a91b66 | |
10 | URL: http://libsyncml.opensync.org/ | |
11 | BuildRequires: check | |
12 | BuildRequires: libsoup-devel | |
13 | BuildRequires: libxml2-devel | |
14 | BuildRequires: libtool | |
15 | BuildRequires: pkgconfig | |
16 | BuildRequires: rpmbuild(macros) >= 1.385 | |
17 | BuildRequires: openobex-devel >= 1.3 | |
18 | BuildRequires: wbxml2-devel >= 0.9.2 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Libsyncml is a implementation of the SyncML protocol. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Libsyncml jest implementacją protokołu SyncML. | |
26 | ||
27 | %package devel | |
28 | Summary: Header files for libsyncml library | |
29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsyncml | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | ||
33 | %description devel | |
34 | Header files for libsyncml library. | |
35 | ||
36 | %description devel -l pl.UTF-8 | |
37 | Pliki nagłówkowe biblioteki libsyncml. | |
38 | ||
39 | %prep | |
40 | %setup -q | |
41 | ||
42 | %build | |
43 | %cmake \ | |
44 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
45 | %if "%{_lib}" != "lib" | |
46 | -DLIB_SUFFIX=64 \ | |
47 | %endif | |
48 | . | |
49 | ||
50 | %{__make} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %post -p /sbin/ldconfig | |
62 | %postun -p /sbin/ldconfig | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc AUTHORS ChangeLog NEWS README | |
67 | %attr(755,root,root) %{_bindir}/syncml* | |
68 | %attr(755,root,root) %{_libdir}/libsyncml.so.*.*.* | |
69 | %{_mandir}/man1/syncml-http-server.1* | |
70 | %{_mandir}/man1/syncml-obex-client.1* | |
71 | ||
72 | %files devel | |
73 | %defattr(644,root,root,755) | |
74 | %attr(755,root,root) %{_libdir}/libsyncml.so | |
75 | %{_libdir}/libsyncml.la | |
76 | %{_includedir}/libsyncml-1.0 | |
77 | %{_pkgconfigdir}/libsyncml-1.0.pc |