]>
Commit | Line | Data |
---|---|---|
1c9e6eac | 1 | # |
2 | # Conditional build: | |
08e2840e | 3 | %bcond_without python # don't build python binding |
1c9e6eac | 4 | %bcond_without static_libs # don't build static library |
c5776f51 | 5 | %bcond_with tests # run test suite |
1c9e6eac | 6 | # |
7d26d71b | 7 | %define libxml2ver 1:2.6.30 |
1ca1a314 | 8 | |
0d8535a8 | 9 | Summary: XSLT processor |
5f7e6efe ER |
10 | Summary(pl.UTF-8): Procesor XSLT |
11 | Summary(pt_BR.UTF-8): Biblioteca que disponibiliza o sistema XSLT do GNOME | |
0d8535a8 | 12 | Name: libxslt |
29343b2a | 13 | Version: 1.1.28 |
eba770ce | 14 | Release: 1 |
dfbaf47b | 15 | License: MIT |
0d8535a8 | 16 | Group: Libraries |
fc3a4ec2 | 17 | #Source0: http://ftp.gnome.org/pub/GNOME/sources/libxslt/1.1/%{name}-%{version}.tar.bz2 |
18 | Source0: ftp://xmlsoft.org/libxml2/%{name}-%{version}.tar.gz | |
29343b2a | 19 | # Source0-md5: 9667bf6f9310b957254fdcf6596600b7 |
649a7cea | 20 | Patch0: %{name}-m4.patch |
0d8535a8 | 21 | URL: http://xmlsoft.org/XSLT/ |
e71b806a | 22 | BuildRequires: autoconf >= 2.59 |
827d1079 | 23 | BuildRequires: automake |
a1aabd03 | 24 | BuildRequires: libgcrypt-devel >= 1.1.42 |
e71b806a | 25 | BuildRequires: libtool >= 2:2.0 |
5aeba9ad | 26 | BuildRequires: libxml2-devel >= %{libxml2ver} |
4f667b86 | 27 | BuildRequires: perl-base |
08e2840e | 28 | %if %{with python} |
f17b07da | 29 | BuildRequires: python |
dfbaf47b | 30 | BuildRequires: python-devel |
7d58a684 | 31 | BuildRequires: python-libxml2 >= %{libxml2ver} |
08e2840e | 32 | %endif |
81c0133f | 33 | BuildRequires: rpm-pythonprov |
c11bd774 | 34 | Requires: libgcrypt >= 1.1.42 |
58df738f | 35 | Requires: libxml2 >= %{libxml2ver} |
b915281a | 36 | Obsoletes: libxslt1 |
58df738f | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0d8535a8 | 38 | |
39 | %description | |
40 | Library for XSLT processing. | |
41 | ||
bda66cb1 | 42 | %description -l pl.UTF-8 |
f84ebd65 TP |
43 | Biblioteka do przetwarzania XSLT. |
44 | ||
bda66cb1 JR |
45 | %description -l pt_BR.UTF-8 |
46 | Esta biblioteca C permite a transformação de arquivos XML em outros | |
47 | arquivos XML (ou HTML, texto, ...) usando o mecanismo padrão de | |
48 | transformação dos estilos XSLT. O comando xsltproc é uma interface em | |
09de7b65 | 49 | linha de comandos para o mecanismo XSLT. |
50 | ||
0d8535a8 | 51 | %package devel |
7d58a684 | 52 | Summary: Header files for libxslt |
5f7e6efe ER |
53 | Summary(pl.UTF-8): Pliki nagłówkowe libxslt |
54 | Summary(pt_BR.UTF-8): Bibliotecas, includes, etc. para incluir o mecanismo XSLT do GNOME | |
0d8535a8 | 55 | Group: Development/Libraries |
4f667b86 | 56 | Requires: %{name} = %{version}-%{release} |
c11bd774 | 57 | Requires: libgcrypt-devel >= 1.1.42 |
de9c009a | 58 | Requires: libxml2-devel >= %{libxml2ver} |
b915281a | 59 | Obsoletes: libxslt1-devel |
0d8535a8 | 60 | |
61 | %description devel | |
7d58a684 | 62 | Header files for libxslt - XSLT processor. |
0d8535a8 | 63 | |
bda66cb1 JR |
64 | %description devel -l pl.UTF-8 |
65 | Pliki nagłówkowe procesora XSLT. | |
f84ebd65 | 66 | |
bda66cb1 JR |
67 | %description devel -l pt_BR.UTF-8 |
68 | Esta biblioteca C permite a transformação de arquivos XML em outros | |
69 | arquivos XML (ou HTML, texto, ...) usando o mecanismo padrão de | |
70 | transformação dos estilos XSLT. | |
09de7b65 | 71 | |
0d8535a8 | 72 | %package static |
73 | Summary: Static libraries of libxslt | |
5f7e6efe ER |
74 | Summary(pl.UTF-8): Biblioteki statyczne libxslt |
75 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para incluir o mecanismo XSLT do GNOME | |
0d8535a8 | 76 | Group: Development/Libraries |
4f667b86 | 77 | Requires: %{name}-devel = %{version}-%{release} |
0d8535a8 | 78 | |
79 | %description static | |
80 | Static libraries of libxslt - XSLT processor. | |
81 | ||
bda66cb1 | 82 | %description static -l pl.UTF-8 |
f84ebd65 TP |
83 | Statyczne biblioteki procesora XSLT. |
84 | ||
bda66cb1 JR |
85 | %description static -l pt_BR.UTF-8 |
86 | Esta biblioteca C permite a transformação de arquivos XML em outros | |
87 | arquivos XML (ou HTML, texto, ...) usando o mecanismo padrão de | |
88 | transformação dos estilos XSLT. Estas são as bibliotecas em sua versão | |
89 | estática. | |
09de7b65 | 90 | |
f5a760dc | 91 | %package progs |
92 | Summary: XSLT processor | |
5f7e6efe | 93 | Summary(pl.UTF-8): Procesor XSLT |
f5a760dc | 94 | Group: Applications/Text |
4f667b86 | 95 | Requires: %{name} = %{version}-%{release} |
b915281a | 96 | Obsoletes: libxslt-proc |
f5a760dc | 97 | |
98 | %description progs | |
99 | XSLT processor. | |
100 | ||
bda66cb1 | 101 | %description progs -l pl.UTF-8 |
f16a6fcc | 102 | Procesor XSLT. |
f5a760dc | 103 | |
dfbaf47b | 104 | %package -n python-%{name} |
105 | Summary: Python support for libxslt | |
5f7e6efe | 106 | Summary(pl.UTF-8): Moduły języka Python dla biblioteki libxslt |
a66c8da6 | 107 | Group: Libraries/Python |
de9c009a | 108 | Requires: %{name} = %{version}-%{release} |
c9daa325 | 109 | Requires: python-libxml2 => %{libxml2ver} |
61f4b58e | 110 | %pyrequires_eq python-modules |
b915281a | 111 | Obsoletes: libxslt-python |
dfbaf47b | 112 | |
113 | %description -n python-%{name} | |
114 | Python support for libxslt. | |
115 | ||
bda66cb1 JR |
116 | %description -n python-%{name} -l pl.UTF-8 |
117 | Moduły języka Python dla biblioteki libxslt. | |
dfbaf47b | 118 | |
0d8535a8 | 119 | %prep |
f84ebd65 | 120 | %setup -q |
f587bf3b | 121 | %patch0 -p0 |
0d8535a8 | 122 | |
123 | %build | |
9f4d1f9a | 124 | %{__libtoolize} |
97154326 | 125 | %{__aclocal} |
da9ca2d4 | 126 | %{__autoconf} |
9c91c445 | 127 | %{__autoheader} |
da9ca2d4 | 128 | %{__automake} |
1c9e6eac | 129 | %configure \ |
e71b806a | 130 | --disable-silent-rules \ |
08e2840e | 131 | %{!?with_static_libs:--disable-static} \ |
e71b806a | 132 | --with-plugins \ |
08e2840e | 133 | %{!?with_python:--without-python} |
0d8535a8 | 134 | %{__make} |
135 | ||
c5776f51 | 136 | %{?with_tests:%{__make} -C tests test} |
137 | ||
0d8535a8 | 138 | %install |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
2929a650 | 141 | %{__make} install \ |
9dbc8c30 | 142 | DESTDIR=$RPM_BUILD_ROOT |
0d8535a8 | 143 | |
08e2840e | 144 | %if %{with python} |
8788caad | 145 | # move examples to proper dir |
146 | install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
147 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-python-%{version}/examples/* \ | |
148 | $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
149 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-python-%{version} | |
150 | ||
dfbaf47b | 151 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
152 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
153 | ||
54e6d0bd | 154 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{py,la,a} |
08e2840e | 155 | %endif |
54e6d0bd | 156 | |
0d8535a8 | 157 | %clean |
158 | rm -rf $RPM_BUILD_ROOT | |
159 | ||
239b1b34 | 160 | %post -p /sbin/ldconfig |
0d8535a8 | 161 | %postun -p /sbin/ldconfig |
162 | ||
163 | %files | |
164 | %defattr(644,root,root,755) | |
4dc8a047 | 165 | %doc AUTHORS ChangeLog Copyright FEATURES NEWS README TODO |
bddd2ac4 | 166 | %attr(755,root,root) %{_libdir}/libexslt.so.*.*.* |
4e66a7a2 | 167 | %attr(755,root,root) %ghost %{_libdir}/libexslt.so.0 |
bddd2ac4 | 168 | %attr(755,root,root) %{_libdir}/libxslt.so.*.*.* |
4e66a7a2 | 169 | %attr(755,root,root) %ghost %{_libdir}/libxslt.so.1 |
fa5951b5 | 170 | %dir %{_libdir}/libxslt-plugins |
0d8535a8 | 171 | |
172 | %files devel | |
173 | %defattr(644,root,root,755) | |
4dc8a047 | 174 | %doc doc/{*.{gif,html},html} |
0d8535a8 | 175 | %attr(755,root,root) %{_bindir}/xslt-config |
bddd2ac4 JB |
176 | %attr(755,root,root) %{_libdir}/libexslt.so |
177 | %attr(755,root,root) %{_libdir}/libxslt.so | |
178 | %{_libdir}/libexslt.la | |
179 | %{_libdir}/libxslt.la | |
180 | %attr(755,root,root) %{_libdir}/xsltConf.sh | |
53b8f4b5 | 181 | %{_includedir}/libexslt |
bddd2ac4 | 182 | %{_includedir}/libxslt |
bddd2ac4 JB |
183 | %{_pkgconfigdir}/libexslt.pc |
184 | %{_pkgconfigdir}/libxslt.pc | |
185 | %{_aclocaldir}/libxslt.m4 | |
649a7cea JB |
186 | %{_mandir}/man3/libexslt.3* |
187 | %{_mandir}/man3/libxslt.3* | |
0d8535a8 | 188 | |
1c9e6eac | 189 | %if %{with static_libs} |
0d8535a8 | 190 | %files static |
191 | %defattr(644,root,root,755) | |
bddd2ac4 JB |
192 | %{_libdir}/libexslt.a |
193 | %{_libdir}/libxslt.a | |
1c9e6eac | 194 | %endif |
f5a760dc | 195 | |
196 | %files progs | |
197 | %defattr(644,root,root,755) | |
198 | %attr(755,root,root) %{_bindir}/xsltproc | |
bddd2ac4 | 199 | %{_mandir}/man1/xsltproc.1* |
dfbaf47b | 200 | |
08e2840e | 201 | %if %{with python} |
dfbaf47b | 202 | %files -n python-%{name} |
203 | %defattr(644,root,root,755) | |
bddd2ac4 JB |
204 | %attr(755,root,root) %{py_sitedir}/libxsltmod.so |
205 | %{py_sitedir}/libxslt.py[co] | |
6bae0b83 | 206 | %{_examplesdir}/python-%{name}-%{version} |
08e2840e | 207 | %endif |