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