1 %define ver %(echo %{version} | tr . _)
3 Summary(pl): Analizator sk³adniowy XML-a
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 Patch2: %{name}-opt.patch
14 Patch3: %{name}-lib64.patch
15 URL: http://xml.apache.org/
16 BuildRequires: autoconf
17 BuildRequires: libstdc++-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Analizator sk³adniowy XML-a.
27 Summary: %{name} header files
28 Summary(pl): Pliki nag³ówkowe %{name}
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
31 Requires: libstdc++-devel
36 %description devel -l pl
37 Pliki nag³ówkowe %{name}.
40 Summary: Extensive %{name} documentation
41 Summary(pl): Obszerna dokumentacja %{name}
45 Extensive %{name} documentation and examples.
47 %description doc -l pl
48 Obszerna dokumentacja oraz przyk³ady %{name}.
51 %setup -q -n %{name}-src_%{ver}
61 XERCESCROOT=`pwd`; export XERCESCROOT
64 chmod 755 runConfigure
65 ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthread \
66 -z%(echo %{rpmcflags} | sed -e 's/\(.\) \+\(.\)/\1 -z\2/g')
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
74 %{__make} -C src/xercesc install \
77 DESTDIR=$RPM_BUILD_ROOT
79 cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
82 rm -rf $RPM_BUILD_ROOT
84 %post -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
88 %defattr(644,root,root,755)
89 %doc LICENSE.txt credits.txt
90 %attr(755,root,root) %{_libdir}/lib*.so.*.*
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/lib*.so
98 %defattr(644,root,root,755)
100 %{_examplesdir}/%{name}-%{version}