2007-08-24 01:39:12 +02:00
|
|
|
#
|
2011-07-29 10:35:20 +02:00
|
|
|
# spec file for package libxslt
|
2007-08-24 01:39:12 +02:00
|
|
|
#
|
2016-05-21 12:05:31 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-08-24 01:39:12 +02:00
|
|
|
#
|
2008-08-07 01:42:52 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-08-24 01:39:12 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2012-06-12 16:45:37 +02:00
|
|
|
|
|
|
|
|
2016-06-12 09:01:53 +02:00
|
|
|
%define libname %{name}1
|
|
|
|
%define exname libexslt0
|
2007-08-24 01:39:12 +02:00
|
|
|
Name: libxslt
|
2016-06-12 09:01:53 +02:00
|
|
|
Version: 1.1.29
|
2012-01-03 18:34:26 +01:00
|
|
|
Release: 0
|
2011-07-28 17:34:15 +02:00
|
|
|
Summary: XSL Transformation Library
|
2012-01-04 14:48:24 +01:00
|
|
|
License: MIT and GPL-2.0+
|
2007-08-24 01:39:12 +02:00
|
|
|
Group: System/Libraries
|
2012-06-12 16:45:37 +02:00
|
|
|
Url: http://xmlsoft.org/XSLT/
|
2012-12-07 07:59:14 +01:00
|
|
|
Source: ftp://xmlsoft.org/libxslt/libxslt-%{version}.tar.gz
|
2012-06-12 16:45:37 +02:00
|
|
|
Source2: baselibs.conf
|
2016-06-12 09:01:53 +02:00
|
|
|
Source3: xslt-config.1
|
2012-06-12 16:45:37 +02:00
|
|
|
Patch0: %{name}-1.1.24-no-net-autobuild.patch
|
|
|
|
Patch1: libxslt-config-fixes.patch
|
2015-02-02 09:03:44 +01:00
|
|
|
Patch2: 0009-Make-generate-id-deterministic.patch
|
2011-07-28 17:34:15 +02:00
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libgpg-error-devel
|
2012-01-03 18:34:26 +01:00
|
|
|
BuildRequires: libtool
|
2011-07-29 11:41:55 +02:00
|
|
|
BuildRequires: libxml2-devel
|
2016-06-12 09:01:53 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-08-24 01:39:12 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
2016-06-12 09:01:53 +02:00
|
|
|
%package -n %{libname}
|
2011-07-28 17:34:15 +02:00
|
|
|
Summary: XSL Transformation Library
|
2012-02-16 22:26:56 +01:00
|
|
|
License: LGPL-2.1+
|
2011-07-29 11:41:55 +02:00
|
|
|
Group: System/Libraries
|
2011-07-28 17:34:15 +02:00
|
|
|
|
2016-06-12 09:01:53 +02:00
|
|
|
%description -n %{libname}
|
2011-07-28 17:34:15 +02:00
|
|
|
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.
|
|
|
|
|
2007-08-24 01:39:12 +02:00
|
|
|
%package devel
|
2008-04-12 20:39:07 +02:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2012-01-03 18:34:26 +01:00
|
|
|
License: LGPL-2.1+
|
2007-08-24 01:39:12 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-06-12 09:01:53 +02:00
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
Requires: %{name}-tools = %{version}
|
2012-06-12 16:45:37 +02:00
|
|
|
Requires: glibc-devel
|
2011-08-03 14:17:06 +02:00
|
|
|
Requires: libgcrypt-devel
|
|
|
|
Requires: libgpg-error-devel
|
2007-08-24 01:39:12 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
2012-03-19 11:34:25 +01:00
|
|
|
%package tools
|
|
|
|
Summary: Extended Stylesheet Language (XSL) Transformation utilities
|
|
|
|
License: MIT and GPL-2.0+
|
2016-06-12 09:01:53 +02:00
|
|
|
Group: Development/Tools/Other
|
|
|
|
Provides: xsltproc = %{version}
|
|
|
|
Provides: %{name} = %{version}
|
2012-03-19 11:34:25 +01:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
This package contains xsltproc, a command line interface to the XSLT engine.
|
2016-06-12 09:01:53 +02:00
|
|
|
xtend the
|
2012-03-19 11:34:25 +01:00
|
|
|
|
2007-08-24 01:39:12 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0
|
2011-07-29 09:30:47 +02:00
|
|
|
%patch1
|
2015-02-02 09:03:44 +01:00
|
|
|
%patch2 -p1
|
2011-07-29 10:35:20 +02:00
|
|
|
|
2007-08-24 01:39:12 +02:00
|
|
|
%build
|
2016-06-12 09:01:53 +02:00
|
|
|
autoreconf -fvi
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--without-python \
|
|
|
|
--disable-silent-rules
|
2011-07-28 17:34:15 +02:00
|
|
|
make %{?_smp_mflags}
|
2008-01-23 22:59:27 +01:00
|
|
|
|
|
|
|
%check
|
2012-01-03 18:34:26 +01:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2016-06-12 09:01:53 +02:00
|
|
|
make %{?_smp_mflags} check
|
2012-01-03 18:34:26 +01:00
|
|
|
%endif
|
2007-08-24 01:39:12 +02:00
|
|
|
|
|
|
|
%install
|
2016-06-12 09:01:53 +02:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
2011-07-29 11:41:55 +02:00
|
|
|
|
2007-08-24 01:39:12 +02:00
|
|
|
# Unwanted doc stuff
|
2011-07-28 17:34:15 +02:00
|
|
|
rm -fr %{buildroot}%{_datadir}/doc
|
|
|
|
# the manual page is required
|
2016-06-12 09:01:53 +02:00
|
|
|
install -D -m0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/xslt-config.1
|
2011-07-29 09:30:47 +02:00
|
|
|
#kill all "la" files
|
2016-06-12 09:01:53 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-07-29 10:35:20 +02:00
|
|
|
|
2016-06-12 09:01:53 +02:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2007-08-24 01:39:12 +02:00
|
|
|
|
2016-06-12 09:01:53 +02:00
|
|
|
%files -n %{libname}
|
2007-08-24 01:39:12 +02:00
|
|
|
%defattr(-, root, root)
|
2016-06-12 09:01:53 +02:00
|
|
|
%{_libdir}/libxslt.so.*
|
|
|
|
%{_libdir}/libexslt.so.*
|
|
|
|
|
2012-12-07 07:59:14 +01:00
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS NEWS README COPYING* Copyright TODO FEATURES
|
|
|
|
%{_bindir}/xsltproc
|
2016-06-12 09:01:53 +02:00
|
|
|
%{_mandir}/man1/xsltproc.1%{ext_man}
|
2007-08-24 01:39:12 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2012-12-07 07:59:14 +01:00
|
|
|
%{_libdir}/libxslt.so
|
|
|
|
%{_libdir}/libexslt.so
|
2007-08-24 01:39:12 +02:00
|
|
|
%{_libdir}/*.sh
|
2012-12-07 07:59:14 +01:00
|
|
|
%{_libdir}/pkgconfig/libxslt.pc
|
|
|
|
%{_libdir}/pkgconfig/libexslt.pc
|
2008-01-23 22:59:27 +01:00
|
|
|
%{_includedir}/*
|
2007-08-24 01:39:12 +02:00
|
|
|
%{_datadir}/aclocal/*
|
2008-01-23 22:59:27 +01:00
|
|
|
%{_bindir}/xslt-config
|
2016-06-12 09:01:53 +02:00
|
|
|
%{_mandir}/man1/xslt-config.1%{ext_man}
|
|
|
|
%{_mandir}/man3/*
|
2007-08-24 01:39:12 +02:00
|
|
|
%doc doc/*.html doc/html doc/tutorial doc/*.gif
|
2008-01-23 22:59:27 +01:00
|
|
|
|
2007-08-24 01:39:12 +02:00
|
|
|
%changelog
|