commit
f14987f4a4
BIN
xerces-c-3.2.2.tar.gz
Normal file
BIN
xerces-c-3.2.2.tar.gz
Normal file
Binary file not shown.
69
xerces-c.spec
Normal file
69
xerces-c.spec
Normal file
@ -0,0 +1,69 @@
|
||||
Name: xerces-c
|
||||
Version: 3.2.2
|
||||
Release: 2
|
||||
Summary: A Validating XML Parser
|
||||
License: ASL 2.0
|
||||
URL: http://xml.apache.org/xerces-c/
|
||||
Source0: http://archive.apache.org/dist/xerces/c/3/sources/xerces-c-%{version}.tar.gz
|
||||
|
||||
BuildRequires: dos2unix
|
||||
|
||||
%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).
|
||||
|
||||
%package devel
|
||||
Summary: Development documentation for xerces-c
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains the header files, static libraries and development documentation for xerces-c.
|
||||
|
||||
%package help
|
||||
Summary: Help documentation for Xerces-C++
|
||||
BuildArch: noarch
|
||||
Provides: %{name}-doc = %{version}-%{release}
|
||||
Obsoletes: %{name}-doc < %{version}-%{release}
|
||||
|
||||
%description help
|
||||
Help documentation for Xerces-C++.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
install -d _docs
|
||||
cp -a samples/ _docs/
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
%configure --disable-static --disable-sse2
|
||||
%make_build V=1
|
||||
|
||||
%install
|
||||
%make_install
|
||||
iconv -f iso8859-1 -t utf-8 CREDITS > CREDITS.tmp
|
||||
mv -f CREDITS.tmp CREDITS
|
||||
cd doc
|
||||
dos2unix -k *.xml
|
||||
cd -
|
||||
rm -rf $RPM_BUILD_ROOT%{_bindir}
|
||||
%delete_la
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_libdir}/libxerces-c-3.2.so
|
||||
|
||||
%files devel
|
||||
%{_libdir}/{libxerces-c.so,pkgconfig/xerces-c.pc}
|
||||
%{_includedir}/xercesc/
|
||||
|
||||
%files help
|
||||
%doc README NOTICE CREDITS doc _docs/*
|
||||
|
||||
%changelog
|
||||
* Thu Mar 05 2020 daiqianwen <daiqianwen@huawei.com> - 3.2.2-2
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user