upload tizen1.0 source
[external/libwbxml2.git] / wbxml2.spec.in
1 %define name    @PACKAGE@
2 %define ver     @VERSION@
3 %define RELEASE @RELEASE@
4 %define rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
5 %define prefix  /usr
6
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
10 Name:           %name
11 Version:        %ver
12 Release:        %rel
13 Copyright:      LGPL
14 Vendor:         Aymerick Jéhanne <aymerick@jehanne.org>
15 URL:            http://libwbxml.aymerick.com/
16
17 Packager:       Pau Aliagas <pau@smsarena.com>
18 Group:          Development/Libraries
19 Source:         %{ver}/%{name}-%{ver}.tar.gz
20
21 BuildRoot:      %{_tmppath}/%{name}-%{ver}-root
22 Requires:       expat >= 1.95.4
23 BuildRequires:  expat-devel >= 1.95.4
24 AutoReqProv:    yes
25 Provides:       wbxml2
26
27 %description
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.
30
31 %description -l ca_ES
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.
34
35 %description -l es_ES
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.
38
39 %prep
40 %setup
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}
43
44
45 %build
46 # Setup for parallel builds
47 numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
48 if [ "$numprocs" = "0" ]; then
49   numprocs=1
50 fi
51 make -j$numprocs
52
53 %install
54
55 rm -rf $RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_DIR/file.list.wbxml
57
58 make install-strip DESTDIR=$RPM_BUILD_ROOT
59
60 # Ensure that all directories exist
61 cd $RPM_BUILD_ROOT
62
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
67
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
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_DIR/%{name}-%{ver}
76 rm -rf $RPM_BUILD_DIR/file.list.wbxml
77
78
79 %files -f ../file.list.wbxml
80
81 %changelog 
82
83 * Wed Mar 19 2003 Pau Aliagas <pau@smsarena.com>
84 - spec number 0.7.1
85 - install header files in their own directory
86 - include new documentation
87 - first rpm release