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