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 # Source0-md5: 5167dca8942dd2dd719fa5a8ebe0c18b
11 Patch0: %{name}-iso88592.patch
12 Patch1: %{name}-opt.patch
13 Patch2: %{name}-gcc295.patch
14 URL: http://xml.apache.org/
15 BuildRequires: autoconf
16 BuildRequires: libstdc++-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Summary: %{name} header files
27 Summary(pl): Pliki nag³ówkowe %{name}
28 Group: Development/Libraries
29 Requires: %{name} = %{version}
30 Requires: libstdc++-devel
35 %description devel -l pl
36 Pliki nag³ówkowe %{name}.
39 Summary: Extensive %{name} documentation
40 Summary(pl): Obszerna dokumentacja %{name}
44 Extensive %{name} documentation and examples.
46 %description doc -l pl
47 Obszerna dokumentacja oraz przyk³ady %{name}.
50 %setup -q -n xerces-c-src_%{ver}
57 XERCESCROOT=`pwd`; export XERCESCROOT
60 chmod 755 runConfigure
61 ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthread \
62 -z%(echo %{rpmcflags} | sed -e 's/\(.\) \+\(.\)/\1 -z\2/g')
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
71 install lib/lib*.so $RPM_BUILD_ROOT%{_libdir}
73 # I put all stuff from that dir, maybe some can be omitted
74 cp -a include/xercesc $RPM_BUILD_ROOT%{_includedir}
76 cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
79 rm -rf $RPM_BUILD_ROOT
81 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
85 %defattr(644,root,root,755)
86 %doc LICENSE.txt credits.txt
87 %attr(755,root,root) %{_libdir}/lib*.so
90 %defattr(644,root,root,755)
94 %defattr(644,root,root,755)
96 %{_examplesdir}/%{name}-%{version}