1 | Summary: Validating XML Parser |
---|
2 | Name: xerces-c |
---|
3 | Version: 2.8.0 |
---|
4 | Release: 2%{?_dist_release} |
---|
5 | License: ASL 2.0 |
---|
6 | Group: System Environment/Libraries |
---|
7 | URL: http://xml.apache.org/xerces-c/ |
---|
8 | Source: http://www.apache.org/dist/xerces/c/sources/xerces-c-src_2_8_0.tar.gz |
---|
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
10 | |
---|
11 | %description |
---|
12 | Xerces-C is a validating XML parser written in a portable subset of |
---|
13 | C++. Xerces-C makes it easy to give your application the ability to |
---|
14 | read and write XML data. A shared library is provided for parsing, |
---|
15 | generating, manipulating, and validating XML documents. Xerces-C is |
---|
16 | faithful to the XML 1.0 recommendation and associated standards ( DOM |
---|
17 | 1.0, DOM 2.0. SAX 1.0, SAX 2.0, Namespaces). |
---|
18 | |
---|
19 | %package devel |
---|
20 | Summary: Header files, libraries and development documentation for %{name} |
---|
21 | Group: Development/Libraries |
---|
22 | Requires: %{name} = %{version}-%{release} |
---|
23 | |
---|
24 | %description devel |
---|
25 | This package contains the header files, static libraries and development |
---|
26 | documentation for %{name}. If you like to develop programs using %{name}, |
---|
27 | you will need to install %{name}-devel. |
---|
28 | |
---|
29 | %package doc |
---|
30 | Group: Documentation |
---|
31 | Summary: Documentation for Xerces-C++ validating XML parser |
---|
32 | |
---|
33 | %description doc |
---|
34 | Documentation for Xerces-C++. |
---|
35 | |
---|
36 | Xerces-C++ is a validating XML parser written in a portable subset of C++. |
---|
37 | Xerces-C++ makes it easy to give your application the ability to read and |
---|
38 | write XML data. A shared library is provided for parsing, generating, |
---|
39 | manipulating, and validating XML documents. |
---|
40 | |
---|
41 | %prep |
---|
42 | %setup -q -n xerces-c-src_2_8_0 |
---|
43 | rm -rf doc/html/resources/.svn |
---|
44 | find ./doc -type f -perm 755 -exec chmod 644 {} \; |
---|
45 | find ./samples -type f -perm 755 -exec chmod 644 {} \; |
---|
46 | %{__perl} -pi.orig -e 's|(PREFIX.)/lib\b|$1/%{_lib}|g' src/xercesc/configure */Makefile.in |
---|
47 | rm doc/html/apiDocs/XMLRegisterCleanup_8hpp__incl.map |
---|
48 | rm doc/html/apiDocs/XSConstants_8hpp__incl.map |
---|
49 | |
---|
50 | # make rpmlint happy |
---|
51 | sed -i 's/\r//' doc/charter.xml |
---|
52 | iconv -f iso8859-1 -t utf-8 credits.txt > credits.utf8 && mv -f credits.{utf8,txt} |
---|
53 | iconv -f iso8859-1 -t utf-8 doc/feedback.xml > doc/feedback.utf8 && mv -f doc/feedback.{utf8,xml} |
---|
54 | iconv -f iso8859-1 -t utf-8 doc/migration.xml > doc/migration.utf8 && mv -f doc/migration.{utf8,xml} |
---|
55 | iconv -f iso8859-1 -t utf-8 doc/releases_archive.xml > doc/releases_archive.utf8 && mv -f doc/releases_archive.{utf8,xml} |
---|
56 | |
---|
57 | %build |
---|
58 | export XERCESCROOT="$PWD" |
---|
59 | |
---|
60 | # Let Makefiles be verbose |
---|
61 | find -name 'Makefile.*' | while read f; do |
---|
62 | sed -i -e 's/$Q//g' \ |
---|
63 | -e 's/{MAKE} -s/(MAKE)/g' \ |
---|
64 | -e '/echo \" (/d' \ |
---|
65 | $f |
---|
66 | done |
---|
67 | |
---|
68 | # Remove conflicting flags from runConfigure |
---|
69 | find -name runConfigure | while read f; do |
---|
70 | sed -i -e 's/-w -O -DNDEBUG/-DNDEBUG/g' $f |
---|
71 | done |
---|
72 | |
---|
73 | cd $XERCESCROOT/src/xercesc |
---|
74 | %ifarch alpha ppc64 s390x sparc64 x86_64 |
---|
75 | CXXFLAGS="${RPM_OPT_FLAGS}" CFLAGS="${RPM_OPT_FLAGS}" ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthreads -b64 -P %{_prefix} -C --libdir="%{_libdir}" |
---|
76 | %else |
---|
77 | CXXFLAGS="${RPM_OPT_FLAGS}" CFLAGS="${RPM_OPT_FLAGS}" ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthreads -b32 -P %{_prefix} -C --libdir="%{_libdir}" |
---|
78 | %endif |
---|
79 | # not smp safe |
---|
80 | %{__make} |
---|
81 | #cd $XERCESCROOT/samples |
---|
82 | #CXXFLAGS="${RPM_OPT_FLAGS}" CFLAGS="${RPM_OPT_FLAGS}" ./runConfigure -plinux -cgcc -xg++ |
---|
83 | #%{__make} |
---|
84 | |
---|
85 | %install |
---|
86 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
87 | export XERCESCROOT="$PWD" |
---|
88 | %{__make} install -C src/xercesc DESTDIR="$RPM_BUILD_ROOT" |
---|
89 | #mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name} |
---|
90 | #rm -rf $XERCESCROOT/samples/Projects |
---|
91 | #cp -a $XERCESCROOT/samples $RPM_BUILD_ROOT%{_datadir}/%{name} |
---|
92 | |
---|
93 | %post -p /sbin/ldconfig |
---|
94 | %postun -p /sbin/ldconfig |
---|
95 | |
---|
96 | %clean |
---|
97 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
98 | |
---|
99 | %files |
---|
100 | %defattr(-,root,root,-) |
---|
101 | %doc LICENSE.txt |
---|
102 | %{_libdir}/libxerces*.so.* |
---|
103 | |
---|
104 | %files devel |
---|
105 | %defattr(-,root,root,-) |
---|
106 | %{_libdir}/libxerces*.so |
---|
107 | %{_includedir}/xercesc/ |
---|
108 | |
---|
109 | %files doc |
---|
110 | %defattr(-,root,root,-) |
---|
111 | %doc Readme.html LICENSE NOTICE STATUS credits.txt doc samples |
---|
112 | |
---|
113 | #%files samples |
---|
114 | #%defattr(-,root,root,-) |
---|
115 | #%{_datadir}/%{name}/samples |
---|
116 | |
---|
117 | %changelog |
---|
118 | * Tue Mar 02 2010 Shu KONNO <owa@bg.wakwak.com> 2.8.0-2 |
---|
119 | - rebuilt with new toolchain |
---|
120 | |
---|
121 | * Fri Sep 05 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.0-1 |
---|
122 | - initial build for Vine Linux |
---|
123 | |
---|
124 | * Mon Jun 30 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-2 |
---|
125 | - Spec cleanups ( https://bugzilla.redhat.com/show_bug.cgi?id=435132 ) |
---|
126 | |
---|
127 | * Sun Feb 10 2008 Peter Lemenkov <lemenkov@gmail.com> 2.8.0-1 |
---|
128 | - Ver. 2.8.0 |
---|
129 | |
---|
130 | * Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-6 |
---|
131 | - typo fix |
---|
132 | |
---|
133 | * Sat Nov 25 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-5 |
---|
134 | - fixed some rpmlint warnings |
---|
135 | |
---|
136 | * Fri Nov 24 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-4 |
---|
137 | - Added samples to docs-package |
---|
138 | |
---|
139 | * Sat Nov 18 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-3 |
---|
140 | - improvements suggested by Aurelien Bompard |
---|
141 | |
---|
142 | * Sat Oct 14 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-2 |
---|
143 | - Disabled package 'samples' |
---|
144 | |
---|
145 | * Fri Oct 13 2006 Peter Lemenkov <lemenkov@gmail.com> 2.7.0-1 |
---|
146 | - initial build for FE |
---|
147 | |
---|
148 | * Fri Jan 06 2006 Dag Wieers <dag@wieers.com> - 2.7.0-1 - 3891/dag |
---|
149 | - Cleaned SPEC file. |
---|
150 | |
---|
151 | * Tue Jan 03 2006 Dries Verachtert <dries@ulyssis.org> - 2.7.0-1 |
---|
152 | - Updated to release 2.7.0. |
---|
153 | |
---|
154 | * Thu Sep 22 2005 C.Lee Taylor <leet@leenx.co.za> 2.6.1-1 |
---|
155 | - Update to 2.6.1 |
---|
156 | - Build for FC4 32/64bit |
---|
157 | |
---|
158 | * Sat Aug 20 2005 Che |
---|
159 | - initial rpm release |
---|