%ifos darwin %define __cpa %{__cp} -RPp %else %define __cpa %{__cp} -a %endif %define dist hepx Name: xerces-c Version: 3.1.4 Release: 10.12%{?dist}1a Summary: XML parsers Group: Development/Tools License: Apache License URL: http://www.apache.org Source0: http://ftp.jaist.ac.jp/pub/apache/xerces/c/3/sources/xerces-c-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: rpm %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 and 1.1 recommendations and many associated standards. 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. %prep %setup -q %build %ifnos darwin export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" %endif ./configure --prefix=%{_prefix} --datadir=%{_prefix}/share/%{name} \ --docdir=%{_prefix}/share/doc/%{name}-%{version} --mandir=%{_prefix}/share/man %ifnos darwin make %{?_smp_mflags} %else make %endif %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/ %{__cpa} CREDITS LICENSE doc $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/ %clean rm -rf $RPM_BUILD_ROOT %files %ifos darwin %defattr(-,root,wheel,-) %else %defattr(-,root,root,-) %endif %{_datadir}/doc/%{name}-%{version}/ %{_bindir}/* %{_libdir}/* %{_includedir}/* #%{_datadir}/%{name}/ #%{_mandir}/man1/*.1* %changelog * Thu Jan 26 2017 Keisuke Fujii - 3.1.4-10.12hepx1a - 1st build and release of v3.1.5 on MacOSX 10.12 * Mon Dec 26 2016 Keisuke Fujii - 3.1.3-10.12hepx1b - 2nd build and release of v3.1.3 on MacOSX 10.12 - built with OSXWS 10.12 * Sun Dec 18 2016 Keisuke Fujii - 3.1.3-10.12hepx1a - 1st build and release of v3.1.3 on MacOSX 10.12 - built with OSXWS 10.11 * Wed Apr 27 2016 Keisuke Fujii - 3.1.3-10.11hepx1a - 1st build and release of v3.1.3 on MacOSX 10.11 * Mon Feb 08 2016 Keisuke Fujii - 3.1.1-10.11hepx1a - 1st build and release on MacOSX 10.11 * Wed Dec 24 2014 Keisuke Fujii - 3.1.1-10.10hepx1a - 1st build and release on MacOSX 10.10 * Wed Aug 06 2014 Keisuke Fujii - 3.1.1-10.9hepx1b - 2nd build and release on MacOSX 10.9 * Tue Nov 19 2013 Keisuke Fujii - 3.1.1-10.9hepx1a - 1st build and release on MacOSX 10.9 * Thu May 3 2012 Keisuke Fujii - 3.1.1-10.7hepx1a - 1st build on MacOSX 10.7 - now for x86_64 * Wed Apr 4 2012 Keisuke Fujii - 3.1.1-10.6hepx1a - 1st build on MacOSX