SHA256
1
0
forked from pool/xerces-c
xerces-c/xerces-c.spec

130 lines
3.8 KiB
RPMSpec

#
# spec file for package xerces-c (Version 3.0.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xerces-c
BuildRequires: gcc-c++ libicu-devel
License: Apache Software License ..
Group: Productivity/Publishing/XML
Version: 3.0.1
Release: 3
Summary: A Validating XML Parser
Url: http://xerces.apache.org/xerces-c/
Source: xerces-c-%{version}.tar.bz2
Patch0: %{name}-3.0.1-include.patch
Patch1: %{name}-3.0.1-CVE-2009-1885.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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. Xerces-C is
faithful to the XML 1.0 recommendation and associated standards ( DOM
1.0, DOM 2.0. SAX 1.0, SAX 2.0, Namespaces).
Authors:
--------
The Apache Group <apache@apache.org>
%package -n libxerces-c-3_0
License: Apache Software License ..
Group: Productivity/Publishing/XML
Summary: Shared libraries for Xerces-c - a validating XML parser
%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. Xerces-C is
faithful to the XML 1.0 recommendation and associated standards ( DOM
1.0, DOM 2.0. SAX 1.0, SAX 2.0, Namespaces).
This package contains just the shared libraries.
Authors:
--------
The Apache Group <apache@apache.org>
%package -n libxerces-c-devel
License: Apache Software License ..
Requires: libxerces-c-3_0 = %{version}
Provides: Xerces-c-devel = %{version}
Obsoletes: Xerces-c-devel < %{version}
Provides: libXerces-c-devel = %{version}
Obsoletes: libXerces-c-devel < %{version}
Group: Development/Libraries/C and C++
Summary: A validating XML parser - Development Files
%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.
This package includes files needed for development with Xerces-c
Authors:
--------
The Apache Group <apache@apache.org>
%prep
%setup -q -n xerces-c-%{version}
%patch0
%patch1
%build
%configure \
--disable-static
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libxerces-c-3_0 -p /sbin/ldconfig
%postun -n libxerces-c-3_0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc CREDITS KEYS LICENSE NOTICE README doc/*
%{_bindir}/*
%files -n libxerces-c-3_0
%defattr(-,root,root)
%{_libdir}/libxerces-c-3.0.so
%files -n libxerces-c-devel
%defattr(-,root,root)
%{_includedir}/xercesc
%{_libdir}/libxerces-c.so
%{_libdir}/pkgconfig/xerces-c.pc
%changelog