From a5796995e499479de61aa8a304bf11e19912a93a Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Mon, 28 Dec 2009 18:36:32 +0000 Subject: [PATCH] Alter package names to support side by side installs. --- dependencies/xerces/xerces-c.spec | 55 +++++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 19 deletions(-) diff --git a/dependencies/xerces/xerces-c.spec b/dependencies/xerces/xerces-c.spec index 758544b..ede333b 100644 --- a/dependencies/xerces/xerces-c.spec +++ b/dependencies/xerces/xerces-c.spec @@ -1,10 +1,10 @@ Summary: Xerces-C++ validating XML parser Name: xerces-c Version: 3.0.1 -Release: 1 +Release: 2 URL: http://xerces.apache.org/xerces-c/ Source0: %{name}-%{version}.tar.gz -License: Apache +License: Apache Group: Libraries BuildRoot: %{_tmppath}/%{name}-root Prefix: /usr @@ -21,24 +21,35 @@ Xerces-C++ makes it easy to give your application the ability to read and write XML data. A shared library is provided for parsing, generating, manipulating, and validating XML documents. -The parser provides high performance, modularity, and scalability. Source -code, samples and API documentation are provided with the parser. For -portability, care has been taken to make minimal use of templates, no RTTI, -and minimal use of #ifdefs. +%package -n libxerces-c-3_0 +Summary: Log for C++, Shibboleth Edition +Group: Development/Libraries +Provides: xerces-c = %{version} +Obsoletes: xerces-c + +%description -n libxerces-c-3_0 +Xerces-C++ is a validating XML parser written in a portable subset of C++. +Xerces-C++ makes it easy to give your application the ability to read and +write XML data. A shared library is provided for parsing, generating, +manipulating, and validating XML documents. -%package devel -Requires: %{name} = %{version} +This package contains just the shared library. + +%package -n libxerces-c-devel Group: Development/Libraries Summary: Header files for Xerces-C++ validating XML parser +Requires: libxerces-c-3_0 = %{version} +Provides: xerces-c-devel = %{version} +Obsoletes: xerces-c-devel -%description devel -Header files you can use to develop XML applications with Xerces-C++. - +%description -n libxerces-c-devel Xerces-C++ is a validating XML parser written in a portable subset of C++. Xerces-C++ makes it easy to give your application the ability to read and write XML data. A shared library is provided for parsing, generating, manipulating, and validating XML documents. +The static libraries and header files needed for development with Xerces-C++. + %prep %setup -q @@ -53,27 +64,33 @@ manipulating, and validating XML documents. [ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT %ifnos solaris2.8 solaris2.9 solaris2.10 -%post -p /sbin/ldconfig +%post -n libxerces-c-3_0 -p /sbin/ldconfig %endif %ifnos solaris2.8 solaris2.9 solaris2.10 -%postun -p /sbin/ldconfig +%postun -n libxerces-c-3_0 -p /sbin/ldconfig %endif %files %defattr(755,root,root) %{_bindir}/* -%{_libdir}/lib%{name}-*.so -%files devel +%files -n libxerces-c-3_0 +%defattr(755,root,root) +%{_libdir}/libxerces-c-*.so + +%files -n libxerces-c-devel %defattr(-,root,root) %{_includedir} -%{_libdir}/lib%{name}.so -%{_libdir}/lib%{name}.a -%{_libdir}/pkgconfig/%{name}.pc -%exclude %{_libdir}/lib%{name}.la +%{_libdir}/libxerces-c.so +%{_libdir}/libxerces-c.a +%{_libdir}/pkgconfig/xerces-c.pc +%exclude %{_libdir}/libxerces-c.la %changelog +* Mon Dec 28 2009 Scott Cantor 3.0.1-2 +- Sync package names for side by side installation + * Wed Aug 5 2009 Scott Cantor 3.0.1-1 - Disabled curl thanks to Red Hat -- 2.1.4