File libxslt.spec of Package libxslt.openSUSE_11.4_Update

# spec file for package libxslt
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           libxslt
BuildRequires:  libgcrypt libgcrypt-devel libgpg-error libgpg-error-devel libxml2-devel pkg-config
Summary:        XSL Transformation Library
Version:        1.1.26
Release:        3.<RELEASE4>
License:        MIT License (or similar)
Group:          System/Libraries
# bug437293
%ifarch ppc64
Obsoletes:      libxslt-64bit
Source:         %{name}-%{version}.tar.bz2
Source2:        baselibs.conf
Patch0:         %{name}-1.1.24-no-net-autobuild.patch
Patch2:         libxslt-CVE-2011-3970.patch
Patch3:         libxslt-CVE-2012-2825.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       libxml2 >= 2.6.27

This C library allows you to transform XML files into other XML files
(or HTML, text, and more) using the standard XSLT stylesheet
transformation mechanism.

It is based on libxml (version 2) for XML parsing, tree manipulation,
and XPath support. It is written in plain C, making as few assumptions
as possible and sticks closely to ANSI C/POSIX for easy embedding.
Although not primarily designed with performance in mind, libxslt seems
to be a relatively fast processor. It also includes full support for
the EXSLT set of extension functions as well as some common extensions
present in other XSLT engines.

The package comes with xsltproc, a command line interface to the XSLT

%package devel
License:        LGPLv2.1+
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/C and C++
# bug437293
%ifarch ppc64
Obsoletes:      libxslt-devel-64bit
Requires:       %{name} = %{version}
Requires:       libxml2-devel >= 2.6.27
Requires:       libgcrypt-devel libgpg-error-devel glibc-devel pkg-config

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%setup -q
%patch2 -p1
%patch3 -p3

autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%configure --disable-static --with-pic --without-python
%{__make} %{?jobs:-j%jobs}

make check

# Unwanted doc stuff
rm -fr $RPM_BUILD_ROOT%{_datadir}/doc
# libxslt-python uses these
#%{__rm} -f %{buildroot}%{_libdir}/*.la


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%defattr(-, root, root)

%files devel
%defattr(-, root, root)
# not available doc/*.png
%doc doc/*.html doc/html doc/tutorial doc/*.gif

openSUSE Build Service is sponsored by