Blame libxml++40.spec

61c57e
#
61c57e
# spec file for package libxml++40
61c57e
#
61c57e
# Copyright (c) 2020 SUSE LLC
61c57e
#
61c57e
# All modifications and additions to the file contributed by third parties
61c57e
# remain the property of their copyright owners, unless otherwise agreed
61c57e
# upon. The license for this file, and modifications and additions to the
61c57e
# file, is the same license as for the pristine package itself (unless the
61c57e
# license for the pristine package is not an Open Source License, in which
61c57e
# case the license is the MIT License). An "Open Source License" is a
61c57e
# license that conforms to the Open Source Definition (Version 1.9)
61c57e
# published by the Open Source Initiative.
61c57e
61c57e
# Please submit bugfixes or comments via https://bugs.opensuse.org/
61c57e
#
61c57e
61c57e
61c57e
%define _name   libxml++
61c57e
%define so_ver  4_0-1
61c57e
%define base_ver 4.0
61c57e
61c57e
Name:           libxml++40
61c57e
Version:        4.0.2
61c57e
Release:        0
61c57e
Summary:        C++ Interface for XML Files
61c57e
License:        LGPL-2.1-or-later
61c57e
Group:          Development/Libraries/C and C++
61c57e
URL:            https://libxmlplusplus.github.io/libxmlplusplus
61c57e
Source0:        https://download.gnome.org/sources/libxml++/%{base_ver}/%{_name}-%{version}.tar.xz
61c57e
61c57e
BuildRequires:  c++_compiler
61c57e
BuildRequires:  fdupes
61c57e
BuildRequires:  meson >= 0.55.0
61c57e
BuildRequires:  pkgconfig
61c57e
BuildRequires:  pkgconfig(glibmm-2.68)
61c57e
BuildRequires:  pkgconfig(libxml-2.0) >= 2.7.7
61c57e
61c57e
%description
61c57e
libXML++ provides a C++ interface for XML files. It presently uses
61c57e
libxml2 to access the XML files.
61c57e
61c57e
%package -n libxml++-%{so_ver}
61c57e
Summary:        C++ Interface for XML Files
61c57e
Group:          Development/Libraries/C and C++
61c57e
Provides:       %{name} = %{version}
61c57e
Obsoletes:      %{name} < %{version}
61c57e
61c57e
%description -n libxml++-%{so_ver}
61c57e
libXML++ provides a C++ interface for XML files. It presently uses
61c57e
libxml2 to access the XML files.
61c57e
61c57e
%package devel
61c57e
Summary:        C++ Interface for XML Files -- Development Files
61c57e
Group:          Development/Libraries/C and C++
61c57e
Requires:       glibmm2-devel
61c57e
Requires:       libxml++-%{so_ver} = %{version}
61c57e
61c57e
%description devel
61c57e
This package contains all necessary include files and libraries needed
61c57e
to develop applications that require these.
61c57e
61c57e
%prep
61c57e
%autosetup -p1 -n %{_name}-%{version}
61c57e
chmod -x NEWS libxml++config.h.in libxml++config.h.meson
61c57e
61c57e
%build
61c57e
%meson \
61c57e
	%{nil}
61c57e
%meson_build
61c57e
61c57e
%install
61c57e
%meson_install
61c57e
%fdupes %{buildroot}%{_prefix}
61c57e
61c57e
%ldconfig_scriptlets -n libxml++-%{so_ver}
61c57e
61c57e
%files -n libxml++-%{so_ver}
61c57e
%license COPYING
61c57e
%doc AUTHORS ChangeLog NEWS README
61c57e
%{_libdir}/*.so.*
61c57e
61c57e
%files devel
61c57e
%{_includedir}/libxml++-%{base_ver}
61c57e
%dir %{_libdir}/libxml++-%{base_ver}
61c57e
%dir %{_libdir}/libxml++-%{base_ver}/include
61c57e
%{_libdir}/libxml++-%{base_ver}/include/*.h
61c57e
%{_libdir}/pkgconfig/*.pc
61c57e
%{_libdir}/*.so
61c57e
61c57e
%changelog
61c57e