2019-02-03 16:54:24 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package libmodulemd
|
|
|
|
|
#
|
2024-03-19 16:02:10 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-11-04 18:32:19 +00:00
|
|
|
# Copyright (c) 2020-2023 Neal Gompa <ngompa13@gmail.com>.
|
2019-02-03 16:54:24 +00: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.
|
|
|
|
|
|
2021-05-31 08:58:22 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-02-03 16:54:24 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global majorversion 2
|
2023-11-04 18:32:19 +00:00
|
|
|
%global minorversion 15
|
2021-08-27 02:46:32 +00:00
|
|
|
%global patchversion 0
|
2019-02-03 16:54:24 +00:00
|
|
|
%global majorminorversion %{majorversion}.%{minorversion}
|
|
|
|
|
%global nsversion %{majorversion}.0
|
|
|
|
|
|
|
|
|
|
%global libmodulemd_version %{majorminorversion}%{?patchversion:.%{patchversion}}
|
|
|
|
|
|
|
|
|
|
%global libname %{name}%{majorversion}
|
|
|
|
|
%global devname %{name}-devel
|
|
|
|
|
%global girname typelib-1_0-Modulemd-%{majorversion}_0
|
|
|
|
|
|
|
|
|
|
Name: libmodulemd
|
|
|
|
|
Version: %{libmodulemd_version}
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Module metadata manipulation library
|
|
|
|
|
License: MIT
|
2021-05-31 08:58:22 +00:00
|
|
|
Group: System/Packages
|
2019-02-03 16:54:24 +00:00
|
|
|
URL: https://github.com/fedora-modularity/libmodulemd
|
2021-05-31 08:58:22 +00:00
|
|
|
Source0: %{url}/releases/download/%{libmodulemd_version}/modulemd-%{libmodulemd_version}.tar.xz
|
2024-03-19 16:02:10 +00:00
|
|
|
Patch0: https://github.com/fedora-modularity/libmodulemd/commit/9d280909.patch
|
|
|
|
|
Patch1: https://github.com/fedora-modularity/libmodulemd/commit/29c339a3.patch
|
2024-05-15 13:45:56 +00:00
|
|
|
Patch2: glib-2.80.2-glibdoc-path.patch
|
2019-02-03 16:54:24 +00:00
|
|
|
|
2021-05-31 08:58:22 +00:00
|
|
|
BuildRequires: gcc
|
2022-03-21 13:02:19 +00:00
|
|
|
BuildRequires: glib2-doc
|
2020-07-07 11:04:43 +00:00
|
|
|
BuildRequires: help2man
|
2019-12-01 15:34:53 +00:00
|
|
|
BuildRequires: meson >= 0.47.0
|
2021-05-31 08:58:22 +00:00
|
|
|
BuildRequires: python3-gobject
|
|
|
|
|
BuildRequires: rpm-devel
|
2019-02-03 16:54:24 +00:00
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
|
BuildRequires: pkgconfig(gtk-doc)
|
2021-05-31 08:58:22 +00:00
|
|
|
BuildRequires: pkgconfig(yaml-0.1)
|
2019-02-05 12:31:55 +00:00
|
|
|
# For tests
|
|
|
|
|
BuildRequires: gcc-c++
|
2019-02-03 16:54:24 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
C Library for manipulating module metadata files.
|
|
|
|
|
|
|
|
|
|
%package -n modulemd-validator
|
|
|
|
|
Summary: Tool for validating modulemd data
|
|
|
|
|
Group: System/Packages
|
|
|
|
|
Requires: %{libname}%{?_isa} = %{libmodulemd_version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n modulemd-validator
|
|
|
|
|
The modulemd-validator tool provides the facility for verifying
|
|
|
|
|
constructed modulemd data is correct and usable.
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{name}
|
|
|
|
|
Summary: Python 3 bindings for %{name}
|
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
Requires: %{girname}%{?_isa} = %{libmodulemd_version}-%{release}
|
|
|
|
|
Requires: python3-gobject
|
2019-04-28 14:07:08 +00:00
|
|
|
Requires: python3-six
|
2019-02-03 16:54:24 +00:00
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
|
|
|
|
This package provides the Python 3 bindings for %{name}.
|
|
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
|
Summary: Main library for %{name}
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
|
This package provides the main library for applications
|
|
|
|
|
that use %{name}.
|
|
|
|
|
|
|
|
|
|
%package -n %{girname}
|
|
|
|
|
Summary: GObject Introspection interface description for %{name}
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Requires: %{libname}%{?_isa} = %{libmodulemd_version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n %{girname}
|
|
|
|
|
This package provides the GObject Introspection typelib interface
|
|
|
|
|
for applications to use %{name}.
|
|
|
|
|
|
|
|
|
|
%package -n %{devname}
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %{girname}%{?_isa} = %{libmodulemd_version}-%{release}
|
2021-05-31 08:58:22 +00:00
|
|
|
Requires: %{libname}%{?_isa} = %{libmodulemd_version}-%{release}
|
2019-02-03 16:54:24 +00:00
|
|
|
|
|
|
|
|
%description -n %{devname}
|
|
|
|
|
This package provides files for developing applications to use %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n modulemd-%{libmodulemd_version}
|
|
|
|
|
|
|
|
|
|
%build
|
2022-01-05 11:43:52 +00:00
|
|
|
%meson
|
2019-02-03 16:54:24 +00:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export LC_CTYPE=C.utf8
|
2019-05-10 14:36:27 +00:00
|
|
|
# Don't run tests on ARM and RISC-V for now. There are problems
|
|
|
|
|
# with performance on the builders and often these time out.
|
|
|
|
|
%ifnarch %{arm} aarch64 riscv64
|
2019-02-03 16:54:24 +00:00
|
|
|
%meson_test
|
2019-05-10 14:36:27 +00:00
|
|
|
%endif
|
2019-02-03 16:54:24 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -n modulemd-validator
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{_bindir}/modulemd-validator
|
2020-07-07 11:04:43 +00:00
|
|
|
%{_mandir}/man1/modulemd-validator.1*
|
2019-02-03 16:54:24 +00:00
|
|
|
|
|
|
|
|
%files -n python3-%{name}
|
|
|
|
|
%{python3_sitearch}/gi/overrides/Modulemd.py
|
|
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{_libdir}/%{name}.so.%{majorversion}*
|
|
|
|
|
|
|
|
|
|
%files -n %{girname}
|
|
|
|
|
%{_libdir}/girepository-1.0/Modulemd-%{nsversion}.typelib
|
|
|
|
|
|
|
|
|
|
%files -n %{devname}
|
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
%{_libdir}/pkgconfig/modulemd-%{nsversion}.pc
|
|
|
|
|
%{_includedir}/modulemd-%{nsversion}/
|
|
|
|
|
%{_datadir}/gir-1.0/Modulemd-%{nsversion}.gir
|
|
|
|
|
%{_datadir}/gtk-doc/html/modulemd-%{nsversion}/
|
|
|
|
|
|
|
|
|
|
%changelog
|