2 # - maybe add datetime.patch from synce repository
3 # - namespace.patch from synce trunk contains some improvements
4 # - build dynamic documentation OFF
6 Summary: The WBXML Library
7 Summary(pl.UTF-8): Biblioteka WBXML
13 Source0: http://downloads.sourceforge.net/libwbxml/%{name}-%{version}.tar.bz2
14 # Source0-md5: 7b51c425fc2ff9f502cd9b1e291b1955
15 Patch0: wbxml2-r59.patch
16 URL: http://libwbxml.opensync.org/
18 BuildRequires: expat-devel
19 BuildRequires: libstdc++-devel
20 BuildRequires: libtool
21 BuildRequires: rpmbuild(macros) >= 1.586
22 BuildConflicts: wbxml2
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The WBXML Library (libwbxml) contains a library and its associated
29 tools to parse, encode and handle WBXML documents. The WBXML format is
30 a binary representation of XML, defined by the Wap Forum, and used to
31 reduce bandwidth in mobile communications.
33 %description -l pl.UTF-8
34 Format WBXML jest binarną reprezentacją XML, zdefiniowaną przez Wap
35 Forum, mającą na celu zmniejszenie ruchu w komunikacji przez
39 Summary: Header files for WBXML library
40 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki WBXML
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
43 Obsoletes: libwbxml2-devel
44 Obsoletes: wbxml2-devel
45 Obsoletes: wbxml2-static
48 Header files for WBXML library.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki WBXML.
61 -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
66 rm -rf $RPM_BUILD_ROOT
67 %{__make} -C build install \
68 DESTDIR=$RPM_BUILD_ROOT
70 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
73 rm -rf $RPM_BUILD_ROOT
75 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
79 %defattr(644,root,root,755)
80 # COPYING contains just license information, not LGPL text itself
81 %doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO References
82 %attr(755,root,root) %{_bindir}/wbxml2xml
83 %attr(755,root,root) %{_bindir}/xml2wbxml
84 %attr(755,root,root) %{_libdir}/libwbxml2.so.*.*.*
85 %attr(755,root,root) %ghost %{_libdir}/libwbxml2.so.0
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_libdir}/libwbxml2.so
90 %{_includedir}/wbxml*.h
91 %{_pkgconfigdir}/libwbxml2.pc