File mingw64-libxslt.spec of Package mingw64-libxslt

#
# spec file for package mingw64-libxslt
#
# Copyright (c) 2014 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 http://bugs.opensuse.org/
#


Name:           mingw64-libxslt
Version:        1.1.43
Release:        0
Summary:        MinGW Windows Library providing the Gnome XSLT engine
License:        MIT
Group:          Development/Libraries/C and C++
URL:            https://gitlab.gnome.org/GNOME/libxslt
Source0:        https://download.gnome.org/sources/libxslt/1.1/libxslt-%{version}.tar.xz
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-libgcrypt-devel
BuildRequires:  mingw64-libxml2-devel
BuildRequires:  mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
This C library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
mechanism. To use it you need to have a version of libxml2 >= 2.6.27
installed. The xsltproc command is a command line interface to the XSLT engine

%package -n mingw64-libxslt1
Summary:        MinGW Windows port of the GNOME XSLT engine
Group:          System/Libraries
Obsoletes:      mingw64-libxslt < %{version}
Provides:       mingw64-libxslt = %{version}

%description -n mingw64-libxslt1
This C library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
mechanism. To use it you need to have a version of libxml2 >= 2.6.27
installed. The xsltproc command is a command line interface to the XSLT engine

%package devel
Summary:        MinGW Windows Library providing the Gnome XSLT engine (development tools)
Group:          Development/Libraries/C and C++

%description devel
This C library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
mechanism. To use it you need to have a version of libxml2 >= 2.6.27
installed. The xsltproc command is a command line interface to the XSLT engine
(development tools)

%package tools
Summary:        Extended Stylesheet Language (XSL) Transformation utilities for MinGW
Group:          Development/Tools/Other

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

%_mingw64_debug_package

%prep
%setup -q -n libxslt-%{version}

%build
%{_mingw64_configure} --without-python --enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%files -n mingw64-libxslt1
%{_mingw64_bindir}/libexslt-*.dll
%{_mingw64_bindir}/libxslt-1.dll

%files tools
%{_mingw64_bindir}/xsltproc.exe
%{_mingw64_mandir}/man1/xsltproc.1*
%{_mingw64_mandir}/man3/libexslt.3*
%{_mingw64_mandir}/man3/libxslt.3*

%files devel
%{_mingw64_bindir}/xslt-config
%{_mingw64_includedir}/libexslt
%{_mingw64_includedir}/libxslt
%{_mingw64_libdir}/libexslt.dll.a
%{_mingw64_libdir}/libxslt.dll.a
%{_mingw64_libdir}/pkgconfig/libexslt.pc
%{_mingw64_libdir}/pkgconfig/libxslt.pc
%{_mingw64_libdir}/cmake/libxslt
%{_mingw64_libdir}/xsltConf.sh
%exclude %{_mingw64_datadir}/doc
%{_mingw64_datadir}/gtk-doc

%changelog
openSUSE Build Service is sponsored by