|
|
00cd542 |
Summary: Validating XML Parser
|
|
|
5f4aa24 |
Name: xerces-c
|
|
|
5f4aa24 |
Version: 2.8.0
|
|
|
5f4aa24 |
Release: 2%{?dist}
|
|
|
5f4aa24 |
License: ASL 2.0
|
|
|
00cd542 |
Group: System Environment/Libraries
|
|
|
5f4aa24 |
URL: http://xml.apache.org/xerces-c/
|
|
|
5f4aa24 |
Source: http://www.apache.org/dist/xerces/c/sources/xerces-c-src_2_8_0.tar.gz
|
|
|
00cd542 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
00cd542 |
|
|
|
00cd542 |
%description
|
|
|
00cd542 |
Xerces-C is a validating XML parser written in a portable subset of
|
|
|
00cd542 |
C++. Xerces-C makes it easy to give your application the ability to
|
|
|
00cd542 |
read and write XML data. A shared library is provided for parsing,
|
|
|
00cd542 |
generating, manipulating, and validating XML documents. Xerces-C is
|
|
|
00cd542 |
faithful to the XML 1.0 recommendation and associated standards ( DOM
|
|
|
00cd542 |
1.0, DOM 2.0. SAX 1.0, SAX 2.0, Namespaces).
|
|
|
00cd542 |
|
|
|
5f4aa24 |
%package devel
|
|
|
5f4aa24 |
Summary: Header files, libraries and development documentation for %{name}
|
|
|
5f4aa24 |
Group: Development/Libraries
|
|
|
5f4aa24 |
Requires: %{name} = %{version}-%{release}
|
|
|
00cd542 |
|
|
|
00cd542 |
%description devel
|
|
|
00cd542 |
This package contains the header files, static libraries and development
|
|
|
00cd542 |
documentation for %{name}. If you like to develop programs using %{name},
|
|
|
00cd542 |
you will need to install %{name}-devel.
|
|
|
00cd542 |
|
|
|
00cd542 |
%package doc
|
|
|
00cd542 |
Group: Documentation
|
|
|
00cd542 |
Summary: Documentation for Xerces-C++ validating XML parser
|
|
|
00cd542 |
|
|
|
00cd542 |
%description doc
|
|
|
00cd542 |
Documentation for Xerces-C++.
|
|
|
00cd542 |
|
|
|
00cd542 |
Xerces-C++ is a validating XML parser written in a portable subset of C++.
|
|
|
00cd542 |
Xerces-C++ makes it easy to give your application the ability to read and
|
|
|
00cd542 |
write XML data. A shared library is provided for parsing, generating,
|
|
|
00cd542 |
manipulating, and validating XML documents.
|
|
|
00cd542 |
|
|
|
00cd542 |
#%package samples
|
|
|
00cd542 |
#Summary: Sample applications using Xerces-C++
|
|
|
00cd542 |
#Group: Applications/Text
|
|
|
00cd542 |
#Requires: %{name} = %{version}-devel-%{release}
|
|
|
00cd542 |
|
|
|
00cd542 |
#%description samples
|
|
|
00cd542 |
#Sample applications using Xerces-C++.
|
|
|
00cd542 |
|
|
|
00cd542 |
|
|
|
00cd542 |
%prep
|
|
|
7256b83 |
%setup -q -n xerces-c-src_2_8_0
|
|
|
00cd542 |
rm -rf doc/html/resources/.svn
|
|
|
00cd542 |
find ./doc -type f -perm 755 -exec chmod 644 {} \;
|
|
|
00cd542 |
find ./samples -type f -perm 755 -exec chmod 644 {} \;
|
|
|
9888a5b |
%{__perl} -pi.orig -e 's|(PREFIX.)/lib\b|$1/%{_lib}|g' src/xercesc/configure */Makefile.in
|
|
|
5f4aa24 |
rm doc/html/apiDocs/XMLRegisterCleanup_8hpp__incl.map
|
|
|
5f4aa24 |
rm doc/html/apiDocs/XSConstants_8hpp__incl.map
|
|
|
5f4aa24 |
|
|
|
5f4aa24 |
# make rpmlint happy
|
|
|
5f4aa24 |
sed -i 's/\r//' doc/charter.xml
|
|
|
5f4aa24 |
iconv -f iso8859-1 -t utf-8 credits.txt > credits.utf8 && mv -f credits.{utf8,txt}
|
|
|
5f4aa24 |
iconv -f iso8859-1 -t utf-8 doc/feedback.xml > doc/feedback.utf8 && mv -f doc/feedback.{utf8,xml}
|
|
|
5f4aa24 |
iconv -f iso8859-1 -t utf-8 doc/migration.xml > doc/migration.utf8 && mv -f doc/migration.{utf8,xml}
|
|
|
5f4aa24 |
iconv -f iso8859-1 -t utf-8 doc/releases_archive.xml > doc/releases_archive.utf8 && mv -f doc/releases_archive.{utf8,xml}
|
|
|
00cd542 |
|
|
|
00cd542 |
%build
|
|
|
00cd542 |
export XERCESCROOT="$PWD"
|
|
|
00cd542 |
|
|
|
00cd542 |
# Let Makefiles be verbose
|
|
|
00cd542 |
find -name 'Makefile.*' | while read f; do
|
|
|
00cd542 |
sed -i -e 's/$Q//g' \
|
|
|
00cd542 |
-e 's/{MAKE} -s/(MAKE)/g' \
|
|
|
00cd542 |
-e '/echo \" (/d' \
|
|
|
00cd542 |
$f
|
|
|
00cd542 |
done
|
|
|
00cd542 |
|
|
|
00cd542 |
# Remove conflicting flags from runConfigure
|
|
|
00cd542 |
find -name runConfigure | while read f; do
|
|
|
00cd542 |
sed -i -e 's/-w -O -DNDEBUG/-DNDEBUG/g' $f
|
|
|
00cd542 |
done
|
|
|
00cd542 |
|
|
|
00cd542 |
cd $XERCESCROOT/src/xercesc
|
|
|
00cd542 |
%ifarch alpha ppc64 s390x sparc64 x86_64
|
|
|
00cd542 |
CXXFLAGS="${RPM_OPT_FLAGS}" CFLAGS="${RPM_OPT_FLAGS}" ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthreads -b64 -P %{_prefix} -C --libdir="%{_libdir}"
|
|
|
00cd542 |
%else
|
|
|
00cd542 |
CXXFLAGS="${RPM_OPT_FLAGS}" CFLAGS="${RPM_OPT_FLAGS}" ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthreads -b32 -P %{_prefix} -C --libdir="%{_libdir}"
|
|
|
00cd542 |
%endif
|
|
|
00cd542 |
# not smp safe
|
|
|
00cd542 |
%{__make}
|
|
|
00cd542 |
#cd $XERCESCROOT/samples
|
|
|
00cd542 |
#CXXFLAGS="${RPM_OPT_FLAGS}" CFLAGS="${RPM_OPT_FLAGS}" ./runConfigure -plinux -cgcc -xg++
|
|
|
00cd542 |
#%{__make}
|
|
|
00cd542 |
|
|
|
00cd542 |
%install
|
|
|
00cd542 |
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
00cd542 |
export XERCESCROOT="$PWD"
|
|
|
00cd542 |
%{__make} install -C src/xercesc DESTDIR="$RPM_BUILD_ROOT"
|
|
|
00cd542 |
#mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
00cd542 |
#rm -rf $XERCESCROOT/samples/Projects
|
|
|
00cd542 |
#cp -a $XERCESCROOT/samples $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
00cd542 |
|
|
|
00cd542 |
%post -p /sbin/ldconfig
|
|
|
00cd542 |
%postun -p /sbin/ldconfig
|
|
|
00cd542 |
|
|
|
00cd542 |
%clean
|
|
|
00cd542 |
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
00cd542 |
|
|
|
00cd542 |
%files
|
|
|
00cd542 |
%defattr(-,root,root,-)
|
|
|
00cd542 |
%doc LICENSE.txt
|
|
|
00cd542 |
%{_libdir}/libxerces*.so.*
|
|
|
00cd542 |
|
|
|
00cd542 |
%files devel
|
|
|
00cd542 |
%defattr(-,root,root,-)
|
|
|
00cd542 |
%{_libdir}/libxerces*.so
|
|
|
00cd542 |
%{_includedir}/xercesc/
|
|
|
00cd542 |
|
|
|
00cd542 |
%files doc
|
|
|
00cd542 |
%defattr(-,root,root,-)
|
|
|
00cd542 |
%doc Readme.html LICENSE NOTICE STATUS credits.txt doc samples
|
|
|
00cd542 |
|
|
|
00cd542 |
#%files samples
|
|
|
00cd542 |
#%defattr(-,root,root,-)
|
|
|
00cd542 |
#%{_datadir}/%{name}/samples
|
|
|
00cd542 |
|
|
|
00cd542 |
%changelog
|
|
|
5f4aa24 |
* Mon Jun 30 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-2
|
|
|
5f4aa24 |
- Spec cleanups ( https://bugzilla.redhat.com/show_bug.cgi?id=435132 )
|
|
|
00cd542 |
|
|
|
7256b83 |
* Sun Feb 10 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-1
|
|
|
7256b83 |
- Ver. 2.8.0
|
|
|
7256b83 |
|
|
|
9888a5b |
* Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-6
|
|
|
9888a5b |
- typo fix
|
|
|
9888a5b |
|
|
|
00cd542 |
* Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-5
|
|
|
00cd542 |
- fixed some rpmlint warnings
|
|
|
00cd542 |
|
|
|
00cd542 |
* Fri Nov 24 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-4
|
|
|
00cd542 |
- Added samples to docs-package
|
|
|
00cd542 |
|
|
|
00cd542 |
* Sat Nov 18 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-3
|
|
|
00cd542 |
- improvements suggested by Aurelien Bompard
|
|
|
00cd542 |
|
|
|
00cd542 |
* Sat Oct 14 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-2
|
|
|
00cd542 |
- Disabled package 'samples'
|
|
|
00cd542 |
|
|
|
00cd542 |
* Fri Oct 13 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-1
|
|
|
00cd542 |
- initial build for FE
|
|
|
00cd542 |
|
|
|
00cd542 |
* Fri Jan 06 2006 Dag Wieers <dag@wieers.com> - 2.7.0-1 - 3891/dag
|
|
|
00cd542 |
- Cleaned SPEC file.
|
|
|
00cd542 |
|
|
|
00cd542 |
* Tue Jan 03 2006 Dries Verachtert <dries@ulyssis.org> - 2.7.0-1
|
|
|
00cd542 |
- Updated to release 2.7.0.
|
|
|
00cd542 |
|
|
|
00cd542 |
* Thu Sep 22 2005 C.Lee Taylor <leet@leenx.co.za> 2.6.1-1
|
|
|
00cd542 |
- Update to 2.6.1
|
|
|
00cd542 |
- Build for FC4 32/64bit
|
|
|
00cd542 |
|
|
|
00cd542 |
* Sat Aug 20 2005 Che
|
|
|
00cd542 |
- initial rpm release
|