]>
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.5.4 | |
5 | Release: 1 | |
6 | License: LGPL 2.1+ | |
7 | Group: Libraries | |
8 | Source0: https://downloads.sourceforge.net/project/libsyncml/libsyncml/%{version}/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: b8ce1f222cccc12acdcd6807d65c1aea | |
10 | URL: http://libsyncml.opensync.org/ | |
11 | BuildRequires: bluez-libs-devel | |
12 | BuildRequires: check | |
13 | BuildRequires: cmake | |
14 | BuildRequires: glib2-devel >= 1:2.12 | |
15 | BuildRequires: libsoup-devel >= 2.2.91 | |
16 | BuildRequires: libwbxml-devel >= 0.10.0 | |
17 | BuildRequires: libxml2-devel | |
18 | BuildRequires: openobex-devel >= 1.3 | |
19 | BuildRequires: pkgconfig | |
20 | BuildRequires: rpmbuild(macros) >= 1.385 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Libsyncml is a implementation of the SyncML protocol. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Libsyncml jest implementacją protokołu SyncML. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for libsyncml library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsyncml | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for libsyncml library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki libsyncml. | |
40 | ||
41 | %prep | |
42 | %setup -q | |
43 | ||
44 | %build | |
45 | install -d build | |
46 | cd build | |
47 | %cmake .. \ | |
48 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ | |
49 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
50 | %if "%{_lib}" == "lib64" | |
51 | -DLIB_SUFFIX=64 | |
52 | %endif | |
53 | ||
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} -C build install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %post -p /sbin/ldconfig | |
66 | %postun -p /sbin/ldconfig | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc AUTHORS ChangeLog README | |
71 | %attr(755,root,root) %{_bindir}/syncml* | |
72 | %attr(755,root,root) %{_libdir}/libsyncml.so.*.*.* | |
73 | %attr(755,root,root) %ghost %{_libdir}/libsyncml.so.2 | |
74 | ||
75 | %files devel | |
76 | %defattr(644,root,root,755) | |
77 | %{_libdir}/libsyncml.so | |
78 | %{_includedir}/libsyncml-1.0 | |
79 | %{_pkgconfigdir}/libsyncml-1.0.pc |