tizen 2.4 release
[external/libwbxml2.git] / packaging / libwbxml2.spec
1 #sbs-git:slp/pkgs/l/libwbxml2 libwbxml2 0.11.0 06ce77fab109724e1aa6f14ea0edf4760a4d7889
2 Name: libwbxml2
3 Version: 0.11.1
4 Release: 1
5 Summary: Library to parse, encode and handle WBXML documents
6 Group: System/Libraries
7 License: LGPL-2.1+
8 Source0: %{name}-%{version}.tar.gz
9 BuildRequires: expat-devel zlib-devel popt-devel
10 BuildRequires: pkgconfig(libxml-2.0)
11 BuildRequires: cmake
12
13 %description
14 The WBXML Library (aka libwbxml) contains a library and its associated
15 tools to Parse, Encode and Handle WBXML documents.  The WBXML format
16 is a binary representation of XML, defined by the Wap Forum, and used
17 to reduce bandwidth in mobile communications.
18
19
20 %package devel
21 Summary: Development files for %{name}
22 Group: Development/Libraries
23 Requires: %{name} = %{version}-%{release}
24
25 %description devel
26 %{summary}.
27
28 %package utils
29 Summary: Binary XML utilities %{name}-utils
30 Group: Development/Libraries
31 Requires: %{name} = %{version}-%{release}
32
33 %description utils    
34 This package is libwbxml2-utils pkg for libwbxml2  
35
36 %prep
37 %setup -q
38 mkdir build
39
40 %build
41 cd build
42 cmake -DCMAKE_INSTALL_PREFIX=/usr ..
43 make %{?jobs:-j%jobs}
44
45
46 %install
47 rm -rf %{buildroot}
48 cd build
49 %make_install
50
51 mkdir -p %{buildroot}/usr/share/license
52 cp %{_builddir}/%{name}-%{version}/GNU-LGPL %{buildroot}/usr/share/license/%{name}
53
54
55 %clean
56 cd build
57 rm -rf %{buildroot}
58
59
60 %post -p /sbin/ldconfig
61 %postun -p /sbin/ldconfig
62
63
64 %files
65 %manifest libwbxml2.manifest
66 %defattr(-,root,root,-)
67 %{_bindir}/*
68 %{_libdir}/*.so.*
69 %doc %{_docdir}/*
70 /usr/share/license/%{name}
71
72 %files devel
73 %defattr(-,root,root,-)
74 /usr/include/libwbxml-1.0/wbxml/*.h
75 /usr/include/wbxml_config.h
76 /usr/lib/libwbxml2.so
77 /usr/lib/pkgconfig/libwbxml2.pc
78
79 %files utils
80 %manifest libwbxml2.manifest
81 %defattr(-,root,root,-)
82 %{_bindir}/*
83