]>
Commit | Line | Data |
---|---|---|
b30e6b95 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
ab7ec1b1 | 4 | |
7ad9f85f | 5 | Summary: XML 1.0 parser |
88b859fa ER |
6 | Summary(es.UTF-8): Parser de XML 1.0 |
7 | Summary(pl.UTF-8): Analizator składni XML-a 1.0 | |
8 | Summary(pt_BR.UTF-8): Biblioteca XML expat | |
9 | Summary(ru.UTF-8): Переносимая библиотека разбора XML (expat) | |
10 | Summary(uk.UTF-8): Переносима бібліотека розбору XML (expat) | |
7ad9f85f | 11 | Name: expat |
419504a0 | 12 | Version: 2.2.10 |
049a5df5 | 13 | Release: 1 |
05819cd3 | 14 | Epoch: 1 |
049a5df5 | 15 | License: MIT |
7ad9f85f | 16 | Group: Applications/Publishing/XML |
2fa4eb49 | 17 | Source0: http://downloads.sourceforge.net/expat/%{name}-%{version}.tar.xz |
419504a0 | 18 | # Source0-md5: e0fe49a6b3480827c9455e4cfc799133 |
6086ba38 | 19 | URL: http://www.libexpat.org/ |
2fa4eb49 | 20 | BuildRequires: autoconf >= 2.69 |
9159f373 | 21 | BuildRequires: automake |
830b1e15 | 22 | BuildRequires: docbook2X |
2fa4eb49 JB |
23 | BuildRequires: gcc >= 5:3.2 |
24 | BuildRequires: libtool >= 2:2.4 | |
25 | BuildRequires: tar >= 1:1.22 | |
26 | BuildRequires: xz | |
15d9c1cf | 27 | Obsoletes: libexpat1_95 |
3a6574ac | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7ad9f85f | 29 | |
30 | %description | |
e1dd7fe4 | 31 | Expat is an XML parser written in C. It aims to be fully conforming. |
32 | It is currently not a validating XML parser. | |
7ad9f85f | 33 | |
0611151c | 34 | %description -l es.UTF-8 |
ab7ec1b1 ER |
35 | Expat es un parser de XML escrito en C. Pretende conformarse |
36 | totalmente al estándar. Actualmente no es un parser XML validante. | |
b510b292 | 37 | |
0611151c JR |
38 | %description -l pl.UTF-8 |
39 | Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej | |
40 | zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który | |
41 | potwiedzał by zgodność ze specyfikacją. | |
7ad9f85f | 42 | |
0611151c JR |
43 | %description -l pt_BR.UTF-8 |
44 | Esta é a biblioteca, em C, XML expat, de James Clark. É um analisador | |
45 | orientado a fluxo de informações que pede o uso de handlers para lidar | |
2cb05058 | 46 | com a estrutura que o analisador encontrar no documento. |
47 | ||
0611151c JR |
48 | %description -l ru.UTF-8 |
49 | Expat -- парсер XML 1.0, написанный на C. Он предназначен для того, | |
50 | чтобы быть полностью совместимым. В настоящее время это не проверяющий | |
51 | ("not a validating") XML парсер. | |
834003ed | 52 | |
0611151c JR |
53 | %description -l uk.UTF-8 |
54 | Expat -- парсер XML 1.0, написаний на C. Розрахований на те, щоб бути | |
55 | повністю сумісним. Наразі це не перевіряючий ("not a validating") XML | |
56 | парсер. | |
834003ed | 57 | |
7ad9f85f | 58 | %package devel |
1e190f71 | 59 | Summary: Expat header files |
88b859fa ER |
60 | Summary(es.UTF-8): Archivos de inclusión del expat |
61 | Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki expat | |
62 | Summary(pt_BR.UTF-8): Arquivos de inclusão do expat | |
63 | Summary(ru.UTF-8): Хедеры и библиотека, необходимые для программирования с expat | |
64 | Summary(uk.UTF-8): Хедери та бібліотека, необхідні для програмування з expat | |
7ad9f85f | 65 | Group: Development/Libraries |
f06b56a1 | 66 | Requires: %{name} = %{epoch}:%{version}-%{release} |
15d9c1cf | 67 | Obsoletes: libexpat1_95-devel |
7ad9f85f | 68 | |
69 | %description devel | |
1e190f71 | 70 | Expat header files. |
7ad9f85f | 71 | |
0611151c JR |
72 | %description devel -l es.UTF-8 |
73 | Archivos de inclusión del expat. | |
2cb05058 | 74 | |
0611151c JR |
75 | %description devel -l pl.UTF-8 |
76 | Pliki nagłówkowe do biblioteki expat. | |
1e190f71 | 77 | |
0611151c JR |
78 | %description devel -l pt_BR.UTF-8 |
79 | Arquivos de inclusão do expat. | |
2cb05058 | 80 | |
0611151c JR |
81 | %description devel -l ru.UTF-8 |
82 | Этот пакет содержит хедеры и библиотеки, необходимые для написания | |
83 | программ, использующих libexpat. | |
834003ed | 84 | |
0611151c JR |
85 | %description devel -l uk.UTF-8 |
86 | Цей пакет містить хедери та бібліотеки, необхідні для написання | |
87 | програм, що використовують libexpat. | |
834003ed | 88 | |
1e190f71 | 89 | %package static |
90 | Summary: Expat static library | |
88b859fa ER |
91 | Summary(es.UTF-8): Biblioteca estática de expat |
92 | Summary(pl.UTF-8): Biblioteka statyczna expat | |
93 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com a biblioteca expat | |
94 | Summary(ru.UTF-8): Статическая библиотека для программирования с libexpat | |
95 | Summary(uk.UTF-8): Статична бібліотека для програмування з libexpat | |
1e190f71 | 96 | Group: Development/Libraries |
f06b56a1 | 97 | Requires: %{name} = %{epoch}:%{version}-%{release} |
1e190f71 | 98 | |
99 | %description static | |
100 | Expat static library. | |
101 | ||
0611151c JR |
102 | %description static -l es.UTF-8 |
103 | Biblioteca estática de expat. | |
b510b292 | 104 | |
0611151c | 105 | %description static -l pl.UTF-8 |
a88fe8fe | 106 | Biblioteka statyczna expat. |
7ad9f85f | 107 | |
0611151c JR |
108 | %description static -l pt_BR.UTF-8 |
109 | Bibliotecas estáticas para desenvolvimento com a biblioteca expat. | |
2cb05058 | 110 | |
0611151c JR |
111 | %description static -l ru.UTF-8 |
112 | Этот пакет содержит статическую библиотеку, необходимую для написания | |
113 | программ, использующих libexpat. | |
834003ed | 114 | |
0611151c JR |
115 | %description static -l uk.UTF-8 |
116 | Цей пакет містить статичну бібліотеку, необхідну для написання | |
117 | програм, що використовують libexpat. | |
834003ed | 118 | |
62ad487a JB |
119 | %package tools |
120 | Summary: Expat utilities (xmlwf) | |
121 | Summary(pl.UTF-8): Programy narzędziowe do biblioteki Expat (xmlwf) | |
122 | Group: Applications/Text | |
65c953af | 123 | Requires: %{name} = %{epoch}:%{version}-%{release} |
62ad487a JB |
124 | |
125 | %description tools | |
126 | Expat utilities: | |
127 | - xmlwf: determines if an XML document is well-formed. | |
128 | ||
129 | %description tools -l pl.UTF-8 | |
130 | Programy narzędziowe do biblioteki Expat: | |
131 | - xmlwf: sprawdza, czy dokument XML jest dobrze sformułowany. | |
132 | ||
7ad9f85f | 133 | %prep |
1e190f71 | 134 | %setup -q |
7ad9f85f | 135 | |
136 | %build | |
9159f373 | 137 | %{__libtoolize} |
92fedf35 | 138 | %{__aclocal} -I m4 |
9159f373 | 139 | %{__autoconf} |
2fa4eb49 | 140 | %{__autoheader} |
ba9c7ef3 | 141 | %{__automake} |
b30e6b95 | 142 | %configure \ |
830b1e15 | 143 | DOCBOOK_TO_MAN=docbook2X2man \ |
b30e6b95 | 144 | %{!?with_static_libs:--disable-static} |
7ad9f85f | 145 | %{__make} |
146 | ||
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
1e190f71 | 149 | |
8f97fc3a PG |
150 | %{__make} install \ |
151 | DESTDIR=$RPM_BUILD_ROOT | |
11002658 | 152 | |
48bebb59 | 153 | install -d $RPM_BUILD_ROOT%{_aclocaldir} |
ab7ec1b1 | 154 | cp -p conftools/expat.m4 $RPM_BUILD_ROOT%{_aclocaldir} |
1e190f71 | 155 | |
ab7ec1b1 ER |
156 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
157 | cp -p examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
6086ba38 | 158 | |
a88fe8fe JB |
159 | %clean |
160 | rm -rf $RPM_BUILD_ROOT | |
1e190f71 | 161 | |
162 | %post -p /sbin/ldconfig | |
163 | %postun -p /sbin/ldconfig | |
7ad9f85f | 164 | |
7ad9f85f | 165 | %files |
166 | %defattr(644,root,root,755) | |
57b50704 | 167 | %doc AUTHORS COPYING Changes README.md |
6086ba38 | 168 | %attr(755,root,root) %{_libdir}/libexpat.so.*.*.* |
c645eb57 | 169 | %attr(755,root,root) %ghost %{_libdir}/libexpat.so.1 |
7ad9f85f | 170 | |
171 | %files devel | |
172 | %defattr(644,root,root,755) | |
16ab3ef8 | 173 | %doc doc/{reference.html,style.css,*.png} |
5c53c62c JB |
174 | %attr(755,root,root) %{_libdir}/libexpat.so |
175 | %{_libdir}/libexpat.la | |
176 | %{_includedir}/expat*.h | |
177 | %{_aclocaldir}/expat.m4 | |
c645eb57 | 178 | %{_pkgconfigdir}/expat.pc |
ab7ec1b1 | 179 | %{_examplesdir}/%{name}-%{version} |
1e190f71 | 180 | |
b30e6b95 | 181 | %if %{with static_libs} |
1e190f71 | 182 | %files static |
183 | %defattr(644,root,root,755) | |
5c53c62c | 184 | %{_libdir}/libexpat.a |
b30e6b95 | 185 | %endif |
62ad487a JB |
186 | |
187 | %files tools | |
188 | %defattr(644,root,root,755) | |
189 | %attr(755,root,root) %{_bindir}/xmlwf | |
190 | %{_mandir}/man1/xmlwf.1* |