1 | Summary: Validating XML Parser |
---|
2 | Name: xerces-c |
---|
3 | Version: 3.1.1 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | License: ASL 2.0 |
---|
6 | Group: System Environment/Libraries |
---|
7 | URL: http://xml.apache.org/xerces-c/ |
---|
8 | |
---|
9 | Source0: http://www.apache.org/dist/xerces/c/3/sources/xerces-c-%{version}.tar.gz |
---|
10 | |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
12 | BuildRequires: dos2unix |
---|
13 | |
---|
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 |
---|
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). |
---|
24 | |
---|
25 | %package devel |
---|
26 | Summary: Header files, libraries and development documentation for %{name} |
---|
27 | Summary(ja): %{name} のヘッダファイル、ライブラリ、開発用ドキュメント |
---|
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 |
---|
38 | Group: Documentation |
---|
39 | BuildArch: noarch |
---|
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 |
---|
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/ |
---|
54 | |
---|
55 | %build |
---|
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} |
---|
65 | |
---|
66 | %install |
---|
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 |
---|
77 | |
---|
78 | %post -p /sbin/ldconfig |
---|
79 | |
---|
80 | %postun -p /sbin/ldconfig |
---|
81 | |
---|
82 | %clean |
---|
83 | rm -rf $RPM_BUILD_ROOT |
---|
84 | |
---|
85 | %files |
---|
86 | %defattr(-,root,root,-) |
---|
87 | %doc LICENSE |
---|
88 | %{_libdir}/libxerces-c-3.*.so |
---|
89 | |
---|
90 | %files devel |
---|
91 | %defattr(-,root,root,-) |
---|
92 | %{_libdir}/libxerces-c.so |
---|
93 | %{_libdir}/pkgconfig/xerces-c.pc |
---|
94 | %{_includedir}/xercesc/ |
---|
95 | |
---|
96 | %files doc |
---|
97 | %defattr(-,root,root,-) |
---|
98 | %doc README LICENSE NOTICE CREDITS doc _docs/* |
---|
99 | |
---|
100 | |
---|
101 | %changelog |
---|
102 | * Sat Jan 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.1.1-1 |
---|
103 | - updated to 3.1.1 |
---|
104 | |
---|
105 | * Sat Feb 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.0-3 |
---|
106 | - rebuild with Vine6 environment |
---|
107 | |
---|
108 | * Tue Mar 02 2010 Shu KONNO <owa@bg.wakwak.com> 2.8.0-2 |
---|
109 | - rebuilt with new toolchain |
---|
110 | |
---|
111 | * Fri Sep 05 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.0-1 |
---|
112 | - initial build for Vine Linux |
---|
113 | |
---|
114 | * Mon Jun 30 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-2 |
---|
115 | - Spec cleanups ( https://bugzilla.redhat.com/show_bug.cgi?id=435132 ) |
---|
116 | |
---|
117 | * Sun Feb 10 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-1 |
---|
118 | - Ver. 2.8.0 |
---|
119 | |
---|
120 | * Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-6 |
---|
121 | - typo fix |
---|
122 | |
---|
123 | * Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-5 |
---|
124 | - fixed some rpmlint warnings |
---|
125 | |
---|
126 | * Fri Nov 24 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-4 |
---|
127 | - Added samples to docs-package |
---|
128 | |
---|
129 | * Sat Nov 18 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-3 |
---|
130 | - improvements suggested by Aurelien Bompard |
---|
131 | |
---|
132 | * Sat Oct 14 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-2 |
---|
133 | - Disabled package 'samples' |
---|
134 | |
---|
135 | * Fri Oct 13 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-1 |
---|
136 | - initial build for FE |
---|
137 | |
---|
138 | * Fri Jan 06 2006 Dag Wieers <dag@wieers.com> - 2.7.0-1 - 3891/dag |
---|
139 | - Cleaned SPEC file. |
---|
140 | |
---|
141 | * Tue Jan 03 2006 Dries Verachtert <dries@ulyssis.org> - 2.7.0-1 |
---|
142 | - Updated to release 2.7.0. |
---|
143 | |
---|
144 | * Thu Sep 22 2005 C.Lee Taylor <leet@leenx.co.za> 2.6.1-1 |
---|
145 | - Update to 2.6.1 |
---|
146 | - Build for FC4 32/64bit |
---|
147 | |
---|
148 | * Sat Aug 20 2005 Che |
---|
149 | - initial rpm release |
---|