2015-03-17 16:01:50 +01:00
|
|
|
#
|
|
|
|
# spec file for package pugixml
|
|
|
|
#
|
2022-02-10 11:05:59 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2015-03-17 16:01:50 +01: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.
|
|
|
|
|
2019-03-26 08:46:51 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-03-17 16:01:50 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-09-04 17:14:39 +02:00
|
|
|
%define _libname libpugixml1
|
2015-03-17 16:01:50 +01:00
|
|
|
Name: pugixml
|
2022-02-10 11:05:59 +01:00
|
|
|
Version: 1.12
|
2015-03-17 16:01:50 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Light-weight C++ XML Processing Library
|
|
|
|
License: MIT
|
|
|
|
Group: System/Libraries
|
2021-01-11 23:30:19 +01:00
|
|
|
URL: https://pugixml.org/
|
2015-03-17 16:01:50 +01:00
|
|
|
Source0: https://github.com/zeux/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
2015-10-21 11:34:31 +02:00
|
|
|
Patch1: pugixml-config.patch
|
2015-03-17 16:01:50 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2018-07-27 08:46:19 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-03-17 16:01:50 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
pugixml is a light-weight C++ XML processing library. It features:
|
|
|
|
|
|
|
|
- DOM-like interface with rich traversal/modification capabilities
|
|
|
|
- Extremely fast non-validating XML parser which constructs the DOM tree from
|
|
|
|
an XML file/buffer
|
|
|
|
- XPath 1.0 implementation for complex data-driven tree queries
|
|
|
|
- Full Unicode support with Unicode interface variants and automatic encoding
|
|
|
|
conversions
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development Files for pugixml
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-09-04 17:14:39 +02:00
|
|
|
Requires: %{_libname} = %{version}
|
2015-03-17 16:01:50 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides development libraries and headers needed to build
|
|
|
|
software using pugixml.
|
|
|
|
|
2015-09-04 17:14:39 +02:00
|
|
|
%package -n %{_libname}
|
2015-03-17 16:01:50 +01:00
|
|
|
Summary: Light-weight C++ XML Processing Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-09-04 17:14:39 +02:00
|
|
|
%description -n %{_libname}
|
2015-03-17 16:01:50 +01:00
|
|
|
pugixml is a light-weight C++ XML processing library. It features:
|
|
|
|
|
|
|
|
- DOM-like interface with rich traversal/modification capabilities
|
|
|
|
- Extremely fast non-validating XML parser which constructs the DOM tree from
|
|
|
|
an XML file/buffer
|
|
|
|
- XPath 1.0 implementation for complex data-driven tree queries
|
|
|
|
- Full Unicode support with Unicode interface variants and automatic encoding
|
|
|
|
conversions
|
|
|
|
|
|
|
|
%prep
|
2018-07-27 08:46:19 +02:00
|
|
|
%autosetup -p1
|
2015-03-17 16:01:50 +01:00
|
|
|
|
|
|
|
%build
|
2020-02-05 07:03:53 +01:00
|
|
|
%cmake
|
2021-01-11 23:30:19 +01:00
|
|
|
%make_build
|
2015-09-04 17:14:39 +02:00
|
|
|
|
2015-03-17 16:01:50 +01:00
|
|
|
%install
|
2015-09-04 17:14:39 +02:00
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%post -n %{_libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{_libname} -p /sbin/ldconfig
|
2015-03-17 16:01:50 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc readme.txt docs/*
|
|
|
|
%{_includedir}/*.hpp
|
2015-09-04 17:14:39 +02:00
|
|
|
%{_libdir}/cmake/*
|
2018-07-27 08:46:19 +02:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2015-03-17 16:01:50 +01:00
|
|
|
%{_libdir}/*.so
|
|
|
|
|
2015-09-04 17:14:39 +02:00
|
|
|
%files -n %{_libname}
|
|
|
|
%{_libdir}/libpugixml.so.*
|
2015-03-17 16:01:50 +01:00
|
|
|
|
|
|
|
%changelog
|