2024-05-03 12:23:22 +02:00
|
|
|
#
|
|
|
|
# spec file for package expat
|
|
|
|
#
|
2024-11-12 15:40:09 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
|
|
|
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
2024-05-03 12:23:22 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-11-12 15:40:09 +01:00
|
|
|
%global unversion 2_6_4
|
|
|
|
%define sover 1
|
2024-05-03 12:23:22 +02:00
|
|
|
Name: expat
|
2024-11-12 15:40:09 +01:00
|
|
|
Version: 2.6.4
|
2024-05-03 12:23:22 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: XML Parser Toolkit
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: https://libexpat.github.io
|
|
|
|
Source0: https://github.com/libexpat/libexpat/releases/download/R_%{unversion}/expat-%{version}.tar.xz
|
|
|
|
Source1: https://github.com/libexpat/libexpat/releases/download/R_%{unversion}/expat-%{version}.tar.xz.asc
|
|
|
|
Source2: baselibs.conf
|
|
|
|
Source3: %{name}faq.html
|
|
|
|
# https://www.gentoo.org/inside-gentoo/developers/index.html#sping
|
2024-11-12 15:40:09 +01:00
|
|
|
# https://github.com/libexpat/libexpat/issues/537#issuecomment-1003796884
|
|
|
|
Source4: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3176ef7db2367f1fca4f306b1f9b0e909af37285#/expat.keyring
|
|
|
|
BuildRequires: c++_compiler
|
2024-05-03 12:23:22 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
%description
|
|
|
|
Expat is an XML parser library written in C. It is a stream-oriented
|
|
|
|
parser in which an application registers handlers for things the
|
|
|
|
parser might find in the XML document (like start tags).
|
|
|
|
|
2024-11-12 15:40:09 +01:00
|
|
|
%package -n libexpat%{sover}
|
2024-05-03 12:23:22 +02:00
|
|
|
Summary: XML Parser Toolkit
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2024-11-12 15:40:09 +01:00
|
|
|
%description -n libexpat%{sover}
|
2024-05-03 12:23:22 +02:00
|
|
|
Expat is an XML parser library written in C. It is a stream-oriented
|
|
|
|
parser in which an application registers handlers for things the
|
|
|
|
parser might find in the XML document (like start tags).
|
|
|
|
|
|
|
|
%package -n libexpat-devel
|
|
|
|
Summary: Development files for expat, an XML parser toolkit
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: glibc-devel
|
2024-11-12 15:40:09 +01:00
|
|
|
Requires: libexpat%{sover} = %{version}
|
2024-05-03 12:23:22 +02:00
|
|
|
|
|
|
|
%description -n libexpat-devel
|
|
|
|
Expat is an XML parser library written in C. It is a stream-oriented
|
|
|
|
parser in which an application registers handlers for things the
|
|
|
|
parser might find in the XML document (like start tags).
|
|
|
|
|
|
|
|
This package contains the development headers for the library found
|
|
|
|
in libexpat.
|
|
|
|
|
|
|
|
%prep
|
2024-06-07 18:38:25 +02:00
|
|
|
%autosetup -p1
|
2024-05-03 12:23:22 +02:00
|
|
|
cp %{SOURCE3} .
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--docdir="%{_docdir}/%{name}" \
|
2024-11-12 15:40:09 +01:00
|
|
|
--disable-static \
|
|
|
|
--without-docbook
|
|
|
|
|
2024-05-03 12:23:22 +02:00
|
|
|
%if 0%{?do_profiling}
|
2024-11-12 15:40:09 +01:00
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}" LDFLAGS="%{optflags} %{cflags_profile_generate}"
|
2024-05-03 12:23:22 +02:00
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}" LDFLAGS="%{optflags} %{cflags_profile_generate}" check
|
|
|
|
%make_build clean
|
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
|
|
|
|
%else
|
|
|
|
%make_build CFLAGS="%{optflags}"
|
|
|
|
%endif
|
|
|
|
|
2024-11-12 15:40:09 +01:00
|
|
|
%check
|
|
|
|
%make_build check
|
|
|
|
|
2024-05-03 12:23:22 +02:00
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
2024-11-12 15:40:09 +01:00
|
|
|
%ldconfig_scriptlets -n libexpat%{sover}
|
2024-05-03 12:23:22 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS README.md expatfaq.html
|
2024-11-12 15:40:09 +01:00
|
|
|
%doc doc/reference.html doc/*.css
|
|
|
|
%doc examples/*.c examples/Makefile.am examples/Makefile.in
|
2024-05-03 12:23:22 +02:00
|
|
|
%doc changelog
|
|
|
|
%{_bindir}/xmlwf
|
2024-11-12 15:40:09 +01:00
|
|
|
%{_mandir}/man1/xmlwf.1%{?ext_man}
|
2024-05-03 12:23:22 +02:00
|
|
|
|
|
|
|
%files -n libexpat1
|
2024-11-12 15:40:09 +01:00
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/libexpat.so.%{sover}
|
|
|
|
%{_libdir}/libexpat.so.%{sover}.*
|
2024-05-03 12:23:22 +02:00
|
|
|
|
|
|
|
%files -n libexpat-devel
|
2024-11-12 15:40:09 +01:00
|
|
|
%license COPYING
|
2024-05-03 12:23:22 +02:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/libexpat.so
|
|
|
|
%{_libdir}/pkgconfig/expat.pc
|
|
|
|
%dir %{_libdir}/cmake
|
|
|
|
%{_libdir}/cmake/expat-%{version}
|
|
|
|
|
|
|
|
%changelog
|