| 1 |
Summary: Validating XML Parser |
|---|
| 2 |
Name: xerces-c |
|---|
| 3 |
Version: 2.8.0 |
|---|
| 4 |
Release: 2%{?dist} |
|---|
| 5 |
License: ASL 2.0 |
|---|
| 6 |
Group: System Environment/Libraries |
|---|
| 7 |
URL: http://xml.apache.org/xerces-c/ |
|---|
| 8 |
Source: http://www.apache.org/dist/xerces/c/sources/xerces-c-src_2_8_0.tar.gz |
|---|
| 9 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|---|
| 10 |
|
|---|
| 11 |
%description |
|---|
| 12 |
Xerces-C is a validating XML parser written in a portable subset of |
|---|
| 13 |
C++. Xerces-C makes it easy to give your application the ability to |
|---|
| 14 |
read and write XML data. A shared library is provided for parsing, |
|---|
| 15 |
generating, manipulating, and validating XML documents. Xerces-C is |
|---|
| 16 |
faithful to the XML 1.0 recommendation and associated standards ( DOM |
|---|
| 17 |
1.0, DOM 2.0. SAX 1.0, SAX 2.0, Namespaces). |
|---|
| 18 |
|
|---|
| 19 |
%package devel |
|---|
| 20 |
Summary: Header files, libraries and development documentation for %{name} |
|---|
| 21 |
Group: Development/Libraries |
|---|
| 22 |
Requires: %{name} = %{version}-%{release} |
|---|
| 23 |
|
|---|
| 24 |
%description devel |
|---|
| 25 |
This package contains the header files, static libraries and development |
|---|
| 26 |
documentation for %{name}. If you like to develop programs using %{name}, |
|---|
| 27 |
you will need to install %{name}-devel. |
|---|
| 28 |
|
|---|
| 29 |
%package doc |
|---|
| 30 |
Group: Documentation |
|---|
| 31 |
Summary: Documentation for Xerces-C++ validating XML parser |
|---|
| 32 |
|
|---|
| 33 |
%description doc |
|---|
| 34 |
Documentation for Xerces-C++. |
|---|
| 35 |
|
|---|
| 36 |
Xerces-C++ is a validating XML parser written in a portable subset of C++. |
|---|
| 37 |
Xerces-C++ makes it easy to give your application the ability to read and |
|---|
| 38 |
write XML data. A shared library is provided for parsing, generating, |
|---|
| 39 |
manipulating, and validating XML documents. |
|---|
| 40 |
|
|---|
| 41 |
#%package samples |
|---|
| 42 |
#Summary: Sample applications using Xerces-C++ |
|---|
| 43 |
#Group: Applications/Text |
|---|
| 44 |
#Requires: %{name} = %{version}-devel-%{release} |
|---|
| 45 |
|
|---|
| 46 |
#%description samples |
|---|
| 47 |
#Sample applications using Xerces-C++. |
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
%prep |
|---|
| 51 |
%setup -q -n xerces-c-src_2_8_0 |
|---|
| 52 |
rm -rf doc/html/resources/.svn |
|---|
| 53 |
find ./doc -type f -perm 755 -exec chmod 644 {} \; |
|---|
| 54 |
find ./samples -type f -perm 755 -exec chmod 644 {} \; |
|---|
| 55 |
%{__perl} -pi.orig -e 's|(PREFIX.)/lib\b|$1/%{_lib}|g' src/xercesc/configure */Makefile.in |
|---|
| 56 |
rm doc/html/apiDocs/XMLRegisterCleanup_8hpp__incl.map |
|---|
| 57 |
rm doc/html/apiDocs/XSConstants_8hpp__incl.map |
|---|
| 58 |
|
|---|
| 59 |
# make rpmlint happy |
|---|
| 60 |
sed -i 's/\r//' doc/charter.xml |
|---|
| 61 |
iconv -f iso8859-1 -t utf-8 credits.txt > credits.utf8 && mv -f credits.{utf8,txt} |
|---|
| 62 |
iconv -f iso8859-1 -t utf-8 doc/feedback.xml > doc/feedback.utf8 && mv -f doc/feedback.{utf8,xml} |
|---|
| 63 |
iconv -f iso8859-1 -t utf-8 doc/migration.xml > doc/migration.utf8 && mv -f doc/migration.{utf8,xml} |
|---|
| 64 |
iconv -f iso8859-1 -t utf-8 doc/releases_archive.xml > doc/releases_archive.utf8 && mv -f doc/releases_archive.{utf8,xml} |
|---|
| 65 |
|
|---|
| 66 |
%build |
|---|
| 67 |
export XERCESCROOT="$PWD" |
|---|
| 68 |
|
|---|
| 69 |
# Let Makefiles be verbose |
|---|
| 70 |
find -name 'Makefile.*' | while read f; do |
|---|
| 71 |
sed -i -e 's/$Q//g' \ |
|---|
| 72 |
-e 's/{MAKE} -s/(MAKE)/g' \ |
|---|
| 73 |
-e '/echo \" (/d' \ |
|---|
| 74 |
$f |
|---|
| 75 |
done |
|---|
| 76 |
|
|---|
| 77 |
# Remove conflicting flags from runConfigure |
|---|
| 78 |
find -name runConfigure | while read f; do |
|---|
| 79 |
sed -i -e 's/-w -O -DNDEBUG/-DNDEBUG/g' $f |
|---|
| 80 |
done |
|---|
| 81 |
|
|---|
| 82 |
cd $XERCESCROOT/src/xercesc |
|---|
| 83 |
%ifarch alpha ppc64 s390x sparc64 x86_64 |
|---|
| 84 |
CXXFLAGS="${RPM_OPT_FLAGS}" CFLAGS="${RPM_OPT_FLAGS}" ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthreads -b64 -P %{_prefix} -C --libdir="%{_libdir}" |
|---|
| 85 |
%else |
|---|
| 86 |
CXXFLAGS="${RPM_OPT_FLAGS}" CFLAGS="${RPM_OPT_FLAGS}" ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthreads -b32 -P %{_prefix} -C --libdir="%{_libdir}" |
|---|
| 87 |
%endif |
|---|
| 88 |
# not smp safe |
|---|
| 89 |
%{__make} |
|---|
| 90 |
#cd $XERCESCROOT/samples |
|---|
| 91 |
#CXXFLAGS="${RPM_OPT_FLAGS}" CFLAGS="${RPM_OPT_FLAGS}" ./runConfigure -plinux -cgcc -xg++ |
|---|
| 92 |
#%{__make} |
|---|
| 93 |
|
|---|
| 94 |
%install |
|---|
| 95 |
%{__rm} -rf $RPM_BUILD_ROOT |
|---|
| 96 |
export XERCESCROOT="$PWD" |
|---|
| 97 |
%{__make} install -C src/xercesc DESTDIR="$RPM_BUILD_ROOT" |
|---|
| 98 |
#mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name} |
|---|
| 99 |
#rm -rf $XERCESCROOT/samples/Projects |
|---|
| 100 |
#cp -a $XERCESCROOT/samples $RPM_BUILD_ROOT%{_datadir}/%{name} |
|---|
| 101 |
|
|---|
| 102 |
%post -p /sbin/ldconfig |
|---|
| 103 |
%postun -p /sbin/ldconfig |
|---|
| 104 |
|
|---|
| 105 |
%clean |
|---|
| 106 |
%{__rm} -rf $RPM_BUILD_ROOT |
|---|
| 107 |
|
|---|
| 108 |
%files |
|---|
| 109 |
%defattr(-,root,root,-) |
|---|
| 110 |
%doc LICENSE.txt |
|---|
| 111 |
%{_libdir}/libxerces*.so.* |
|---|
| 112 |
|
|---|
| 113 |
%files devel |
|---|
| 114 |
%defattr(-,root,root,-) |
|---|
| 115 |
%{_libdir}/libxerces*.so |
|---|
| 116 |
%{_includedir}/xercesc/ |
|---|
| 117 |
|
|---|
| 118 |
%files doc |
|---|
| 119 |
%defattr(-,root,root,-) |
|---|
| 120 |
%doc Readme.html LICENSE NOTICE STATUS credits.txt doc samples |
|---|
| 121 |
|
|---|
| 122 |
#%files samples |
|---|
| 123 |
#%defattr(-,root,root,-) |
|---|
| 124 |
#%{_datadir}/%{name}/samples |
|---|
| 125 |
|
|---|
| 126 |
%changelog |
|---|
| 127 |
* Mon Jun 30 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-2 |
|---|
| 128 |
- Spec cleanups ( https://bugzilla.redhat.com/show_bug.cgi?id=435132 ) |
|---|
| 129 |
|
|---|
| 130 |
* Sun Feb 10 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-1 |
|---|
| 131 |
- Ver. 2.8.0 |
|---|
| 132 |
|
|---|
| 133 |
* Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-6 |
|---|
| 134 |
- typo fix |
|---|
| 135 |
|
|---|
| 136 |
* Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-5 |
|---|
| 137 |
- fixed some rpmlint warnings |
|---|
| 138 |
|
|---|
| 139 |
* Fri Nov 24 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-4 |
|---|
| 140 |
- Added samples to docs-package |
|---|
| 141 |
|
|---|
| 142 |
* Sat Nov 18 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-3 |
|---|
| 143 |
- improvements suggested by Aurelien Bompard |
|---|
| 144 |
|
|---|
| 145 |
* Sat Oct 14 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-2 |
|---|
| 146 |
- Disabled package 'samples' |
|---|
| 147 |
|
|---|
| 148 |
* Fri Oct 13 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-1 |
|---|
| 149 |
- initial build for FE |
|---|
| 150 |
|
|---|
| 151 |
* Fri Jan 06 2006 Dag Wieers <dag@wieers.com> - 2.7.0-1 - 3891/dag |
|---|
| 152 |
- Cleaned SPEC file. |
|---|
| 153 |
|
|---|
| 154 |
* Tue Jan 03 2006 Dries Verachtert <dries@ulyssis.org> - 2.7.0-1 |
|---|
| 155 |
- Updated to release 2.7.0. |
|---|
| 156 |
|
|---|
| 157 |
* Thu Sep 22 2005 C.Lee Taylor <leet@leenx.co.za> 2.6.1-1 |
|---|
| 158 |
- Update to 2.6.1 |
|---|
| 159 |
- Build for FC4 32/64bit |
|---|
| 160 |
|
|---|
| 161 |
* Sat Aug 20 2005 Che |
|---|
| 162 |
- initial rpm release |
|---|