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