]>
Commit | Line | Data |
---|---|---|
f4a4c50a JB |
1 | Summary: Xerces C++ - XML parser for C++ |
2 | Summary(pl.UTF-8): Xerces C++ - analizator składniowy XML-a dla C++ | |
abba9225 | 3 | Name: xerces-c |
221b900c AM |
4 | Version: 3.2.0 |
5 | Release: 1 | |
f4a4c50a JB |
6 | License: Apache v2.0 |
7 | Group: Libraries | |
c4e3a71d | 8 | Source0: http://www.apache.org/dist/xerces/c/3/sources/%{name}-%{version}.tar.xz |
221b900c | 9 | # Source0-md5: 781a31e61b33ffb0532f44b1c8de7627 |
f5e36a37 | 10 | Patch0: %{name}-iso88592.patch |
821349de | 11 | Patch1: %{name}-link.patch |
f4a4c50a JB |
12 | URL: http://xerces.apache.org/xerces-c/ |
13 | BuildRequires: autoconf >= 2.60 | |
14 | BuildRequires: automake | |
15 | BuildRequires: curl-devel | |
0ddab471 | 16 | BuildRequires: libicu-devel |
6c9e3767 | 17 | BuildRequires: libstdc++-devel |
c4e3a71d JB |
18 | BuildRequires: libtool >= 2:1.5 |
19 | BuildRequires: tar >= 1:1.22 | |
20 | BuildRequires: xz | |
abba9225 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
f4a4c50a | 24 | Xerces C++ - XML parser for C++. |
abba9225 | 25 | |
9cf4e500 | 26 | %description -l pl.UTF-8 |
f4a4c50a | 27 | Xerces C++ - analizator składniowy XML-a dla C++. |
abba9225 | 28 | |
29 | %package devel | |
0c3239d5 JB |
30 | Summary: Header files for xerces-c library |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki xerces-c | |
abba9225 | 32 | Group: Development/Libraries |
aa8e50ad | 33 | Requires: %{name} = %{version}-%{release} |
f4a4c50a | 34 | Requires: curl-devel |
521986f5 | 35 | Requires: libstdc++-devel |
abba9225 | 36 | |
37 | %description devel | |
0c3239d5 | 38 | Header files for xerces-c library. |
abba9225 | 39 | |
9cf4e500 | 40 | %description devel -l pl.UTF-8 |
0c3239d5 | 41 | Pliki nagłówkowe biblioteki xerces-c. |
005a2db7 | 42 | |
f4a4c50a JB |
43 | %package static |
44 | Summary: Static xerces-c library | |
45 | Summary(pl.UTF-8): Statyczna biblioteka xerces-c | |
46 | Group: Development/Libraries | |
47 | Requires: %{name}-devel = %{version}-%{release} | |
48 | ||
49 | %description static | |
50 | Static xerces-c library. | |
51 | ||
52 | %description static -l pl.UTF-8 | |
53 | Statyczna biblioteka xerces-c. | |
54 | ||
005a2db7 | 55 | %package doc |
f4a4c50a JB |
56 | Summary: Extensive Xerces C++ documentation |
57 | Summary(pl.UTF-8): Obszerna dokumentacja biblioteki Xerces C++ | |
005a2db7 | 58 | Group: Documentation |
61d8c909 | 59 | Requires: %{name} = %{version}-%{release} |
005a2db7 JB |
60 | |
61 | %description doc | |
f4a4c50a | 62 | Extensive Xerces C++ documentation. |
005a2db7 | 63 | |
9cf4e500 | 64 | %description doc -l pl.UTF-8 |
f4a4c50a | 65 | Obszerna dokumentacja biblioteki Xerces C++. |
61d8c909 | 66 | |
67 | %package examples | |
f4a4c50a JB |
68 | Summary: Xerces C++ examples |
69 | Summary(pl.UTF-8): Przykłady do biblioteki Xerces C++ | |
61d8c909 | 70 | Group: Documentation |
71 | Requires: %{name} = %{version}-%{release} | |
72 | ||
73 | %description examples | |
f4a4c50a | 74 | Xerces C++ examples. |
61d8c909 | 75 | |
0c3239d5 | 76 | %description examples -l pl.UTF-8 |
f4a4c50a | 77 | Przykłady do biblioteki Xerces C++. |
abba9225 | 78 | |
79 | %prep | |
f4a4c50a | 80 | %setup -q |
f5e36a37 | 81 | %patch0 -p1 |
821349de | 82 | %patch1 -p1 |
abba9225 | 83 | |
84 | %build | |
f4a4c50a JB |
85 | %{__libtoolize} |
86 | %{__aclocal} -I m4 | |
7b80143f | 87 | %{__autoconf} |
f4a4c50a JB |
88 | %{__autoheader} |
89 | %{__automake} | |
90 | %configure \ | |
91 | --disable-pretty-make \ | |
92 | %ifnarch pentium4 %{x8664} | |
93 | --disable-sse2 | |
94 | %endif | |
6c9e3767 | 95 | |
f4a4c50a | 96 | %{__make} |
abba9225 | 97 | |
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
a01816db | 100 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
61d8c909 | 101 | install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version} |
abba9225 | 102 | |
f4a4c50a | 103 | %{__make} install \ |
a01816db | 104 | DESTDIR=$RPM_BUILD_ROOT |
6c9e3767 | 105 | |
f4a4c50a JB |
106 | find samples -name .deps | xargs -r rm -rf |
107 | find samples -name '*.o' -o -name .dirstamp | xargs rm -f | |
6c9e3767 | 108 | cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
61d8c909 | 109 | cp -a doc/html/* $RPM_BUILD_ROOT%{_docdir}/%{name}-doc-%{version} |
abba9225 | 110 | |
abba9225 | 111 | %clean |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
6c9e3767 JB |
114 | %post -p /sbin/ldconfig |
115 | %postun -p /sbin/ldconfig | |
0202130a | 116 | |
abba9225 | 117 | %files |
118 | %defattr(644,root,root,755) | |
f4a4c50a | 119 | %doc CREDITS LICENSE NOTICE |
221b900c | 120 | %attr(755,root,root) %{_libdir}/libxerces-c-3.2.so |
abba9225 | 121 | |
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
61d8c909 | 124 | %attr(755,root,root) %{_libdir}/libxerces-c.so |
f4a4c50a | 125 | %{_libdir}/libxerces-c.la |
61d8c909 | 126 | %{_includedir}/xercesc |
f4a4c50a JB |
127 | %{_pkgconfigdir}/xerces-c.pc |
128 | ||
129 | %files static | |
130 | %defattr(644,root,root,755) | |
131 | %{_libdir}/libxerces-c.a | |
005a2db7 JB |
132 | |
133 | %files doc | |
134 | %defattr(644,root,root,755) | |
61d8c909 | 135 | %{_docdir}/%{name}-doc-%{version} |
136 | ||
137 | %files examples | |
138 | %defattr(644,root,root,755) | |
f4a4c50a JB |
139 | %attr(755,root,root) %{_bindir}/CreateDOMDocument |
140 | %attr(755,root,root) %{_bindir}/DOMCount | |
141 | %attr(755,root,root) %{_bindir}/DOMPrint | |
142 | %attr(755,root,root) %{_bindir}/EnumVal | |
143 | %attr(755,root,root) %{_bindir}/MemParse | |
144 | %attr(755,root,root) %{_bindir}/PParse | |
145 | %attr(755,root,root) %{_bindir}/PSVIWriter | |
146 | %attr(755,root,root) %{_bindir}/Redirect | |
147 | %attr(755,root,root) %{_bindir}/SAX2Count | |
148 | %attr(755,root,root) %{_bindir}/SAX2Print | |
149 | %attr(755,root,root) %{_bindir}/SAXCount | |
150 | %attr(755,root,root) %{_bindir}/SAXPrint | |
151 | %attr(755,root,root) %{_bindir}/SCMPrint | |
152 | %attr(755,root,root) %{_bindir}/SEnumVal | |
153 | %attr(755,root,root) %{_bindir}/StdInParse | |
154 | %attr(755,root,root) %{_bindir}/XInclude | |
6c9e3767 | 155 | %{_examplesdir}/%{name}-%{version} |