1 %define tarversion 2_7_1
2 %define barename xerces-c
5 # values: pthreads, none
6 %define threads pthreads
8 Summary: Xerces-C++ validating XML parser
12 URL: http://shibboleth.internet2.edu/downloads/
13 Source0: %{barename}-src_%{tarversion}.tar.gz
16 BuildRoot: %{_tmppath}/%{name}-root
18 Obsoletes: %{barename} <= %{version}
21 Xerces-C++ is a validating XML parser written in a portable subset of C++.
22 Xerces-C++ makes it easy to give your application the ability to read and
23 write XML data. A shared library is provided for parsing, generating,
24 manipulating, and validating XML documents.
26 The parser provides high performance, modularity, and scalability. Source
27 code, samples and API documentation are provided with the parser. For
28 portability, care has been taken to make minimal use of templates, no RTTI,
29 and minimal use of #ifdefs.
32 Summary: Sample applications using Xerces-C++
33 Group: Applications/Text
34 Requires: %{name} = %{version}-%{release}
35 Obsoletes: %{barename}-samples <= %{version}
38 Sample applications using Xerces-C++.
41 Requires: %{name} = %{version}-%{release}
42 Obsoletes: %{barename}-devel <= %{version}
43 Group: Development/Libraries
44 Summary: Header files for Xerces-C++ validating XML parser
47 Header files you can use to develop XML applications with Xerces-C++.
49 Xerces-C++ is a validating XML parser written in a portable subset of C++.
50 Xerces-C++ makes it easy to give your application the ability to read and
51 write XML data. A shared library is provided for parsing, generating,
52 manipulating, and validating XML documents.
55 Obsoletes: %{barename}-doc <= %{version}
57 Summary: Documentation for Xerces-C++ validating XML parser
60 Documentation for Xerces-C++.
62 Xerces-C++ is a validating XML parser written in a portable subset of C++.
63 Xerces-C++ makes it easy to give your application the ability to read and
64 write XML data. A shared library is provided for parsing, generating,
65 manipulating, and validating XML documents.
68 %setup -q -n %{barename}-src_%{tarversion}
74 %ifarch alpha ppc64 s390x sparc64 x86_64 ia64
75 %define rcopts -b 64 -p %{_target_os}
77 %define rcopts -b 32 -p %{_target_os}
80 export XERCESCROOT=`pwd`
81 cd $XERCESCROOT/src/xercesc
82 ./runConfigure %{rcopts} -C --libdir="%{_libdir}" -minmem -nsocket -tnative -r%{threads} -P%{prefix}
84 cd $XERCESCROOT/samples
85 ./runConfigure %{rcopts}
89 rm -rf $RPM_BUILD_ROOT
90 make -C src/xercesc install XERCESCROOT=`pwd` DESTDIR=$RPM_BUILD_ROOT
91 if [ ! -e $RPM_BUILD_ROOT%{_prefix}/%{_lib} ]; then
92 mv $RPM_BUILD_ROOT%{_prefix}/lib $RPM_BUILD_ROOT%{_prefix}/%{_lib}
96 install -dm 755 $RPM_BUILD_ROOT%{_bindir}
97 install -pm 755 bin/* $RPM_BUILD_ROOT%{_bindir}
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
108 %defattr(-,root,root,-)
109 %doc LICENSE* NOTICE STATUS credits.txt
110 %{_libdir}/libxerces-*.so.*
113 %defattr(-,root,root,-)
117 %defattr(-,root,root,-)
118 %{_includedir}/xercesc
119 %{_libdir}/libxerces-*.so
122 %defattr(644,root,root,755)
126 * Wed Jun 6 2007 Scott Cantor <cantor.2@osu.edu>
127 - reapply improvements from our spec file for 2.6.0
129 * Fri Jun 6 2003 Tuan Hoang <tqhoang@bigfoot.com>
130 - updated for new Xerces-C filename and directory format
131 - fixed date format in changelog section
133 * Fri Mar 14 2003 Tinny Ng <tng@ca.ibm.com>
136 * Wed Dec 18 2002 Albert Strasheim <albert@stonethree.com>
137 - added symlink to libxerces-c.so in lib directory
139 * Fri Dec 13 2002 Albert Strasheim <albert@stonethree.com>
140 - added seperate doc package
143 * Tue Sep 03 2002 <thomas@linux.de>
144 - fixed missing DESTDIR in Makefile.util.submodule
146 * Mon Sep 02 2002 <thomas@linux.de>