]> git.pld-linux.org Git - packages/libwbxml.git/blob - libwbxml.spec
- rebuild with expat 2.1.0
[packages/libwbxml.git] / libwbxml.spec
1 # TODO:
2 # - maybe add datetime.patch from synce repository
3 # - namespace.patch from synce trunk contains some improvements
4 # - build dynamic documentation                  OFF
5 #
6 Summary:        The WBXML Library
7 Summary(pl.UTF-8):      Biblioteka WBXML
8 Name:           libwbxml
9 Version:        0.10.8
10 Release:        2
11 License:        LGPL v2.1+
12 Group:          Libraries
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/
17 BuildRequires:  cmake
18 BuildRequires:  expat-devel
19 BuildRequires:  libstdc++-devel
20 BuildRequires:  libtool
21 BuildRequires:  rpmbuild(macros) >= 1.586
22 BuildConflicts: wbxml2
23 Obsoletes:      libwbxml2
24 Obsoletes:      wbxml2
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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.
32
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
36 urządzenia przenośne.
37
38 %package devel
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
46
47 %description devel
48 Header files for WBXML library.
49
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki WBXML.
52
53 %prep
54 %setup -q
55 %patch0 -p3
56
57 %build
58 install -d build
59 cd build
60 %cmake .. \
61         -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
62
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 %{__make} -C build install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
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
86
87 %files devel
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_libdir}/libwbxml2.so
90 %{_includedir}/wbxml*.h
91 %{_pkgconfigdir}/libwbxml2.pc
This page took 0.120138 seconds and 3 git commands to generate.