1 %define ver %(echo %{version} | tr . _)
3 Summary(pl.UTF-8): Analizator składniowy XML-a
8 Group: Applications/Publishing/XML
9 Source0: http://www.apache.org/dist/xerces/c/sources/%{name}-src_%{ver}.tar.gz
10 # Source0-md5: 5daf514b73f3e0de9e3fce704387c0d2
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)
23 %description -l pl.UTF-8
24 Analizator składniowy XML-a.
27 Summary: %{name} header files
28 Summary(pl.UTF-8): Pliki nagłówkowe %{name}
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
31 Requires: libstdc++-devel
36 %description devel -l pl.UTF-8
37 Pliki nagłówkowe %{name}.
40 Summary: Extensive %{name} documentation
41 Summary(pl.UTF-8): Obszerna dokumentacja %{name}
43 Requires: %{name} = %{version}-%{release}
46 Extensive %{name} documentation.
48 %description doc -l pl.UTF-8
49 Obszerna dokumentacja %{name}.
52 Summary: %{name} examples
53 Summary(pl.UTF-8): Przykłady %{name}
55 Requires: %{name} = %{version}-%{release}
60 %description doc -l pl.UTF-8
64 %setup -q -n %{name}-src_%{ver}
74 XERCESCROOT=`pwd`; export XERCESCROOT
77 chmod 755 runConfigure
78 ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthread \
79 -z%(echo %{rpmcflags} | sed -e 's/\(.\) \+\(.\)/\1 -z\2/g')
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
86 install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version}
88 %{__make} -C src/xercesc install \
91 DESTDIR=$RPM_BUILD_ROOT
93 cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
94 cp -a doc/html/* $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version}
97 rm -rf $RPM_BUILD_ROOT
99 %post -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
103 %defattr(644,root,root,755)
104 %doc LICENSE.txt credits.txt
105 %attr(755,root,root) %{_libdir}/libxerces-c.so.*.*
106 %attr(755,root,root) %{_libdir}/libxerces-depdom.so.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libxerces-c.so.28
108 %attr(755,root,root) %ghost %{_libdir}/libxerces-depdom.so.28
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libxerces-c.so
113 %attr(755,root,root) %{_libdir}/libxerces-depdom.so
114 %{_includedir}/xercesc
117 %defattr(644,root,root,755)
118 %{_docdir}/%{name}-doc-%{version}
121 %defattr(644,root,root,755)
122 %{_examplesdir}/%{name}-%{version}