[521] | 1 | Summary: Validating XML Parser |
---|
| 2 | Name: xerces-c |
---|
[10183] | 3 | Version: 3.1.3 |
---|
[9288] | 4 | Release: 1%{?_dist_release} |
---|
[521] | 5 | License: ASL 2.0 |
---|
| 6 | Group: System Environment/Libraries |
---|
| 7 | URL: http://xml.apache.org/xerces-c/ |
---|
| 8 | |
---|
[10183] | 9 | Source0: http://www.apache.org/dist/xerces/c/3/sources/xerces-c-%{version}.tar.xz |
---|
[9288] | 10 | |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 12 | BuildRequires: dos2unix |
---|
| 13 | |
---|
[521] | 14 | %description |
---|
| 15 | Xerces-C is a validating XML parser written in a portable subset of |
---|
| 16 | C++. Xerces-C makes it easy to give your application the ability to |
---|
| 17 | read and write XML data. A shared library is provided for parsing, |
---|
| 18 | generating, manipulating, and validating XML documents. Xerces-C is |
---|
[9288] | 19 | faithful to the XML 1.0 recommendation and associated standards: |
---|
| 20 | XML 1.0 (Third Edition), XML 1.1 (First Edition), DOM Level 1, 2, 3 |
---|
| 21 | Core, DOM Level 2.0 Traversal and Range, DOM Level 3.0 Load and Save, |
---|
| 22 | SAX 1.0 and SAX 2.0, Namespaces in XML, Namespaces in XML 1.1, XML |
---|
| 23 | Schema, XML Inclusions). |
---|
[521] | 24 | |
---|
| 25 | %package devel |
---|
| 26 | Summary: Header files, libraries and development documentation for %{name} |
---|
[9288] | 27 | Summary(ja): %{name} のヘッダファイル、ライブラリ、開発用ドキュメント |
---|
[521] | 28 | Group: Development/Libraries |
---|
| 29 | Requires: %{name} = %{version}-%{release} |
---|
| 30 | |
---|
| 31 | %description devel |
---|
| 32 | This package contains the header files, static libraries and development |
---|
| 33 | documentation for %{name}. If you like to develop programs using %{name}, |
---|
| 34 | you will need to install %{name}-devel. |
---|
| 35 | |
---|
| 36 | %package doc |
---|
| 37 | Summary: Documentation for Xerces-C++ validating XML parser |
---|
[9288] | 38 | Group: Documentation |
---|
| 39 | BuildArch: noarch |
---|
[521] | 40 | |
---|
| 41 | %description doc |
---|
| 42 | Documentation for Xerces-C++. |
---|
| 43 | |
---|
| 44 | Xerces-C++ is a validating XML parser written in a portable subset of C++. |
---|
| 45 | Xerces-C++ makes it easy to give your application the ability to read and |
---|
| 46 | write XML data. A shared library is provided for parsing, generating, |
---|
| 47 | manipulating, and validating XML documents. |
---|
| 48 | |
---|
| 49 | %prep |
---|
[9288] | 50 | %setup -q |
---|
| 51 | # Copy samples before build to avoid including built binaries in -doc package |
---|
| 52 | mkdir -p _docs |
---|
| 53 | cp -a samples/ _docs/ |
---|
[521] | 54 | |
---|
| 55 | %build |
---|
[9288] | 56 | # --disable-sse2 makes sure explicit -msse2 isn't passed to gcc so |
---|
| 57 | # the binaries would be compatible with non-SSE2 i686 hardware. |
---|
| 58 | # This only affects i686, as on x86_64 the compiler uses SSE2 by default. |
---|
| 59 | export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" |
---|
| 60 | export CXXFLAGS="$CFLAGS" |
---|
| 61 | %configure --disable-static \ |
---|
| 62 | --disable-pretty-make \ |
---|
| 63 | --disable-sse2 |
---|
| 64 | make %{?_smp_mflags} |
---|
[521] | 65 | |
---|
| 66 | %install |
---|
[9288] | 67 | rm -rf $RPM_BUILD_ROOT |
---|
| 68 | make install DESTDIR="$RPM_BUILD_ROOT" |
---|
| 69 | # Correct errors in encoding |
---|
| 70 | iconv -f iso8859-1 -t utf-8 CREDITS > CREDITS.tmp && mv -f CREDITS.tmp CREDITS |
---|
| 71 | # Correct errors in line endings |
---|
| 72 | pushd doc; dos2unix -k *.xml; popd |
---|
| 73 | # Remove unwanted binaries |
---|
| 74 | rm -rf $RPM_BUILD_ROOT%{_bindir} |
---|
| 75 | # Remove .la files |
---|
| 76 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
[521] | 77 | |
---|
| 78 | %post -p /sbin/ldconfig |
---|
[9288] | 79 | |
---|
[521] | 80 | %postun -p /sbin/ldconfig |
---|
| 81 | |
---|
| 82 | %clean |
---|
[9288] | 83 | rm -rf $RPM_BUILD_ROOT |
---|
[521] | 84 | |
---|
| 85 | %files |
---|
| 86 | %defattr(-,root,root,-) |
---|
[9288] | 87 | %doc LICENSE |
---|
| 88 | %{_libdir}/libxerces-c-3.*.so |
---|
[521] | 89 | |
---|
| 90 | %files devel |
---|
| 91 | %defattr(-,root,root,-) |
---|
[9288] | 92 | %{_libdir}/libxerces-c.so |
---|
| 93 | %{_libdir}/pkgconfig/xerces-c.pc |
---|
[521] | 94 | %{_includedir}/xercesc/ |
---|
| 95 | |
---|
| 96 | %files doc |
---|
| 97 | %defattr(-,root,root,-) |
---|
[9288] | 98 | %doc README LICENSE NOTICE CREDITS doc _docs/* |
---|
[521] | 99 | |
---|
| 100 | |
---|
| 101 | %changelog |
---|
[10183] | 102 | * Tue Apr 12 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.3-1 |
---|
| 103 | - updated to 3.1.3. |
---|
| 104 | |
---|
[9288] | 105 | * Sat Jan 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.1.1-1 |
---|
| 106 | - updated to 3.1.1 |
---|
| 107 | |
---|
| 108 | * Sat Feb 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.0-3 |
---|
| 109 | - rebuild with Vine6 environment |
---|
| 110 | |
---|
[521] | 111 | * Tue Mar 02 2010 Shu KONNO <owa@bg.wakwak.com> 2.8.0-2 |
---|
| 112 | - rebuilt with new toolchain |
---|
| 113 | |
---|
| 114 | * Fri Sep 05 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.0-1 |
---|
| 115 | - initial build for Vine Linux |
---|
| 116 | |
---|
| 117 | * Mon Jun 30 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-2 |
---|
| 118 | - Spec cleanups ( https://bugzilla.redhat.com/show_bug.cgi?id=435132 ) |
---|
| 119 | |
---|
| 120 | * Sun Feb 10 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-1 |
---|
| 121 | - Ver. 2.8.0 |
---|
| 122 | |
---|
| 123 | * Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-6 |
---|
| 124 | - typo fix |
---|
| 125 | |
---|
| 126 | * Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-5 |
---|
| 127 | - fixed some rpmlint warnings |
---|
| 128 | |
---|
| 129 | * Fri Nov 24 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-4 |
---|
| 130 | - Added samples to docs-package |
---|
| 131 | |
---|
| 132 | * Sat Nov 18 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-3 |
---|
| 133 | - improvements suggested by Aurelien Bompard |
---|
| 134 | |
---|
| 135 | * Sat Oct 14 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-2 |
---|
| 136 | - Disabled package 'samples' |
---|
| 137 | |
---|
| 138 | * Fri Oct 13 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-1 |
---|
| 139 | - initial build for FE |
---|
| 140 | |
---|
| 141 | * Fri Jan 06 2006 Dag Wieers <dag@wieers.com> - 2.7.0-1 - 3891/dag |
---|
| 142 | - Cleaned SPEC file. |
---|
| 143 | |
---|
| 144 | * Tue Jan 03 2006 Dries Verachtert <dries@ulyssis.org> - 2.7.0-1 |
---|
| 145 | - Updated to release 2.7.0. |
---|
| 146 | |
---|
| 147 | * Thu Sep 22 2005 C.Lee Taylor <leet@leenx.co.za> 2.6.1-1 |
---|
| 148 | - Update to 2.6.1 |
---|
| 149 | - Build for FC4 32/64bit |
---|
| 150 | |
---|
| 151 | * Sat Aug 20 2005 Che |
---|
| 152 | - initial rpm release |
---|