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