2 Summary(pl): Parser XML
5 %define ver %(echo %{version} | tr . _)
8 Group: Applications/Publishing/XML
9 Source0: http://xml.apache.org/dist/xerces-c/stable/%{name}-src%{ver}.tar.gz
10 Patch0: %{name}-opt.patch
11 URL: http://xml.apache.org/
12 BuildRequires: autoconf
13 BuildRequires: libstdc++-devel
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Summary: %{name} header files
24 Summary(pl): Pliki nag³ówkowe %{name}
25 Group: Development/Libraries
26 Requires: %{name} = %{version}
31 %description devel -l pl
32 Pliki nag³ówkowe %{name}.
35 Summary: Extensive %{name} documentation
36 Summary(pl): Obszerna dokumentacja %{name}
40 Extensive %{name} documentation and examples.
42 %description doc -l pl
43 Obszerna dokumentacja oraz przyk³ady %{name}.
46 %setup -q -n xerces-c-src%{ver}
51 XERCESCROOT=`pwd`; export XERCESCROOT
54 chmod 755 runConfigure
55 ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthread \
56 -z%(echo %{rpmcflags} | sed -e 's/\(.\) \+\(.\)/\1 -z\2/g')
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
65 install lib/lib*.so $RPM_BUILD_ROOT%{_libdir}
67 # I put all stuff from that dir, maybe some can be omitted
68 cp -a include/xercesc $RPM_BUILD_ROOT%{_includedir}
70 cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
73 rm -rf $RPM_BUILD_ROOT
75 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
79 %defattr(644,root,root,755)
80 %doc LICENSE.txt credits.txt
81 %attr(755,root,root) %{_libdir}/lib*.so
84 %defattr(644,root,root,755)
88 %defattr(644,root,root,755)
90 %{_examplesdir}/%{name}-%{version}