2 Summary(pl): Analizator sk³adniowy XML-a
5 %define ver %(echo %{version} | tr . _)
8 Group: Applications/Publishing/XML
9 Source0: http://www.apache.org/dist/xml/xerces-c/source/%{name}-src_%{ver}.tar.gz
10 # Source0-md5: 04169609449a8846bc1e6891c04cadf4
11 Patch0: %{name}-iso88592.patch
12 Patch1: %{name}-link.patch
13 URL: http://xml.apache.org/
14 BuildRequires: autoconf
15 BuildRequires: libstdc++-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Analizator sk³adniowy XML-a.
25 Summary: %{name} header files
26 Summary(pl): Pliki nag³ówkowe %{name}
27 Group: Development/Libraries
28 Requires: %{name} = %{version}
29 Requires: libstdc++-devel
34 %description devel -l pl
35 Pliki nag³ówkowe %{name}.
38 Summary: Extensive %{name} documentation
39 Summary(pl): Obszerna dokumentacja %{name}
43 Extensive %{name} documentation and examples.
45 %description doc -l pl
46 Obszerna dokumentacja oraz przyk³ady %{name}.
49 %setup -q -n xerces-c-src_%{ver}
55 XERCESCROOT=`pwd`; export XERCESCROOT
58 chmod 755 runConfigure
59 ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthread \
60 -z%(echo %{rpmcflags} | sed -e 's/\(.\) \+\(.\)/\1 -z\2/g')
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 %{__make} -C src/xercesc install \
71 DESTDIR=$RPM_BUILD_ROOT
73 cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
76 rm -rf $RPM_BUILD_ROOT
78 %post -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
82 %defattr(644,root,root,755)
83 %doc LICENSE.txt credits.txt
84 %attr(755,root,root) %{_libdir}/lib*.so.*.*
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_libdir}/lib*.so
92 %defattr(644,root,root,755)
94 %{_examplesdir}/%{name}-%{version}