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