3 %define RELEASE @RELEASE@
4 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
7 Summary: WBXML parser and compiler library
8 Summary(ca_ES): llibreria WBXML amb parser i compilador
9 Summary(es_ES): libreria WBXML con parser y compilador
14 Vendor: Aymerick Jéhanne <aymerick@jehanne.org>
15 URL: http://libwbxml.aymerick.com/
17 Packager: Pau Aliagas <pau@smsarena.com>
18 Group: Development/Libraries
19 Source: %{ver}/%{name}-%{ver}.tar.gz
21 BuildRoot: %{_tmppath}/%{name}-%{ver}-root
22 Requires: expat >= 1.95.4
23 BuildRequires: expat-devel >= 1.95.4
28 wbxml2 is a library that includes a WBXML parser and a WBXML compiler.
29 Unlike wbxml, it does not depend on libxml2 but on expat, making it faster and more portable.
32 wbxml2 és una lliberia que inclou un parser i un compilador WBXML.
33 A diferència de wbxml, no depén de libxml2, fent-la més ràpida i portable.
36 wbxml2 es una liberia que incluye un parser y un compilador WBXML.
37 A diferencia de wbxml, no depende de libxml2, haciéndola más rápida y portable.
41 # CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" libtoolize && aclocal && autoheader && automake --add-missing && autoconf && ./configure --prefix=%{prefix}
42 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --includedir=%{prefix}/include/%{name}
46 # Setup for parallel builds
47 numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
48 if [ "$numprocs" = "0" ]; then
55 rm -rf $RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_DIR/file.list.wbxml
58 make install-strip DESTDIR=$RPM_BUILD_ROOT
60 # Ensure that all directories exist
63 # Install include files found in different subdirs (hack)
64 # SBD=$RPM_BUILD_DIR/%{name}-%{ver}
65 # install -d ./%{prefix}/include
66 # install -m644 $SBD/ince/*.h $SBD/inci/*.h ./%{prefix}/include
68 # list all files in the distribution
69 find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.wbxml
70 find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.wbxml
71 find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.wbxml
74 rm -rf $RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_DIR/%{name}-%{ver}
76 rm -rf $RPM_BUILD_DIR/file.list.wbxml
79 %files -f ../file.list.wbxml
83 * Wed Mar 19 2003 Pau Aliagas <pau@smsarena.com>
85 - install header files in their own directory
86 - include new documentation