summaryrefslogtreecommitdiff
path: root/packaging/libxslt.spec
blob: cec05ee8a6153735e767f0843a9b2dcb1d5131f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Name:           libxslt
Version:        1.1.28
Release:        0
Summary:        XSL Transformation Library
License:        MIT and GPL-2.0+
Group:          System/Libraries
Url:            http://xmlsoft.org/XSLT/
Source:         %{name}-%{version}.tar.bz2
#X-Vcs-Url:     git://git.gnome.org/libxslt
Source2:        baselibs.conf
Source3:        xslt-config.1.gz
Source1001:     libxslt.manifest
BuildRequires:  libgcrypt-devel
BuildRequires:  libgpg-error-devel
BuildRequires:  libtool
BuildRequires:  libxml2-devel
BuildRequires:  pkg-config

%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.


%package devel
Summary:        Include Files and Libraries mandatory for Development
License:        LGPL-2.1+
Group:          System/Libraries
Requires:       %{name}-tools = %version
Requires:       libxslt = %{version}
Requires:       glibc-devel
Requires:       libgcrypt-devel
Requires:       libgpg-error-devel
#libxml is automatically required with pkgconfig

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

%package tools
Summary:        Extended Stylesheet Language (XSL) Transformation utilities
License:        MIT and GPL-2.0+
Group:          Development/Tools
Provides:       xsltproc = %version-%release

%description tools
This package contains xsltproc, a command line interface to the XSLT engine.

%prep
%setup -q
cp %{SOURCE1001} .

%build
%autogen --disable-static --with-pic --without-python
%__make %{?_smp_mflags}

%check
%if ! 0%{?qemu_user_space_build}
%__make check
%endif

%install
%make_install

# Unwanted doc stuff
rm -fr %{buildroot}%{_datadir}/doc

# the manual page is required
install -ma=r '-t%{buildroot}%{_mandir}/man1' '%{SOURCE3}'


%post -n libxslt -p /sbin/ldconfig

%postun -n libxslt -p /sbin/ldconfig

%files -n libxslt
%manifest %{name}.manifest
%defattr(-, root, root)
%license COPYING Copyright
%{_libdir}/lib*.so.*

%files devel
%manifest %{name}.manifest
%defattr(-, root, root)
%{_libdir}/lib*.so
%{_libdir}/*.sh
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_datadir}/aclocal/*
%{_bindir}/xslt-config
%doc %{_mandir}/man1/xslt-config.*
%doc %{_mandir}/man3/*

%files tools
%manifest %{name}.manifest
%defattr(-,root,root)
%{_bindir}/xsltproc
%doc %{_mandir}/man1/xsltproc.*