]>
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 |
e2becc3f | 13 | Version: 1.1.24 |
ad6313fd | 14 | Release: 2 |
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 | |
e2becc3f | 19 | # Source0-md5: e83ec5d27fc4c10c6f612879bea9a153 |
ad6313fd | 20 | Patch0: %{name}-exslt_crypt.patch |
0d8535a8 | 21 | URL: http://xmlsoft.org/XSLT/ |
ae6022e8 | 22 | BuildRequires: autoconf |
827d1079 | 23 | BuildRequires: automake |
a1aabd03 | 24 | BuildRequires: libgcrypt-devel >= 1.1.42 |
54e6d0bd | 25 | BuildRequires: libtool >= 1:1.4.2-9 |
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 |
ad6313fd | 121 | %patch0 |
0d8535a8 | 122 | |
123 | %build | |
9f4d1f9a | 124 | %{__libtoolize} |
97154326 | 125 | %{__aclocal} |
da9ca2d4 | 126 | %{__autoconf} |
9c91c445 | 127 | %{__autoheader} |
da9ca2d4 | 128 | %{__automake} |
1c9e6eac | 129 | %configure \ |
0b17bfc3 | 130 | --with-plugins \ |
08e2840e JB |
131 | %{!?with_static_libs:--disable-static} \ |
132 | %{!?with_python:--without-python} | |
0d8535a8 | 133 | %{__make} |
134 | ||
c5776f51 | 135 | %{?with_tests:%{__make} -C tests test} |
136 | ||
0d8535a8 | 137 | %install |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
2929a650 | 140 | %{__make} install \ |
9dbc8c30 | 141 | DESTDIR=$RPM_BUILD_ROOT |
0d8535a8 | 142 | |
08e2840e | 143 | %if %{with python} |
8788caad | 144 | # move examples to proper dir |
145 | install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
146 | mv $RPM_BUILD_ROOT%{_docdir}/%{name}-python-%{version}/examples/* \ | |
147 | $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version} | |
148 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-python-%{version} | |
149 | ||
dfbaf47b | 150 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
151 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
152 | ||
54e6d0bd | 153 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{py,la,a} |
08e2840e | 154 | %endif |
54e6d0bd | 155 | |
0d8535a8 | 156 | %clean |
157 | rm -rf $RPM_BUILD_ROOT | |
158 | ||
239b1b34 | 159 | %post -p /sbin/ldconfig |
0d8535a8 | 160 | %postun -p /sbin/ldconfig |
161 | ||
162 | %files | |
163 | %defattr(644,root,root,755) | |
4dc8a047 | 164 | %doc AUTHORS ChangeLog Copyright FEATURES NEWS README TODO |
bddd2ac4 | 165 | %attr(755,root,root) %{_libdir}/libexslt.so.*.*.* |
4e66a7a2 | 166 | %attr(755,root,root) %ghost %{_libdir}/libexslt.so.0 |
bddd2ac4 | 167 | %attr(755,root,root) %{_libdir}/libxslt.so.*.*.* |
4e66a7a2 | 168 | %attr(755,root,root) %ghost %{_libdir}/libxslt.so.1 |
fa5951b5 | 169 | %dir %{_libdir}/libxslt-plugins |
0d8535a8 | 170 | |
171 | %files devel | |
172 | %defattr(644,root,root,755) | |
4dc8a047 | 173 | %doc doc/{*.{gif,html},html} |
0d8535a8 | 174 | %attr(755,root,root) %{_bindir}/xslt-config |
bddd2ac4 JB |
175 | %attr(755,root,root) %{_libdir}/libexslt.so |
176 | %attr(755,root,root) %{_libdir}/libxslt.so | |
177 | %{_libdir}/libexslt.la | |
178 | %{_libdir}/libxslt.la | |
179 | %attr(755,root,root) %{_libdir}/xsltConf.sh | |
53b8f4b5 | 180 | %{_includedir}/libexslt |
bddd2ac4 JB |
181 | %{_includedir}/libxslt |
182 | %{_mandir}/man3/libexslt.3* | |
183 | %{_mandir}/man3/libxslt.3* | |
184 | %{_pkgconfigdir}/libexslt.pc | |
185 | %{_pkgconfigdir}/libxslt.pc | |
186 | %{_aclocaldir}/libxslt.m4 | |
0d8535a8 | 187 | |
1c9e6eac | 188 | %if %{with static_libs} |
0d8535a8 | 189 | %files static |
190 | %defattr(644,root,root,755) | |
bddd2ac4 JB |
191 | %{_libdir}/libexslt.a |
192 | %{_libdir}/libxslt.a | |
1c9e6eac | 193 | %endif |
f5a760dc | 194 | |
195 | %files progs | |
196 | %defattr(644,root,root,755) | |
197 | %attr(755,root,root) %{_bindir}/xsltproc | |
bddd2ac4 | 198 | %{_mandir}/man1/xsltproc.1* |
dfbaf47b | 199 | |
08e2840e | 200 | %if %{with python} |
dfbaf47b | 201 | %files -n python-%{name} |
202 | %defattr(644,root,root,755) | |
bddd2ac4 JB |
203 | %attr(755,root,root) %{py_sitedir}/libxsltmod.so |
204 | %{py_sitedir}/libxslt.py[co] | |
6bae0b83 | 205 | %{_examplesdir}/python-%{name}-%{version} |
08e2840e | 206 | %endif |